What will be the output of the following program?
DAA_C_MCQ - 1

Quiz
•
Computers
•
University
•
Medium
Amit Mandal
Used 2+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 2 pts
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
Create a free account and access millions of resources
Similar Resources on Quizizz
17 questions
Data Structures and Algorithms Quiz

Quiz
•
University
10 questions
Quiz Sorting

Quiz
•
University
10 questions
7.5 Standard Methods of Solution Cambridge IGCSE 0478

Quiz
•
10th Grade - University
15 questions
AS Computing: Data Structures

Quiz
•
10th Grade - University
12 questions
Enumeration and Recursion

Quiz
•
11th Grade - University
10 questions
Analysis of Algorithms

Quiz
•
University
15 questions
Sorting

Quiz
•
University
16 questions
Searching & Sorting Algorithms

Quiz
•
10th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade