Programming Techniques in C++ Final Review

Programming Techniques in C++ Final Review

University

11 Qs

quiz-placeholder

Similar activities

Machine Learning (Introduction)

Machine Learning (Introduction)

University

10 Qs

Determining System Requirements

Determining System Requirements

University

11 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

INTO Artificial Intelligence

INTO Artificial Intelligence

University - Professional Development

10 Qs

ITF Chapter 1 Computing Devices

ITF Chapter 1 Computing Devices

University

14 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

Let's Play Together

Let's Play Together

University - Professional Development

10 Qs

Python List

Python List

4th Grade - 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?

Discover more resources for Computers