
C++ Functions and Arrays Quiz

Quiz
•
Computers
•
University
•
Medium
ZPPSU VLs
Used 7+ times
FREE Resource
34 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we use functions in a program?
To organize code and reduce redundancy
To make the program longer
To increase memory usage
To make debugging harder
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of function is provided by the C++ library?
Custom
Built-in
Manual
User-defined
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct term for data sent to a function?
Conditions
Arguments
Parameters
Pointers
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the return type in a function indicate?
Code inside the function
Number of arguments
How many times the function runs
Type of value the function return
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct order of a function definition?
returnType, functionName, parameters
functionName, returnType, parameters
returnType, parameters, functionName
parameters, returnType, functionName
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a built-in C++ function?
sqrt()
calculateTotal()
add_numbers()
runProgram()
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of this code?
int square(int x) { return x * x; }
int main() { cout << square(3); }
6
3
9
Error
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
Soal UTS Dasar Pemrograman

Quiz
•
University
35 questions
FINAL_EXAM (CFP_122)

Quiz
•
University
30 questions
QUIZOBYTE FINAL ROUND

Quiz
•
University
30 questions
OODP_Batch 1_Quiz

Quiz
•
University
30 questions
blitz

Quiz
•
University
30 questions
Code debugging - Round 1

Quiz
•
University
35 questions
python

Quiz
•
11th Grade - University
30 questions
quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University