
oop 1
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Hard
laith fakhri
Used 1+ times
FREE Resource
Enhance your content in a minute
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a constructor in a class?
To destroy the object
To initialize data members
To declare public members only
To access private members
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to access class members through a pointer?
.
,
->
::
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default access specifier for class members in C++?
public
private
protected
static
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is automatically called when an object is destroyed?
create()
delete()
constructor
destructor
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which access specifier allows class members to be accessed from outside the class?
protected
private
public
internal
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which of the following statements about constructor overloading is TRUE?
Constructors must have different names.
Constructors can’t be overloaded.
Constructors can have default arguments.
Only one constructor is allowed per class
Similar Resources on Wayground
10 questions
PHP Basics Quiz
Quiz
•
University
10 questions
PT101: Quiz No. 1
Quiz
•
University
10 questions
Module 2
Quiz
•
University
10 questions
SQL PRE-ASSESSMENT (MOTIVATION)
Quiz
•
University
10 questions
How Cyber Safe Are You?
Quiz
•
University
10 questions
Operating and application systems
Quiz
•
12th Grade - University
10 questions
Quiz Pengetahuan Umum Komputer
Quiz
•
3rd Grade - University
10 questions
ED810 Module 7 Discussion Board
Quiz
•
University
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Information Technology (IT)
10 questions
Identifying equations
Quiz
•
KG - University
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
HS2C2 AB QUIZIZZ
Quiz
•
1st Grade - Professio...
14 questions
Homonyms Quiz
Quiz
•
KG - University
16 questions
Parts of a Parabola
Quiz
•
8th Grade - University
10 questions
A Brief History of Geologic Time
Interactive video
•
11th Grade - University
15 questions
Black Friday/Cyber Monday
Quiz
•
9th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
