
C++ Functions
Flashcard
•
Science, Computers
•
6th - 8th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

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.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?