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
30 questions
Algorithm - Complexity

Quiz
•
University - Professi...
22 questions
01-JS- переменные

Quiz
•
University
25 questions
C# Chp. 1 Questions

Quiz
•
12th Grade - University
30 questions
Data Structure & Algorithm-Quiz-1

Quiz
•
University
30 questions
Data Structures Quiz

Quiz
•
University
21 questions
Computer

Quiz
•
6th Grade - Professio...
25 questions
Simple Machines

Quiz
•
KG - University
22 questions
Operating Systems Crash Course

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University