Programming Techniques in C++ Final Review

Programming Techniques in C++ Final Review

University

11 Qs

quiz-placeholder

Similar activities

C# chapter 1

C# chapter 1

University

10 Qs

Recursion

Recursion

10th Grade - University

6 Qs

AdvancedProgramming_intro

AdvancedProgramming_intro

University

10 Qs

Operating Systems - Processes

Operating Systems - Processes

University

8 Qs

Algorithm Complexity Final Exam

Algorithm Complexity Final Exam

University

15 Qs

Enumeration and Recursion

Enumeration and Recursion

11th Grade - University

12 Qs

AP CSA Recursion

AP CSA Recursion

10th Grade - University

10 Qs

Latihan Rekursif

Latihan Rekursif

University

12 Qs

Programming Techniques in C++ Final Review

Programming Techniques in C++ Final Review

Assessment

Quiz

Computers

University

Hard

Created by

Hai Nguyen

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a recursive function?
A function that calls itself
A function that iterate a set of statements a number of times

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Recursion is a method in which the solution of a problem depends on ____________
Larger instances of different problems
Larger instances of the same problem
Smaller instances of the same problem
Smaller instances of different problems

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following problems can’t be solved using recursion?
Factorial of a number
Nth fibonacci number
Length of a string
Problems without base case

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Recursion is similar to which of the following?
Switch Case
Loop
If-else
If elseif else

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In recursion, the condition for which the function will stop calling itself is ____________
Base case
Best case
Worst case
There is no such condition

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
What will happen if we call Mysterious(10);

The code will show a compile time error

10 is output continuously until stack overflows

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
What will be printed out if we call Mysterious(5);

5

1

5 4 3 2 1 0

5 4 3 2 1

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?