
Quiz on Pointers and Dynamic Arrays in C++
Authored by Галина Ковтонюк
Computers
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
25 questions
Intro PseInt
Quiz
•
University
25 questions
Latihan soal Algoritma dan Pemrograman
Quiz
•
University
25 questions
Sistem Operasi[1]: Umum dan Proses
Quiz
•
University
25 questions
Computer Software Quiz
Quiz
•
University
25 questions
Unit 1: Post Test: Fundamentals of Computer Systems
Quiz
•
10th Grade - University
25 questions
Compro. Final 1/64 part1
Quiz
•
University
25 questions
AI Quiz
Quiz
•
University
25 questions
Introduction to artificial intelligence and machine learning
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University