All mock tests are FREE till 31 December — register to save your progress
Paper 2 CS · UNIT 07 · MOCK TEST

Mock 11 – Mixed Practice

Unit 7: Data Structures and Algorithms · 13 questions · about 15 minutes. Press End Mock any time to see your score and the correct answers.

All 11 topic-wise mocks in this unit
0 / 13 answered 00:00
Q1. A problem of size n requires n² bit operations. What is the largest size instance that can be solved in 1 second, if each bit operation is carried out in 10⁻⁹ second?
Q2. Which of the following is NOT a palindromic subsequence of the string "ababcdabba"?
Q3. How much time does an algorithm using 2⁵⁰ bit operations need if each bit operation takes 2⁻³⁸ seconds?
Q4. FFTs are ______ techniques used to encode digital video and audio information and help analyse the signal in the ____ domain.
Q5. Let n denote a positive integer. A function f is defined as
f(n) = 0, if n = 1
f(n) = f(⌊n/2⌋) + 1, if n > 1
What is f(25), and what does this function find?
Q6. Which of the following is used to determine the cost performance index?
Q7. Software project manager is responsible for the following task:
(A) Project planning
(B) Project status tracking
(C) Resources management
(D) Risk management
(E) Project delivery within time & budget
Q8. Which one of the following is a highly associated activity of project planning?
(1) Keep track of the project progress.
(2) Compare actual and planned progress and costs.
(3) Identify the activities, milestones and deliverables produced by a project.
Q9.

How much time does an algorithm using 2⁵⁰ bit operations need if each bit operation takes 2⁻³⁸ seconds?

Q10.

Let n be a positive integer and f(n) = 0 if n = 1, and f(n) = f(⌊n/2⌋) + 1 if n > 1. What is f(25), and what does the function compute?

Q11.

If algorithm A and another algorithm B take −− log (n) √n 2 and microseconds, respectively, to n solve a problem, then the largest size of a problem these algorithms can solve, respectively, in one second are ___ and _____

Q12.

Consider the pseudo-code fragment, where m is a non-negative integer that has been initialized:

p = 0;
k = 0;
while (k < m)
    p = p + 2^k;
    k = k + 1;
end while

Which of the following is a loop invariant for the while statement? (A loop invariant is an assertion that is true each time the guard is evaluated.)

Q13.

Consider a Boolean function of ‘n’ variables. The order of an algorithm that determines whether the Boolean function produces a output 1 is :