
C++ - Module 9 Quiz
Authored by Eng. Ahmed Aweis
Computers
4th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is a parameter in a C++ function?
C. A keyword to end the function
B. A variable used within the function
A. A value passed when declaring a function
D. A data type used for calculations
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What does the function printNum(int num) do?
B. Adds num to another variable
A. Prints the value of num
D. Checks if num is even
C. Multiplies num by 2
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the purpose of the return statement in a C++ function?
D. Loops through the code again
C. Initializes a variable
B. Prints a message to the console
A. Ends the function execution
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
In the function displayNum(int n1, float n2), what are n1 and n2?
C. Function parameters
B. Data types
A. Function names
D. Return values
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output of the program when num1 is 5 and num2 is 5.5?
C. The int number is 5 The double number is 5.55
B. The int number is 5 The double number is 5
D. The int number is 5 The double number is 5.0
A. The int number is 5 The double number is 5.5
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What does the code return (a + b); do in the add() function?
A. Subtracts a from b
B. Multiplies a by b
C. Divides a by b
D. Returns the sum of a and b
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What data type is used in the function add(int a, int b) to return a value?
D. float
A. void
B. double
C. int
Access all questions and much more by creating a free account
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
TEST NORMAS DE LA SALA DE TECNOLOGIA
Quiz
•
3rd - 5th Grade
10 questions
Cyber Security
Quiz
•
1st - 10th Grade
14 questions
Quiz sobre documentos y dibujos de google, y dispositivos
Quiz
•
1st - 6th Grade
10 questions
Ôn lại Paint 5
Quiz
•
1st - 5th Grade
11 questions
Handling Data: Working with values
Quiz
•
4th Grade
9 questions
TIN HỌC- LỚP 4- ôn HK
Quiz
•
4th Grade
12 questions
Quizz Internet
Quiz
•
KG - Professional Dev...
10 questions
BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
12 questions
Presidents' Day
Quiz
•
KG - 5th Grade
14 questions
Fractions to Decimals & Decimals to Fractions
Quiz
•
4th Grade
12 questions
Adding and Subtracting fractions with Like denominators quiz
Quiz
•
4th Grade
16 questions
multiplication facts
Quiz
•
4th Grade
14 questions
Adding and Subtracting Mixed Numbers with Like Denominators
Quiz
•
4th Grade