Functions in C++
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Robert B.A
Used 8+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A block of code that performs a ____ purpose is known as a function
Specific
General
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
XX functionName (parameter1, parameter2,...) { // function body } what does XX represents?
function type
function call
return type
function
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
void greet() {
cout << "Hello World";
}
From the above code, what is the function name?
void
greet
cout
greet() { cout << "Hello World"; }
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
void greet() {
cout << "Hello World";
}
From the given block of code, what is the return type of this function?
void
greet
greet()
No return type
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int main() {
greet();
}
What does the given block of codes represents
function definition
return type
function call
Just a function
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are two types of functions in C++?
User-defined and Built in
User defined and Function definition
Built-in function and function prototype
function with return and int function
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
function is executed when it is
defined
called
declared
prototyped
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
Already have an account?
Similar Resources on Wayground
10 questions
J808 LO1.1 Advantages of following a project life cycle
Quiz
•
10th Grade
12 questions
10 Клас Python tests
Quiz
•
10th Grade
10 questions
Bài 29 NHẬN BIẾT LỖI CHƯƠNG TRÌNH
Quiz
•
10th Grade
10 questions
Mid semester kelas XI RPL Konsep pemodelan berorientasi objek
Quiz
•
11th Grade
10 questions
Ôn tập chủ đề 5. Giải quyết vấn đề với sự trợ giúp của máy tính
Quiz
•
12th Grade
15 questions
Lua Review Corona SDK with Notepad++
Quiz
•
10th - 12th Grade
15 questions
Arduino
Quiz
•
7th - 9th Grade
10 questions
Explore Scratch 3: Motion and Pen
Quiz
•
3rd Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
