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
10 questions
Programming with C++

Quiz
•
9th - 12th Grade
10 questions
Operators in C

Quiz
•
9th - 12th Grade
10 questions
10 ԹԳՀԳ 2-րդ կիսամյակ ամփոփիչ գրավոր աշխատանք/ֆունկցիաներ/

Quiz
•
10th Grade
15 questions
ELEMENTE DE BAZA ALE LIMBAJULUI C++

Quiz
•
10th Grade
10 questions
C++ vs Python: A Quiz Introduction

Quiz
•
11th Grade - University
15 questions
Control statements in C++

Quiz
•
9th - 12th Grade
9 questions
Recursivitate

Quiz
•
11th Grade
8 questions
Functii quiz

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade