Reference and Pointers in C++

Quiz
•
Computers, Science
•
6th - 8th Grade
•
Medium
Natalia Fumero
Used 115+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What does this symbol allow for in C++? -> *
De-refrencing
Summing numbers
Making text more sparkly
Performing modular operations
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What is the operator used for dereferencing or indirection?
*
&
%
&&
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Specify whether the statement below is valid or invalid.
int i;
double * dp = &i;
Valid
Invalid
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
A pointer variable store a/an
value of another value.
value of another variable.
address of another pointer.
address of another variable.
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Given the following declarations:
int i;
int *pi;
double d;
double *pd;
Specify whether the statements below is valid or invalid.
pi = &i;
Valid
Invalid
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
The __________, also known as the address operator, returns the memory address of a variable.
asterisk (* )
ampersand ( & )
percent sign ( % )
exclamation point ( ! )
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What does the following statement do?
double *num2;
Declares a double variable named num2
Declares and initializes a pointer variable named num2
Initializes a pointer variable named num2
Declares a pointer variable named num2
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Bài tập trắc nghiệm C++

Quiz
•
3rd - 12th Grade
10 questions
С++ цикл for

Quiz
•
6th - 9th Grade
11 questions
Строки в с++

Quiz
•
8th Grade
15 questions
Speed Typing Test with Coding Vocabulary

Quiz
•
3rd - 8th Grade
12 questions
แบบทบทวนก่อนเรียน ภาษา C

Quiz
•
6th - 8th Grade
8 questions
Python Functions Test

Quiz
•
6th Grade
10 questions
C++

Quiz
•
7th - 8th Grade
10 questions
while

Quiz
•
1st - 10th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
13 questions
Primary and Secondary Sources

Quiz
•
6th Grade
15 questions
Decimal Operations

Quiz
•
6th Grade
10 questions
Plotting Points on the Coordinate Plane

Quiz
•
7th - 8th Grade