oop 2

oop 2

University

13 Qs

quiz-placeholder

Similar activities

Problem Solving & Programming Design (part 4)

Problem Solving & Programming Design (part 4)

University

17 Qs

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

11th Grade - University

16 Qs

Website Quiz

Website Quiz

University

10 Qs

IT Quiz Bee 2025 - EASY

IT Quiz Bee 2025 - EASY

University

15 Qs

MS Word

MS Word

12th Grade - University

10 Qs

Mastering Microsoft OneDrive Basics

Mastering Microsoft OneDrive Basics

12th Grade - University

10 Qs

CodeQuest TechTopia 2025-26

CodeQuest TechTopia 2025-26

University

11 Qs

Quiz Meet 3 Mini SC Programing

Quiz Meet 3 Mini SC Programing

University

10 Qs

oop 2

oop 2

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?