
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
15 questions
Ôn tập kỳ 2 tin 6
Quiz
•
1st - 12th Grade
10 questions
Python
Quiz
•
3rd - 10th Grade
10 questions
El buen uso de la Computadora
Quiz
•
3rd - 6th Grade
11 questions
What is a computer
Quiz
•
KG - University
10 questions
4to 1q
Quiz
•
4th Grade
8 questions
L4-B4
Quiz
•
4th Grade
15 questions
Sistem Operasi Jaringan
Quiz
•
1st - 4th Grade
12 questions
Grade 4 - Keywords
Quiz
•
4th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
15 questions
Equivalent 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
Comparing Decimals
Quiz
•
4th Grade
10 questions
Understanding Equivalent Fractions
Interactive video
•
3rd - 5th Grade
15 questions
Decomposing Fractions
Quiz
•
4th Grade
10 questions
Theme
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Lesson
•
3rd - 4th Grade