CBSE CS and IP

CBSE Class 11 & 12 Computer Science and Informatics Practices Python Materials, Video Lecture

Recursion (1 Mark Questions)


  1. Which of the following defined the recursion most correctly:
    • A function that calls itself
    • A function execution instance that calls another execution instance of the same function
    • A class method that calls another class method
    • An in-built method that is automatically called
  2. Recursion is similar to which of the following?
    • switch-case
    • loop
    • if-else
    • None of these
  3. What are the two cases that all the recursive functions should have? Write the name of both.
  4. What is the base case for a recursive function?
  5. When does infinite recursion occur?

No comments:

Post a Comment