Functions in C++

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Robert B.A
Used 5+ times
FREE Resource
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
Similar Resources on Wayground
8 questions
Unit 4 Day 8 Opener - C++ Function Concepts

Quiz
•
9th - 12th Grade
10 questions
Quiz Bahasa C++ 1

Quiz
•
9th - 12th Grade
7 questions
1.TR - AiP - 2022 - (05)

Quiz
•
9th Grade
10 questions
Recursion in Java (AP Computer Science A)

Quiz
•
9th - 12th Grade
10 questions
Programming

Quiz
•
1st - 10th Grade
12 questions
C++ References

Quiz
•
6th - 12th Grade
12 questions
Divide et Impera

Quiz
•
11th Grade - University
9 questions
Recursivitate

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade