CSNP-04103 Chapter 6 - Functions

Quiz
•
Computers
•
University
•
Medium
Rafael Orta
Used 189+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
What are the methods used to pass parameters to a function in C++?
Call by memory
Call by reference
Call by duplicating the argument
Call by value
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Select all that apply. Functions can:
Return no value
Return exactly one value
Return more than one value
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C++ What is the symbol used to tell the compiler that you are sending a parameters to a function by reference?.
&&
@
*
&
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C++ when sending parameters by reference the & is placed.
&<Data Type>
<Data Type>&
<Data Type> <Variable Name>&
<Data Type> <Constant Name>&
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C++ if you are calling a function passing parameters by reference, the function itself must be of type:.
void
int
float
string
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C++ When passing parameters by reference to a function, you are passing:
A copy of the value in the calling function.
The value of the parameters in the calling function
The memory address of the variable in the calling function
None of the above.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C++, If you need to send a value to a function by using parameters, and you do not need to return anything from the function, what type of call will you use:
Call by Value
Call by Reference
Call by Cellular phone
A void call
Create a free account and access millions of resources
Similar Resources on Wayground
5 questions
OOP2023_B9A1Quiz_January24

Quiz
•
University
10 questions
Functions

Quiz
•
8th Grade - University
9 questions
QUIZ Pass by value and reference

Quiz
•
University
12 questions
Function and Procedure in C

Quiz
•
University
10 questions
C++ Functions

Quiz
•
University
8 questions
H Plenary - Modular programming quick quiz

Quiz
•
10th Grade - University
7 questions
UNIT 5 Function Types

Quiz
•
University
15 questions
C++ Quiz-1

Quiz
•
University
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade