Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DAA-Quiz1

Total questions: 20

Worksheet time: 20mins

Name
Class
Date
1.

........................... , ........................ and ...........................are the different ways in which an algorithm can be specified.

a)

Asymptotic Notations, Flowchart, Pseudocode

b)

English like statements, Flowchart, Pseudocode

c)

English like statements,Sets, Pseudsocode

d)

None of the above

2.

Algorithm can be represented graphically using...........................

a)

barchart

b)

Graph

c)

Pie chart

d)

Flowchart

3.

...............................is defined as step by step procedure for solving a particular problem

a)

Space complexity

b)

Time complexity

c)

Performance Analysis

d)

Algorithm

4.

An Algorithm's performance an be analysed by using............................

a)

Time complexity

b)

Space Complexity

c)

Number of inputs

d)

Time and space complexity

5.

..............................is defined as the amount of Computer time required to complete the execution of a program/problem

a)

Space Complexity

b)

Time complexity

c)

CPU Time

d)

None of these

6.

Upper bound running time complexity of an algorithm is also called as.....................

a)

Best case time complexity

b)

Worst case time complexity

c)

Average case time complexity

d)

None of these

7.

.......................is the amount of computer memory required to the execute the program /problem.

a)

Time complexity

b)

Space complexty

c)

Memory complexity

d)

None of these

8.

Lower bound running time complexity of an algorithm is also called as.................

a)

Best case time complexty

b)

Worst case time complexity

c)

Average case time complexity

d)

None of these

9.

............................Notation is used to represent strict upper bound running time complexity of an algotihm

a)

Big-oh

b)

Big-Omega

c)

Theta

d)

None of these

10.

............................Notation is used to represent strict lower bound running time complexity of an algorithm.

a)

Big-Oh

b)

Big-Omega

c)

Theta

d)

None of these

11.

.................................notation denotes Average case Time complexity

a)

Big-Oh

b)

Big Omega

c)

Theta

d)

None of these

12.

........................................Notations are called as Asymptotic Notations.

a)

Big-oh

b)

Big-Omega

c)

little-Theta

d)

little-oh

e)

theta

13.

......................is used to represent strict upper bound running time complexity where as.................is used to represent upper bound running time complexity of an algorithm.

a)

Big-oh,little-oh

b)

little-oh,Big-oh

c)

Big-oh,small-oh

d)

small-oh,Big-oh

14.

......................is used to represent strict lower bound running time complexity where as.................is used to represent lower bound running time complexity of an algorithm.

a)

Big-Omega,small-omega

b)

Big-Omega,little-omega

c)

lttle-omega,Big-omega

d)

small-omega,Big-Omega

15.

Let f(n) and g(n) be two non-negative functions,f(n)=O(g(n)) if and only if..........................

a)

f(n)<=c*g(n)

b)

f(n)>=c*g(n)

c)

f(n)<c*g(n)

d)

f(n)<c*g(n)

16.

Let f(n) and g(n) be two non-negative functions,f(n)= ω\omega  (g(n)) if and only if..........................


a)

f(n)<=c*g(n)

b)

f(n)>=c*g(n)

c)

f(n)<c*g(n)

d)

f(n)<c*g(n)

17.

Let f(n) and g(n) be two non-negative functions,f(n)=  θ\theta  (g(n)) if and only if..........................

a)

c1*g(n)<=f(n)<=c2*g(n)

b)

c1*g(n)>=f(n)>=c2*g(n)

c)

c1*g(n)<f(n)<c2*g(n)

d)

c1*g(n)>f(n)>c2*g(n)

18.

...................................are the characteristics of an algorithm

a)

Input

b)

infiniteness

c)

Effectiveness

d)

output

e)

finiteness

19.

Find the time complexity for the following algorithm using step count method.

Algorithm sum(a,n)

{

nsum=0;

for(i=1;i<=n;i++)

{

nsum=nsum+a[i];

}

}

a)

2n+2 units

b)

2n+1 units

c)

n+1 units

d)

n+2 units

20.

Find the space complexity for the following algorithm

Algorithm sum(a,b,c)

{

a=10;

b=20;

c=30;

d=a+b+c;

}

a)

3 units

b)

4 units

c)

5 units

d)

6 units