
oop 2

Quiz
•
Information Technology (IT)
•
University
•
Hard
laith fakhri
Used 1+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following can access private data members of a class?
Only constructors
Only public member functions
Any function in the program
Only member functions of the same class
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if no constructor is defined in a class?
Compilation error
A default constructor is automatically provided
Object cannot be created
Destructor is also removed
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT true about constructors?
They have no return type
They can be overloaded
They can be called manually
They are automatically called when an object is created
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which member selection operator is used with an object?
::
->
.
@
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following providing a programmer with the facility of using object of a class inside other classes
inheritance
Composition
Abstraction
Encapsulation
6.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Can a constructor function be constant
yes, always
Yes, only if premissions are given
no,because objects are not involved
No ,Never
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
when a destructor is called?
after the end of object life
anytime between object's lifespan
at the end of whole program
just before the end of object life
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Quiz Meet 3 Mini SC Programing

Quiz
•
University
17 questions
Problem Solving & Programming Design (part 4)

Quiz
•
University
16 questions
Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

Quiz
•
11th Grade - University
10 questions
oops bootcamp

Quiz
•
University
15 questions
oop intro class & object

Quiz
•
University
10 questions
Mastering Microsoft OneDrive Basics

Quiz
•
12th Grade - University
15 questions
UML and System Modeling Quiz

Quiz
•
12th Grade - University
11 questions
CodeQuest TechTopia 2025-26

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