NEW
Font size
WorksheetsChapter 1
Total questions: 10
Worksheet time: 5mins
Which programming language is oriented towards objects?
BCPL
B
C
C++
In programming terms, objects consist of data, code, and connections.
TRUE
FALSE
In the following code, which point(s) CAN BE REMOVED yet the program can still work?
(1)
(3)
(2) AND (3)
(1) AND (4)
Which item is referring to the object's data attributes?
1
2
3
4
Which of the given code can be used in "?" ?
BOTH
"class" only
"struct" only
Which of these are NOT a basic concept of Object Oriented Programming?
Data Abstraction and Data Encapsulation
Data Classification and Anthropomorphism
Inheritance and Anthropomorphism
Data Encapsulation and Polymorphism
An object in a program is an abstraction from a real world object.
True
False
Why does the concept of data encapsulation lead to Data Hiding?
The concept refers to keeping the data safe from outside misuse.
The concept refers to limiting the type of data that can be set as member.
The concept refers to making it easy for a user to see and use all of the data.
The concept refers to allowing easy deployment of security applications
Identify the concepts of 1, 2, and 3.
1: Base Class
2: Sub Class
3: Sub Sub Class
1: Sub Class
2: Sub Sub Class 2
3: Objects
1: Base Class
2: Sub Class
3: Objects
1: Base Class
2: Objects
3: Sub Objects
One of the advantage of OOP is the ability to add on to existing codes based on needs of a new program.
True
False
