
DAA-Quiz1
Authored by Amit Chaurasia
Computers
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
What value does function mystery return when called with a value of 4?
int mystery ( int number )
{
If ( number <= 1 )
return 1;
else
return number * mystery( number – 1 );
}
.
2.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
At most, how many comparisons are required to search a sorted vector of 1023 elements using the binary search algorithm?
3.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
The height of the shortest binary search tree of size n is .........................
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
1/2 n2 – 3n = O (n2).
Find the value of constant n0 if c =1, for this relation to hold, if found valid.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The running time of your program will depend upon:
1. The algorithm, The input
2. Your implementation of the algorithm in a programming language
3. The compiler you use, The OS on your computer and Your computer hardware
4. Maybe other things: other programs on your computer
1 False and 2 True
3 False and 4 true
All true
All false
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Give asymptotic tight bounds for the followings using master method.
T(n) = 9T(n/4) + n2
n
n2
n2logn
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
•Give asymptotic tight bounds for the followings using master method.
T(n) = 9T(n/3) + 2n2 + n/3
n2
n2logn
n3
None of the above
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?
Similar Resources on Wayground
11 questions
Determining System Requirements
Quiz
•
University
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
10 questions
Planning and Implementation of Information Security
Quiz
•
University
10 questions
INTO Artificial Intelligence
Quiz
•
University - Professi...
10 questions
Let's Play Together
Quiz
•
University - Professi...
10 questions
AMS - Aula 03
Quiz
•
University
10 questions
Machine Learning (Introduction)
Quiz
•
University
10 questions
Entorno Financiero Digital 2do test
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University