Question types

Idea of Efficiency and Recursion question types

52 questions across 7 question groups — pick any mix to generate a Computer Science paper with step-by-step answer keys.

52
Questions
7
Question groups
5
Question types
Sample Questions

Idea of Efficiency and Recursion questions

One sample from each question group in this chapter. Select any group above to see the full set with answer keys.

Q 8M.C.Q1 Mark
Consider the following recursive function fun(x, y). What is the value of fun(4, 3)?

  • 13
  • B
    12
  • C
    9
  • D
    10

Answer: A.

View full solution
Q 10M.C.Q1 Mark
What is the output of the following piece of code?

  • A
    0 1 2 3
  • B
    An exception is thrown
  • C
    0 1 1 2 3
  • 0 1 1 2

Answer: D.

View full solution
Q 283 Marks Each3 Marks
Understand the code, answer the following questions:

(a) What is the run-time efficiency of the following code segment?
(b) Write the output.
(c) What will be the runtime efficiency if $n=2$?
View full solution
Q 304 Marks Each4 Marks
Write a program to create list of the random number and show the normal code and efficient code for buble sort. The program should implement through
functions.
View full solution
Q 324 Marks Each4 Marks
Write a program to accept a number from the user and to check whether the entered number is prime number or not. The program should be implemented in two ways to show the efficiency of the code.
View full solution

Generate a Idea of Efficiency and Recursion paper free

Pick question groups from the list above, set marks and difficulty, and export a branded PDF with step-by-step answer keys. First 3 chapters free — no signup.

Download App