
Quiz on Pointers and Dynamic Arrays in C++
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Галина Ковтонюк
FREE Resource
Enhance your content in a minute
29 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a pointer in C++?
A variable that stores the address of another variable
A variable that stores a value
A function that returns a value
A type of array
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to obtain the address of a variable?
::
->
&
*
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the symbol '*' indicate when declaring a pointer?
It indicates a pointer
It indicates a reference
It indicates a constant
It indicates a function
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'new' operator in C++?
To initialize a variable
To delete a variable
To allocate memory dynamically
To declare a variable
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of dereferencing a pointer?
Declaring a new pointer
Getting the address of the pointer
Getting the value stored at the address
Changing the pointer's address
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of memory allocation does 'malloc' perform?
Static allocation
Dynamic allocation
Automatic allocation
Manual allocation
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to declare a pointer to an integer?
int pointer;
pointer int;
int* pointer;
*int pointer;
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
26 questions
Analysis Algorithms Introduction
Quiz
•
University
32 questions
TCP Socket Programming
Quiz
•
University
24 questions
Informatik 2: Sortierverfahren
Quiz
•
University
25 questions
Quiz 2
Quiz
•
University
25 questions
PAS Kelas 7 Ganjil
Quiz
•
7th Grade - University
25 questions
Round 1
Quiz
•
University
25 questions
Perangkat komputer_2
Quiz
•
University
25 questions
Web Mania - (Round 1)
Quiz
•
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
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
