
Classes
Authored by Yomna Elkholy
Computers
University
Used 9+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the type of access specifier that the data member number fall under?
//a simple class
class test_example{
int number;
};
Private
Public
Protected
Default
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Where can a protected data member be accessed?
Within the same class
Outside of the class
Within the derived class
Both within and outside the class
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
The concept of handling complexity by hiding the details of a class from theuser is known as:
Inheritance
Polymorphism
Abstraction
Encapsulation
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is the template of a class different from a normal class?
Class template generates objects of classes based on the template type.
Compiler generates classes for only the used types.
Class template helps in making generic classes.
All of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following means "The use of an object of one class in definition of another class", providing a Has-A relationship?
Encapsulation
Composition
Inheritance
Abstraction
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does inheritance allow in a program?
Class reusability
Creating a hierarchy of classes
Extendibility
All of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What will be the output of the following C++ code?
Created
Destroyed
Destroyed
Created
Compile-time error
Run-time error
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
14 questions
Semi-Long Quiz#1 - SAM, NW3A-3E
Quiz
•
University
12 questions
CIS1103 Week 9_10 CLO3 Part 1
Quiz
•
University
14 questions
IOTA : Web Development Bootcamp Quiz 2
Quiz
•
University
10 questions
BOOLEAN CLUB QUIZ 1
Quiz
•
University
10 questions
Concept of Computer Network
Quiz
•
University
11 questions
What is a computer
Quiz
•
KG - University
10 questions
Server Administration- Quiz 1
Quiz
•
12th Grade - University
11 questions
Computer Science (1-9) - Identifying & Preventing Threats
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade