Programming Techniques in C++ Final Review

Programming Techniques in C++ Final Review

University

11 Qs

quiz-placeholder

Similar activities

4.6.4 Logic Gates

4.6.4 Logic Gates

10th Grade - Professional Development

15 Qs

Software Engineering :TEST 2

Software Engineering :TEST 2

University

10 Qs

ADVACOMT-Quiz No.1 (final term)

ADVACOMT-Quiz No.1 (final term)

University

15 Qs

Web-II-Loop and Function

Web-II-Loop and Function

University

10 Qs

VITAP Quiz-1

VITAP Quiz-1

University

10 Qs

Firewall and Network Security

Firewall and Network Security

University

15 Qs

2.4 - 2.6

2.4 - 2.6

University

15 Qs

Week 4

Week 4

University

15 Qs

Programming Techniques in C++ Final Review

Programming Techniques in C++ Final Review

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Hai Minh Nguyen

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?