DAA -1

DAA -1

79 Qs

quiz-placeholder

Similar activities

Leetcode

Leetcode

KG - University

80 Qs

high rise

high rise

Professional Development

82 Qs

Life Science Final Exam

Life Science Final Exam

1st - 5th Grade

78 Qs

7th Grade 15:1 - 2024-25 Middle School Final Exam Antonetti

7th Grade 15:1 - 2024-25 Middle School Final Exam Antonetti

KG - University

80 Qs

Review - DE Math 181 Plane Trigonometry Spring 2025 Midterm

Review - DE Math 181 Plane Trigonometry Spring 2025 Midterm

12th Grade

75 Qs

DAA -1

DAA -1

Assessment

Quiz

others

Hard

Created by

Venkatadri M

FREE Resource

79 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of asymptotic analysis?
To describe the efficiency of an algorithm as input size approaches infinity
To calculate the exact running time of an algorithm
To compare different programming languages
To analyze memory usage of algorithms

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which notation is used to describe the upper bound of an algorithm's running time?
Big O notation
Theta notation
Omega notation
Alpha notation

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If an algorithm has a running time of O(n²), what happens as the input size increases significantly?
The running time remains constant
The running time increases quadratically
The running time decreases
The running time becomes linear

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the context of sorting algorithms, what does input size refer to?
The number of algorithms used
The number of steps in the algorithm
The number of items to be sorted
The time taken to sort

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst-case running time for a sorting algorithm that operates in O(n log n) time complexity?
O(n)
O(log n)
O(n²)
O(n log n)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a characteristic of a binary search tree?
Each node has at most two children
The left child is less than the parent node
The right child is greater than the parent node
All nodes are connected in a circular manner

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity for searching an element in a balanced binary search tree?
O(1)
O(log n)
O(n)
O(n log n)

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?