221 quiz questions exam 2 prep

Quiz
•
Computers
•
University
•
Hard
Tommy Pham
Used 1+ times
FREE Resource
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the recurrence relation for the code below?
T(n) = T(n-1) + O(1) and T(1)=0
T(n) = T(n-1) + O(n) and T(1)=0
T(n) = 2T(n-1) + O(1) and T(1)=0
T(n) = 2T(n-1) + O(n) and T(1)=0
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many recursive problems are solved by the Recur_fun(int n) for n=3?
5
8
7
6
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many recursive problems are solved for n>0?
n
2n
2n - 1
2n
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many recursive steps are required to reach the base case (the solutions to n=0)?
n
log2n
n/2
nlog2n
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you classify this algorithm using the big-O asymptotic notation?
O(n)
O(log2n)
O(2n)
O(n2)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is this recursive function correct?
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of postfix form for algebraic expression?
The postfix form is used for find syntax errors of an algebraic expression.
The postfix form provides a more readable form of an algebraic expression.
The postfix form speeds up the evaluation process of an algebraic expression.
The postfix form decreases the arithmetic operations.
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
IAS CH5 QUIZ

Quiz
•
University
25 questions
C Programing

Quiz
•
University
21 questions
Sorting algorithms I

Quiz
•
University
21 questions
Ôn tập cuối kì Đông. Python

Quiz
•
10th Grade - University
25 questions
QUIZ

Quiz
•
University
21 questions
CTDL_Tuần 1

Quiz
•
University
30 questions
Data Structures and Algorithms Quiz

Quiz
•
University
22 questions
EXCEPTION HANDLING IN PYTHON

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University