Unit 1 DAA

Unit 1 DAA

25 Qs

quiz-placeholder

Similar activities

PHIL-IRI

PHIL-IRI

3rd Grade

20 Qs

Podatki i ubezpieczenia

Podatki i ubezpieczenia

University

22 Qs

E6-P1

E6-P1

6th Grade

20 Qs

EVALUACIÒN MENSUAL-PERSONAL SOCIAL  5TO - GRADO

EVALUACIÒN MENSUAL-PERSONAL SOCIAL 5TO - GRADO

1st Grade

20 Qs

Evaluación Laboratorio de Investigación

Evaluación Laboratorio de Investigación

9th Grade - University

20 Qs

BÀI THI THỬ MÔN TIN HỌC LỚP 4

BÀI THI THỬ MÔN TIN HỌC LỚP 4

1st - 8th Grade

20 Qs

Practice Quiz QBASIC and Excel Functions

Practice Quiz QBASIC and Excel Functions

5th Grade

20 Qs

2024 Trivia

2024 Trivia

2nd - 5th Grade

20 Qs

Unit 1 DAA

Unit 1 DAA

Assessment

Quiz

Computers, Other

Practice Problem

Hard

Created by

Prema Kadam

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the time complexity of this code

int a = 0, i = N;

while (i > 0)

{

a += i;

i /= 2;

}

O(N)

O(Sqrt(N))

O(N / 2)

O(log N)

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The complexity of Binary search algorithm is

O(n)

O(log n)

O(n2)

O(n log n)

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A linear function takes the form

f(n) = an + b

f(n) = an2 +bn + c

f(n) = alog2n

f(n) = a + b

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Find the slowest algorithm:

O (n)

O (n^2)

O (n!)

O (2^n)

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The number of executions grows extremely quickly as the size of the input increases

Exponential Time

Linear Time

Polynomial Time

Constant Time

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does it mean when we say that an algorithm X is asymptotically more efficient than Y?

X will be a better choice for all inputs

X will be a better choice for all inputs except possibly small inputs

X will be a better choice for all inputs except possibly large inputs

Y will be a better choice for small inputs

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the main disadvantage of a binary search compared to a linear search?

It requires the data to be in order
It requires more memory
It does not execute as quickly with larger data sets
Not all CPUs are capable of executing the algorithm

Access all questions and much more by creating a free account

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

Already have an account?