C++ Functions
Quiz
•
Science, Computers
•
6th - 8th Grade
•
Practice Problem
•
Medium
Natalia Fumero
Used 640+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A function can have _____ inside the parenthesis
loops
Arguments/Parameters
Braces
Types
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A function that has no return type starts with:
int
void
Arguments
Braces
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A function that returns a whole number starts with the word
int
void
string
{ }
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Fill in the blank to have this function work properly
_____ function ( ) {
int a = 4;
int b = 5;
cout<<a*b;
}
string
int
void
variable
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Fill in the blank to have this function work properly
_____ function ( ) {
string greeting = "Welcome to my game";
return greeting;
}
string
void
int
variable
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Fill in the blank to have this function work properly
_____ function ( ) {
int a;
cin >> a;
cout<<"You chose " << a <<endl;
}
string
void
int
variable
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
True or False. We can call functions inside of other functions.
True
False
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Repetition in shapes (year 4)
Quiz
•
6th Grade
10 questions
Transport in Plants 2
Quiz
•
6th - 8th Grade
12 questions
Creating Webpages
Quiz
•
6th - 8th Grade
10 questions
L3 Models and Simulations
Quiz
•
7th Grade
15 questions
Types of pulleys
Quiz
•
6th Grade
15 questions
Занятие 10 (Python)
Quiz
•
6th - 8th Grade
10 questions
JavaScript Vocabulary Sheet (CodeHS – Karel the Dog)
Quiz
•
8th Grade
16 questions
Hillcrest Middle School-The Respiratory System
Quiz
•
7th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Science
20 questions
Physical and Chemical Changes
Quiz
•
8th Grade
20 questions
Photosynthesis and Cellular Respiration
Quiz
•
7th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
21 questions
States of Matter - Properties
Quiz
•
6th Grade
20 questions
Energy Transformations
Quiz
•
6th Grade
10 questions
Transverse and Longitudinal Waves
Quiz
•
6th Grade
16 questions
Kinetic Energy and Potential Energy
Lesson
•
6th Grade
9 questions
Conduction, Convection, and Radiation
Lesson
•
6th - 8th Grade
