
DSA quiz

Quiz
•
Professional Development
•
Professional Development
•
Medium

Vasu Taunk
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
STELLANTIS

Quiz
•
Professional Development
15 questions
Military

Quiz
•
Professional Development
10 questions
Arreglos

Quiz
•
7th Grade - Professio...
20 questions
Tes Intelegensi Umum

Quiz
•
Professional Development
20 questions
Speed time and distance 5th June

Quiz
•
Professional Development
20 questions
C++ Operators

Quiz
•
Professional Development
20 questions
CPR_Quiz_Arrays and strings

Quiz
•
Professional Development
20 questions
MG - ZS EV

Quiz
•
Professional Development
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade