
C++ Pointers and File Management Quiz

Quiz
•
Others
•
University
•
Medium
S. Deepika
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a pointer in C++?
A type of function
A variable that holds a string
A class member
A variable that points to an address of a value
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to access the value stored at the address pointed to by a pointer?
&
*
->
&&
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'this' pointer refer to in C++?
The base class
The current instance of the class
A static variable
A global variable
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a pure virtual function in C++?
A function with a complete implementation
A function that cannot be overridden
A function declared without an implementation
A function that is private
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which class is the base class for all stream classes in C++?
istream
ostream
ios
fstream
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the ofstream class in C++?
To create objects
To read from files
To write to files
To manage input streams
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a manipulator in C++?
put
read
get
setprecision
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Solving Base, Rate, & Percentage

Quiz
•
University
15 questions
Understanding Fecal Matter Transplants

Quiz
•
University
10 questions
Instruction Set Architecture Quiz

Quiz
•
University
10 questions
Quiz on Applied Mathematics II set by walle T.

Quiz
•
University
10 questions
so and such

Quiz
•
University
15 questions
Physiology of vision

Quiz
•
University
10 questions
Statistics Using R

Quiz
•
University
10 questions
Tenses 1

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade