
C++ Pointers
Authored by Zalikha Zulkifli
Computers
University
Used 284+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
13 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
The statement :
remove p;
deallocates the dynamic variable that is pointed to by p.
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the operator used for dereferencing or indirection?
*
&
%
&&
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Specify whether the statement below is valid or invalid.
int i;
double * dp = &i;
Valid
Invalid
4.
MULTIPLE CHOICE QUESTION
30 sec • 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
30 sec • 1 pt
A variable pointed to by xAddr is
*ptr
*xAddr
&xAddr
+xAddr
6.
MULTIPLE CHOICE QUESTION
30 sec • 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
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this command do?.
Creates a pointer of type integer that is initially pointing to null.
Creates a pointer of type integer that is initially pointing to 0.
Creates a pointer in the heap
None of the answers are valid
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
10 questions
Planning and Implementation of Information Security
Quiz
•
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
13 questions
Guess the Retro Computer 1
Quiz
•
KG - Professional Dev...
10 questions
Machine Learning (Introduction)
Quiz
•
University
11 questions
Determining System Requirements
Quiz
•
University
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade