C++ Functions

Quiz
•
Science, Computers
•
6th - 8th Grade
•
Medium
Natalia Fumero
Used 636+ 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
Similar Resources on Wayground
10 questions
Programming

Quiz
•
1st - 10th Grade
10 questions
Week 3 Arduino Basics Quiz

Quiz
•
7th - 12th Grade
10 questions
Reference and Pointers in C++

Quiz
•
6th - 8th Grade
13 questions
Тармақталу алгоритмі

Quiz
•
6th - 8th Grade
10 questions
C++

Quiz
•
6th - 8th Grade
15 questions
финал unity base

Quiz
•
8th - 11th Grade
10 questions
Ms. Molloy Computer Science quick quiz

Quiz
•
7th Grade
11 questions
Caligrafía | CM7

Quiz
•
1st - 10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Science
20 questions
Physical and Chemical Changes

Quiz
•
8th Grade
22 questions
Newton's Laws of Motion

Lesson
•
8th Grade
20 questions
Distance Time Graphs

Quiz
•
6th - 8th Grade
10 questions
Exploring Newton's Laws of Motion

Interactive video
•
6th - 10th Grade
17 questions
Thermal Energy Transfer

Lesson
•
6th - 8th Grade
20 questions
Physical and Chemical Changes

Quiz
•
6th Grade
10 questions
Exploring Chemical and Physical Changes

Interactive video
•
6th - 10th Grade
22 questions
Metals, nonmetals, metalloids

Quiz
•
6th Grade