
Long Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
ZPPSU VLs
Used 3+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main purpose of a function in programming?
To create loops
To make programs slower
To reuse and organize code
To remove variables
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of function is provided by the C++ library?
User-defined
Built-in
Custom
Manual
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct term for data sent to a function?
Parameters
Arguments
Pointers
Conditions
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the return type in a function indicate?
Number of arguments
Code inside the function
Type of value the function returns
How many times the function runs
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What part of the function contains the actual code to execute?
Declaration
Parameter list
Body
Return type
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a user-defined function?
main()
sqrt()
displayMessage()
cout
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct order of a function definition?
functionName, returnType, parameters
returnType, parameters, functionName
returnType, functionName, parameters
parameters, returnType, functionName
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
25 questions
AI Quiz
Quiz
•
University
25 questions
Intro PseInt
Quiz
•
University
25 questions
Latihan soal Algoritma dan Pemrograman
Quiz
•
University
25 questions
Computer Software Quiz
Quiz
•
University
25 questions
Compro. Final 1/64 part1
Quiz
•
University
25 questions
Algorytmy i jezyki programowania
Quiz
•
4th Grade - University
25 questions
GNIDOC ROUND 1
Quiz
•
University
25 questions
UPRICCNASEP2
Quiz
•
University
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
