
C++ Pointers

Quiz
•
Computers
•
University
•
Hard
Zalikha Zulkifli
Used 281+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
DATA STRUCTURES QUIZ

Quiz
•
University
15 questions
Visual Basic

Quiz
•
University
16 questions
C Programming - Pointers

Quiz
•
University
15 questions
BASIC C PROGRAMMING

Quiz
•
University
10 questions
C++ Functions

Quiz
•
University
15 questions
Quiz Struktur Data

Quiz
•
University
10 questions
Programming in C

Quiz
•
University
12 questions
C++ Faili (1)

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University