
DAA Quiz 1
Authored by manasa DS
Professional Development
University
Used 19+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is an algorithm?
What is an algorithm?
a) A step-by-step recipe for cooking
b) A sequence of operations to solve a problem
c) A physical machine to perform calculations
d) A programming language
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is NOT a property of an algorithm?
Which of the following is NOT a property of an algorithm?
a) Finiteness
b) Uniqueness
c) Input
d) Output
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which method of algorithm specification uses human language to describe the steps of an algorithm?
Which method of algorithm specification uses human language to describe the steps of an algorithm?
a) Flowchart
b) Pseudo code convention
c) UML diagram
d) Natural language
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the Big-Oh notation (O) express for an algorithm?
What does the Big-Oh notation (O) express for an algorithm?
a) Upper bound of time complexity
b) Lower bound of time complexity
c) Exact time complexity value
d) Average time complexity
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which sorting algorithm repeatedly selects the minimum element from the unsorted part of the array and places it at the beginning?
a) Insertion sort
b) Selection sort
c) Merge sort
d) Bubble sort
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The Rabin-Karp string matching algorithm is based on:
a) Dynamic programming
b) Divide and conquer
c) Hashing
d) Backtracking
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the given options provides the increasing order of asymptotic complexity of functions f1, f2, f3 and f4?
f1(n) = 2^n
f2(n) = n^(3/2)
f3(n) = nLogn
f4(n) = n^(Logn)
f3, f2, f4, f1
f3, f2, f1, f4
f2, f3, f1, f4
f2, f3, f4, f1
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?