C++ pointers

Quiz
•
Computers
•
University
•
Hard

Shiny Verghese
Used 75+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one of these is the indirection operator?
&
>>
<<
*
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of this piece of code?
13
3
Syntax error
none of the given options
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of this piece of code?
15
5
8
This is too confusing
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of this piece of code?
Value of constant pointer (const) cannot be changed
Variable value cannot be used to initialise the pointer
12
24
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function may return a pointer but the programmer must ensure that the pointer
still points to a valid object after the function ends
has not been assigned an address
was received as a parameter by the function
has not previously been returned by another function
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Use the delete operator only on pointers that were
never used
not correctly initialized
created with the new operator
dereferenced inappropriately
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dynamic memory allocation occurs
when a new variable is created by the compiler
when a new variable is created at runtime
when a pointer fails to dereference the right variable
when a pointer is assigned an incorrect address
8.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What would be the output of this piece of code?
A random value such as the address of arr[1]
5
10
15
Similar Resources on Wayground
10 questions
Programming Basics Basics

Quiz
•
8th Grade - University
10 questions
if/else statements quiz

Quiz
•
9th Grade - University
10 questions
C Programming Quiz-6

Quiz
•
University
10 questions
Lakshya2K24

Quiz
•
University
10 questions
C++ linked list

Quiz
•
University
10 questions
Python

Quiz
•
University
10 questions
Python Control Statements

Quiz
•
University
10 questions
pointers and structures

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