Programming Techniques in C++ Final Review

Programming Techniques in C++ Final Review

University

11 Qs

quiz-placeholder

Similar activities

GIS Unit III

GIS Unit III

University

15 Qs

SQLite - Writing Queries

SQLite - Writing Queries

University

9 Qs

Robotics Prelim

Robotics Prelim

University

15 Qs

AB1401 Case Study: Facebook

AB1401 Case Study: Facebook

University

12 Qs

Vocabulary Quiz - Computer - 01

Vocabulary Quiz - Computer - 01

12th Grade - University

10 Qs

Decrypt it! Level 1

Decrypt it! Level 1

University

10 Qs

C Wrapup Quiz Deutsch

C Wrapup Quiz Deutsch

University

12 Qs

Data Warehouse - Foundations

Data Warehouse - Foundations

University

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