C++ Functions

Quiz
•
Science, Computers
•
6th - 8th Grade
•
Medium
Natalia Fumero
Used 627+ 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
13 questions
BÀI THỰC HÀNH 2

Quiz
•
7th - 8th Grade
12 questions
C++ References

Quiz
•
6th - 12th Grade
12 questions
C++

Quiz
•
7th Grade
9 questions
C++ Kelas 89

Quiz
•
8th Grade
10 questions
Wprowadzenie do C++

Quiz
•
8th Grade
10 questions
C# lesson10

Quiz
•
1st - 10th Grade
15 questions
JAVA: Level-1

Quiz
•
5th - 12th Grade
16 questions
Loops

Quiz
•
5th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Science
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
11 questions
SI Units and Measurements

Quiz
•
8th Grade
20 questions
CFA 01 Scientific Process

Quiz
•
7th Grade
25 questions
"Matter" Pre-Assessment

Quiz
•
6th Grade
23 questions
Scientific Method and Variables

Quiz
•
7th Grade
10 questions
Characteristics of Life

Quiz
•
6th Grade