
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
FUNDAMENTO DE PROGRAMACIÓN - PRUEBA DIAGNOSTICA

Quiz
•
University
10 questions
OOP Review

Quiz
•
University
10 questions
C++ Templates Quiz

Quiz
•
University
13 questions
Session 15 + 16 : Function

Quiz
•
University
18 questions
Arduino Quiz #11: Functions

Quiz
•
11th Grade - University
15 questions
Python Challenge

Quiz
•
University
16 questions
Web_FE_BASIC_SS34

Quiz
•
University
10 questions
Entity Relationship Diagram

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
Appointment Passes Review

Quiz
•
6th - 8th 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
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Information Technology (IT)
15 questions
Disney Trivia

Quiz
•
University
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University
20 questions
Disney Trivia

Quiz
•
University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
5 questions
Examining Theme

Interactive video
•
4th Grade - University
23 questions
Lab 4: Quizziz Questions

Quiz
•
University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University