
C++ Pointers Quiz

Quiz
•
Computers
•
1st - 5th Grade
•
Hard
Turyamusiima Dismas
Used 7+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Term 2 - Grade 1 ICT - Basic Excel

Quiz
•
1st Grade
10 questions
Programming - Data Types

Quiz
•
1st - 10th Grade
12 questions
User Interface

Quiz
•
3rd Grade
10 questions
Skill 1 & 2 Using mouse and keyboard

Quiz
•
2nd Grade
15 questions
MIDTERM IS2C ONLINE QUIZ

Quiz
•
1st Grade
15 questions
UNDERSTANDING WINDOWS

Quiz
•
3rd Grade
14 questions
Data Types in Python

Quiz
•
1st - 5th Grade
10 questions
Pascal Assessment

Quiz
•
3rd - 4th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Place Value

Quiz
•
4th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
20 questions
Finding Volume of Rectangular Prisms

Quiz
•
5th Grade
20 questions
Place Value

Quiz
•
4th Grade
13 questions
4.NBT.A.2 Pre-Assessment

Quiz
•
4th Grade