
C++ Pointers and Arrays Quiz
Authored by Fidaa Abed
Computers
12th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What operator is used to get the address of a variable in C++?
*
&
->
%
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a pointer variable store?
Value of a variable
Address of another variable
Both value and address
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is the address of an array passed to a function in C++?
Automatically
Explicitly using &
As a reference
As a value
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements correctly declares a pointer to an integer?
int ptr*;
int* ptr;
int ptr;
ptr int;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the indirection operator (*) do when applied to a pointer?
Prints the address of the pointer
Points to another pointer
Accesses the value the pointer points to
Creates a new pointer
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following can hold the address of an integer?
int*
float*
char*
double*
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given int x = 25; int *ptr = &x;, what will *ptr output?
Memory address of x
Value of x
Undefined behavior
0
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
20 questions
Design your website
Quiz
•
7th - 12th Grade
16 questions
OCR Sys Arch J277
Quiz
•
10th - 12th Grade
14 questions
INFORMATIKA
Quiz
•
10th - 12th Grade
15 questions
Internet Basics
Quiz
•
5th Grade - University
20 questions
Tin học 11 chương I
Quiz
•
1st - 12th Grade
14 questions
Internet terminology
Quiz
•
10th - 12th Grade
20 questions
Excel Vocabulary and Screen Parts
Quiz
•
8th - 12th Grade
14 questions
Unit 2, 1.5 World Wide Web (www) technologies
Quiz
•
12th 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
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