
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
9 questions
G12- Python Strings Quiz

Quiz
•
12th Grade - University
10 questions
Computer Graphics Quiz

Quiz
•
University
18 questions
SDC_SAP_C02-Part02 (19-36)

Quiz
•
University
10 questions
ASSESSING HARDWARE

Quiz
•
University
10 questions
Introduction to Computer Science Concepts

Quiz
•
6th Grade - University
18 questions
Python Library Routines Quiz

Quiz
•
10th Grade - University
10 questions
CHAPTER 2: SYSTEM ANALYSIS AND DESIGN

Quiz
•
University
15 questions
Use Cases and Domain Classes

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 Information Technology (IT)
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