DAA_C_MCQ - 1

DAA_C_MCQ - 1

University

12 Qs

quiz-placeholder

Similar activities

Quiz 2 DS1E

Quiz 2 DS1E

University

12 Qs

R_Quiz on Algorithms and Programming Languages

R_Quiz on Algorithms and Programming Languages

12th Grade - University

15 Qs

Heap Sort - Data Structures

Heap Sort - Data Structures

University

15 Qs

Algorithm analysis: divide & conquer theory

Algorithm analysis: divide & conquer theory

University

10 Qs

DSA Diaries 2.0

DSA Diaries 2.0

University

11 Qs

TEAM 2

TEAM 2

University

8 Qs

Analysis of Algorithms Quiz

Analysis of Algorithms Quiz

University

10 Qs

PDS - 04225  Intro to Data Structures and Algorithms - Chapter 2

PDS - 04225 Intro to Data Structures and Algorithms - Chapter 2

University

10 Qs

DAA_C_MCQ - 1

DAA_C_MCQ - 1

Assessment

Quiz

Computers

University

Medium

Created by

Amit Mandal

Used 2+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 2 pts

Media Image

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

Media Image

What will be the output for the following recursive code?

12

24

26

28

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?