
oop 2
Quiz
•
Information Technology (IT)
•
University
•
Hard
laith fakhri
Used 1+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Contemporary Learning Theories Quiz
Quiz
•
12th Grade - University
13 questions
Session 15 + 16 : Function
Quiz
•
University
10 questions
CHFI Module 1
Quiz
•
University
10 questions
Entity Relationship Diagram
Quiz
•
University
15 questions
Huawei Security
Quiz
•
University
10 questions
FUNDAMENTO DE PROGRAMACIÓN - PRUEBA DIAGNOSTICA
Quiz
•
University
18 questions
Arduino Quiz #11: Functions
Quiz
•
11th Grade - University
15 questions
Python Challenge
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
