
DAA_C_MCQ - 1
Authored by Amit Mandal
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 2 pts
What will be the output of the following program?
4
6
-1
8
2.
MULTIPLE CHOICE QUESTION
3 mins • 2 pts
What is the number of swaps needed to sort the numbers 8, 22, 7, 9, 31, 5, 13 in ascending order using bubble sort?
11
12
13
10
3.
MULTIPLE CHOICE QUESTION
3 mins • 2 pts
What will be the output for the following recursive code?
12
24
26
28
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be the output for the following recursive code?
10
51
55
30
5.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
What is the minimum number of moves required to solve the Towers of Hanoi problem with 3 disks?
4
5
6
7
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which statement accurately describes a non-recursive algorithm?
A non-recursive algorithm always calls itself for sorting.
A non-recursive algorithm sorts elements without using any loops.
A non-recursive algorithm sorts all elements at once without calling itself.
A non-recursive algorithm is less efficient than recursive ones.
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the Big-O Asymptotic Notation provide?
Lower Bound Idea
Exact Count of Operations
Upper Bound Idea
Average Case Analysis
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?