Programming Techniques in C++ Final Review

Programming Techniques in C++ Final Review

University

11 Qs

quiz-placeholder

Similar activities

8. Fungsi Rekursif

8. Fungsi Rekursif

University

10 Qs

Quiz-1(Div-C)

Quiz-1(Div-C)

University

12 Qs

OOSWE_2

OOSWE_2

University

10 Qs

Google Prof Cloud Archi - pt 8

Google Prof Cloud Archi - pt 8

University

15 Qs

Common errors in C programming

Common errors in C programming

University

15 Qs

STGY PPS QUIZ  TEST

STGY PPS QUIZ TEST

University

15 Qs

data structure

data structure

University

15 Qs

PDS - 04225 - Recursion - Chapter 12

PDS - 04225 - Recursion - Chapter 12

University

10 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?