DAA_C_MCQ - 1

DAA_C_MCQ - 1

University

12 Qs

quiz-placeholder

Similar activities

PDS - 04225 Chapter 11 - Part 1 - Sorting Algorithms

PDS - 04225 Chapter 11 - Part 1 - Sorting Algorithms

University - Professional Development

10 Qs

Sorting in Data Structures

Sorting in Data Structures

University

15 Qs

GCSE Computer Science 9-1: Sorting Algorithms

GCSE Computer Science 9-1: Sorting Algorithms

10th Grade - University

10 Qs

Sorting

Sorting

University

15 Qs

Searching & Sorting Algorithms

Searching & Sorting Algorithms

10th Grade - University

16 Qs

Selection Sort & Exhaustive Search

Selection Sort & Exhaustive Search

University

15 Qs

Searching and Sorting

Searching and Sorting

University

16 Qs

Searching and Sorting

Searching and Sorting

University - Professional Development

15 Qs

DAA_C_MCQ - 1

DAA_C_MCQ - 1

Assessment

Quiz

Computers

University

Medium

Created by

Amit Mandal

Used 2+ times

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?