
LZECE431_Topic5
Quiz
•
Computers
•
University
•
Medium
Dr Zaini
Used 2+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a pointer store?
a) The value of the variable it points to.
b) The memory address of the variable it points to.
c) Both the value and memory address of the variable it points to.
d) None of the above.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. In C++, a reference is:
a) A new variable with a separate memory address.
b) Another name for an existing variable.
c) A type of pointer.
d) Not allowed in C++.
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
When a function receives parameters by value (Choose 2):
a) The function receives the values of the arguments.
b) The function receives the memory addresses of the arguments.
c) Changes made to the parameters inside the function do not affect the original values.
d) The function can modify the original values directly.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is passed to a function when using pass by pointer?
a) The values of the arguments.
b) The memory addresses of the arguments.
c) A copy of the arguments.
d) The reference to the function.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a pass by reference function, changes made to the parameters inside the function:
a) Affect the original values.
b) Do not affect the original values.
c) Create new variables.
d) Result in a compilation error.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6. What is a similarity between arrays and pointers in C++?
a) Both cannot be used as function parameters.
b) Both can be used to store multiple values.
c) Both have a fixed size.
d) Both can only store integers.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When passing an array to a function in C++, what is actually passed?
a) The entire array.
b) The memory address of the first element.
c) A copy of the array.
d) The size of the array.
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Machine Learning (Introduction)
Quiz
•
University
10 questions
Kuis Sensor 1
Quiz
•
University
11 questions
Determining System Requirements
Quiz
•
University
20 questions
Network topologies
Quiz
•
8th Grade - University
18 questions
CIS2303 Week 4_5 Ch_3
Quiz
•
University
10 questions
INTO Artificial Intelligence
Quiz
•
University - Professi...
14 questions
ITF Chapter 1 Computing Devices
Quiz
•
University
20 questions
Software Engineering Quiz 1
Quiz
•
University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
7 questions
Central Idea of Informational Text
Interactive video
•
4th Grade - University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
39 questions
Unit 7 Key Terms
Quiz
•
11th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
18 questions
Plotting Points on the Coordinate Plane
Quiz
•
KG - University
5 questions
Declaration of Independence
Interactive video
•
4th Grade - University
