Search Header Logo

DSA quiz

Authored by Vasu Taunk

Professional Development

Professional Development

Used 1+ times

DSA quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Vasu can cover a certain distance in 1 hr. 24 min. by covering two-third of the distance at 4 kmph and the rest at 5 kmph. Find the total distance.

3 km

4 km

5 km

6 km

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of this code

int a = 0, i = N;

while (i > 0)

{

a += i;

i /= 2;

}

O(N)

O(Sqrt(N))

O(N / 2)

O(log N)

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A monkey🐒 climbing up a pole ascends 6 meters and slips 3 meters in alternate minutes.

If the pole💈 is 60 meters high,

how long will it take the monkey to reach the top?

31 min

33 min

35 min

37 min

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. An array with 32 elements is input to a binary search algorithm. How many maximum number of comparisons are performed?​

32

8

16

5

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of the following postfix expression?

ab*cd*+ where a=2,b=2,c=3,d=4.

a) 16

b) 12

c) 14

d) 10

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a recursive solution to the Towers of Hanoi problem, what is the minimum number of moves required to solve the puzzle for n disks?

N2

N!

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

4 km/hr

5 km/hr

6 km/hr

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?

Discover more resources for Professional Development