Unit V DSA Quiz

Unit V DSA Quiz

University

25 Qs

quiz-placeholder

Similar activities

C - Data Structures (Unit 1 - QUIZ)

C - Data Structures (Unit 1 - QUIZ)

University

25 Qs

Neo Coding Round 1 Set 1

Neo Coding Round 1 Set 1

University

25 Qs

UTS Praktikum SDA KOM B - 2 Ed

UTS Praktikum SDA KOM B - 2 Ed

University

20 Qs

Latihan soal Informatika Ecxel, Word , Power Point dan Pdf

Latihan soal Informatika Ecxel, Word , Power Point dan Pdf

8th Grade - University

20 Qs

Hashing and Collision

Hashing and Collision

University

21 Qs

Algorithm Analysis

Algorithm Analysis

University

21 Qs

Cryptography Basics

Cryptography Basics

University

20 Qs

ASD - Strutture dati

ASD - Strutture dati

University

20 Qs

Unit V DSA Quiz

Unit V DSA Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Placement Stjosephs

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of linear search in the worst case?

O(1)

O(log n)

O(n)

O(n log n)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which search algorithm works efficiently on sorted arrays?

Linear search

Binary search

Hashing

Jump search

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of binary search in the worst case?

O(n)

O(log n)

O(n log n)

O(1)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a necessary condition for binary search to work?

Unsorted list

Sorted list

Circular array

Linked list

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In linear search, the average number of comparisons is:

n

n/2

log n

1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a comparison-based sorting algorithm?

Radix sort

Counting sort

Bubble sort

Bucket sort

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bubble sort repeatedly compares:

Current element with the first

Adjacent elements

All elements with the last

Even indexed elements

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?