
CSS C++ Functions

Quiz
•
Computers
•
KG
•
Easy
Raphael Antonio
Used 2+ times
FREE Resource
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1. What is another name for a function in C++?
a. Module
b. Method
c. Procedure
d. All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. What is the purpose of a function in C++?
a. To perform a certain action
b. To reuse code
c. To divide complicated programs into manageable components
d. All of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. Which of the following is a pre-defined function in C++?
a. myFunction()
b. main()
c. findSum()
d. swap()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4. What is the syntax for creating a function in C++?
a. void myFunction() { //code to be executed }
b. void myFunction() ( //code to be executed )
c. void myFunction() [ //code to be executed ]
d. void myFunction() < //code to be executed >
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5. What is the purpose of a default value for a parameter in a function?
a. To make the parameter optional
b. To ensure that the parameter is always passed
c. To make the function run faster
d. None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6. What is the purpose of passing a reference to a function?
a. To change the value of the arguments
b. To make the function run faster
c. To ensure that the arguments are always passed
d. None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7. Which of the following is not a benefit of using functions in C++?
a. Reusability
b. Divide and conquer
c. Components
d. Increased complexity
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
C++ Function

Quiz
•
10th Grade
18 questions
STATIC KEYWORD IN JAVA

Quiz
•
9th - 12th Grade
20 questions
Python Functions

Quiz
•
9th Grade
23 questions
Python Functions

Quiz
•
12th Grade
25 questions
JAVASCRIPT

Quiz
•
12th Grade
20 questions
Pointers

Quiz
•
University
20 questions
Arduino Basics

Quiz
•
9th - 12th Grade
20 questions
Functions

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