
C++ Pointers Quiz
Authored by Turyamusiima Dismas
Computers
1st - 5th Grade
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The operator used for dereferencing or indirection is ____
*
&
->
->>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the right option give the code in the image on the left.
both x and y are pointers to string types
x is a pointer to a string, y is a string
y is a pointer to a string, x is a string
y is a pointer to a string
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following is illegal?
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will happen in the following C++ code snippet?
a is assigned to b
b is assigned to a
p now points to b
q now points to a
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of the following C++ code?
15
5
it will return some random number
10
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following gives the [value] stored at the address pointed to by the pointer : ptr?
Value(ptr)
ptr
&ptr
*ptr
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the right option for the code on the left.
x is a pointer to a string, y is a string
y is a pointer to a string, x is a string
Both x and y are pointers to string types
none of the mentioned
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
8 questions
SCR1 Recap Day 3
Quiz
•
1st Grade
10 questions
Grade 4 Checkpoint 1 Revision
Quiz
•
4th Grade
8 questions
WordPad 3 Grade 2
Quiz
•
2nd Grade
10 questions
Jr 1 - Unit 3 : Working with Text
Quiz
•
1st Grade
10 questions
Types of Keyboards and Keys
Quiz
•
1st - 4th Grade
12 questions
G4- Repetition review
Quiz
•
4th Grade
10 questions
Creating Quantitative Exercise and Organogram Word Processing
Quiz
•
5th Grade
10 questions
Diplo Alternativas
Quiz
•
1st - 3rd 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