221 quiz questions exam 2 prep

221 quiz questions exam 2 prep

University

26 Qs

quiz-placeholder

Similar activities

Mind Exercise

Mind Exercise

University

24 Qs

Arkitekturë e Kompjuterëve [IV]

Arkitekturë e Kompjuterëve [IV]

University

24 Qs

Data Structure & Algo - Prelim Long Quiz

Data Structure & Algo - Prelim Long Quiz

University

21 Qs

Kuis Flip Flop dan counter

Kuis Flip Flop dan counter

University

21 Qs

GEMATMW - Coding Theory

GEMATMW - Coding Theory

6th Grade - University

21 Qs

All about MECHA WARMERZ

All about MECHA WARMERZ

University - Professional Development

22 Qs

last22

last22

University

22 Qs

CCC2 Chapter 1 - Introduction to Computers

CCC2 Chapter 1 - Introduction to Computers

University

25 Qs

221 quiz questions exam 2 prep

221 quiz questions exam 2 prep

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Tommy Pham

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

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

Media Image

How many recursive problems are solved for n>0?

n

2n

2n - 1

2n

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

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

Media Image

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?