C++ Functions

C++ Functions

Assessment

Flashcard

Science, Computers

6th - 8th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

15 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What keyword is used to define a function that returns a whole number in C++?

Back

int

2.

FLASHCARD QUESTION

Front

What must a non-void function include to return a value?

Back

Return statement

3.

FLASHCARD QUESTION

Front

What keyword is used to define a function that does not return any value?

Back

void

4.

FLASHCARD QUESTION

Front

What is the correct way to start a function that does not return a value?

Back

void functionName() {

5.

FLASHCARD QUESTION

Front

What is the return type of a function that returns a double value?

Back

double

6.

FLASHCARD QUESTION

Front

What is the purpose of a return statement in a function?

Back

To send a value back to the caller of the function.

7.

FLASHCARD QUESTION

Front

What does the keyword 'void' indicate in a function definition?

Back

The function does not return a value.

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?