Search Header Logo

GDSC Bootcamp Day 3

Authored by Mujeeb Ur rehman

Others

Used 2+ times

GDSC Bootcamp Day 3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which loop in C is ideal for situations where the number of iterations is known before entering the loop?

while loop

for loop

do-while loop

All of the above

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How many times the loop will get executed?

for(int i=5;i<=10;i++)

4

5

6

0

3.

MULTIPLE SELECT QUESTION

45 sec • 3 pts

Given an array of integers, what is the logic used in the Bubble Sort algorithm to sort the elements?

Divide the array into two halves and sort each half individually.

Compare each pair of adjacent elements and swap them if they are in the wrong order.

Select a pivot element and partition the array into two subarrays, then recursively sort each subarray.

Build a binary heap and repeatedly extract the minimum element.


4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What is the key concept behind the Binary Search algorithm for finding an element in a sorted array?

Comparing each element with the target element sequentially.

Sorting the array using a pivot element.

Dividing the array into two halves and eliminating one half based on the comparison with the target element.

Swapping adjacent elements until the array is sorted.

5.

MULTIPLE SELECT QUESTION

30 sec • 3 pts

Which one of the following is correct variable declaration?

coding13

13coding

_CodInG_ChAllEge

Coding.challenge

Break

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

1 byte =8 bits

True

False

7.

MULTIPLE CHOICE QUESTION

20 sec • 2 pts

used to give tab spaces in c programming.

\tab

\t

/tab

\tab

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?