Recursion - ISC Class 12 Computer Science Questions with Answers
30 past-paper questions on Recursion from ISC Class 12 Computer Science papers (2026-2017), newest first. Open one to see its answer.
- State the role of base case and recursive case in a recursive method. 2026 · 2 marks · Short answer
- A class Trimorphic has been defined to accept a positive integer from the user and display if it is a Trimorphic number or not… 2026 · 8 marks · Program
- The following function justDoIt() is a part of some class. Assume num is a positive integer. … Answer the questions given below… 2026 · 3 marks · Short answer
- State any two differences between iteration and recursion. 2026 · 2 marks · Short answer
- The following function workOut( ) is a part of some class. Assume 'n' is a positive integer. … Answer the questions given below… 2026 · 3 marks · Short answer
- The following function int solve( ) is a part of some class. Assume ‘m’ and ‘n’ are positive integers. Answer the questions given… 2025 · 3 marks · Short answer
- The following function think( ) is part of some class. Assume $f$ is the lower bound and $l$ is the upper bound of $arr[\ ]$… 2025 · 3 marks · Short answer
- Recursion takes toll on memory. Which of the following option is the reason for it? 2025 · 1 mark · MCQ
- Following code gives a StackOverException. … Stack is a data structure whereas recursion is related to a method. Why does the… 2025 · 2 marks · Short answer
- Recursion utilises more memory as compared to iteration. Given below are two statements marked Assertion and Reason. Read the two… 2025 · 1 mark · Assertion-reason
- A class LCM has been defined to find the Lowest Common Multiple of two integers. Some of the data members and member functions… 2025 · 10 marks · Program
- [Recursion program] Design a class Spy to check if a number is a Spy number or not. A spy number is a number where the sum of its… 2025 · 10 marks · Program
- The following function getIt() is a part of some class. Assume x is a positive integer, f is the lower bound of arr[ ] and l is… 2025 · 3 marks · Short answer
- A student has written the following code. It is written to check whether a string is palindrome or not. However, the code is not… 2025 · 2 marks · Short answer
- If binary search technique uses recursion instead of iteration, the code: i. will contain two base cases. ii. will contain two… 2025 · 1 mark · MCQ
- Recursion utilises more memory as compared to iteration. 2025 · 1 mark · Assertion-reason
- Following method is a part of a class MyArray. … Predict the output of the code considering there is no compilation error. Show… 2025 · 2 marks · Short answer
- The following functions are a part of some class: … What will the output of Try( ) when the value of ch[]={‘P’, ‘L’,‘A’, ‘Y’} and… 2024 · 3 marks · Short answer
- The following function is a part of some class: … What will be the output of jolly( ) when the value of x[ ]={6,3,4,7,1} , n=4… 2024 · 3 marks · Short answer
- The following function quiz( ) is a part of some class. Assume ‘n’ is a positive integer, greater than 0. Answer the given… 2023 · 3 marks · Short answer
- The following function task() is a part of some class. Assume ‘m’ and ‘n’ are positive integers, greater than 0. Answer the… 2023 · 3 marks · Short answer
- A class Gcd has been defined to find the Greatest Common Divisor of two integer numbers. Some of the members of the class are… 2022 · 6 marks · Program
- Differentiate between direct recursion and indirect recursion. 2022 · 2 marks · Short answer
- … With reference to the program code given above, what will the function Toy() return when the value of $n = 56$? 2022 · 1 mark · MCQ
- A class Fibo has been defined to generate the Fibonacci series 0, 1, 1, 2, 3, 5, 8, 13, ……. (Fibonacci series are those in which… 2022 · 6 marks · Program
- Give one reason, why iteration is better than recursion. 2022 · 1 mark · Short answer
- The following is a function of some class. What will be the output of the function test ( ) when the value of count is equal to 4… 2020 · 5 marks · Short answer
- The following function check( ) is a part of some class. What will the function check( ) return when the value of (i) n=25 and… 2020 · 5 marks · Short answer
- The following function Mystery( ) is a part of some class. What will the function Mystery( ) return when the value of num=43629… 2019 · 5 marks · Long answer
- The following function magicfun() is a part of some class. What will the function magicfun() return, when the value of $n=7$ and… 2017 · 5 marks · Long answer
Other Computer Science chapters
- Computer Hardware 55 questions
- Implementation of algorithms to solve problems 20 questions
- Programming in Java (Review of Class XI Sections B and C) 3 questions
- Objects 48 questions
- Primitive values, Wrapper classes, Types and casting 11 questions
- Variables, Expressions 2 questions
- Statements, Scope 4 questions
- Methods 13 questions
- Arrays, Strings 48 questions
- Inheritance, Interfaces and Polymorphism 44 questions
- Data structures 71 questions
- Complexity and Big O notation 15 questions
- Boolean Algebra 177 questions