NEW
Font size
S
M
L
XL
WorksheetsChapter6-5
Total questions: 8
Worksheet time: 8mins
Name
Class
Date
1.
Answer question in image
a)
-1
b)
7.5
c)
"Pat Smith"
d)
9
2.
Answer question in image
a)
"Jose"
b)
"Jeff"
c)
"o"
d)
"e"
3.
____________ means to hide certain details of how data is stored and maintain
a)
<br />Data Isolation<br />
b)
Data Abstraction
c)
Data Integrity
d)
None of the mentioned
4.
The list variable myList contains 8 elements. Which of the following is a valid index for this list?
a)
5
b)
10
c)
-2
d)
"three"
5.
What is an algorithm?
a)
A sequence of instructions on how to solve a problem.
b)
The breaking down of a problem into smaller parts.
c)
Focusing on important parts and ignoring the irrelevant details
d)
The recipe for a cake
6.
In a class, member variables are often called its _________, and its member functions are sometimes referred to as its behaviour, or ____________.
a)
data, activities
b)
attributes, activities
c)
attributes, activities
d)
attributes, methods
7.
Select the features of Object Oriented Programming.
a)
Encapsulation
b)
Polymorphism
c)
Inheritance
d)
Abstraction
e)
All of the Above
8.
The process by which objects of one class acquire the properties of objects of another class is known as:
a)
Polymorphism
b)
Inheritance
c)
Data Hiding
d)
None of the above.
Reset
