
37. OCR A Level (H446) SLR7 – 1.2 Object-oriented languages part
Authored by James Cole
Computers
11th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary mechanism provided by OOP for allowing a class to acquire the properties and methods of another class?
Encapsulation
Abstraction
Inheritance
Polymorphism
Answer explanation
Inheritance is the primary mechanism in OOP for a class to acquire properties and methods from another class.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many methods are associated with every object created from the generic light bulb class?
Four
Six
Ten
Eight
Answer explanation
Every object created from the generic light bulb class has eight methods associated with it, making the correct answer choice 'Eight'.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What term is used to refer to the original class from which a new class inherits properties in OOP?
Subclass
Derived class
Superclass
Child class
Answer explanation
The term used to refer to the original class from which a new class inherits properties in OOP is 'Superclass'.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What additional attribute might an 'Employee' class, which inherits from the 'Person' class, include?
Date of Birth
Height
National Insurance Number
Favorite Color
Answer explanation
An 'Employee' class might include the 'National Insurance Number' attribute as it is often required for employment purposes and distinguishes an employee from a person.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many attributes does an hourly paid employee object have, considering inheritance from 'Person' and 'Employee' classes?
Three
Four
Two
Five
Answer explanation
The hourly paid employee object has four attributes due to inheritance from 'Person' and 'Employee' classes, which contribute to the total count.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when a subclass defines a method that has the same name as a method in its superclass?
The subclass method is ignored
The subclass method overrides the superclass method
The program crashes
The superclass method is automatically deleted
Answer explanation
When a subclass defines a method with the same name as a method in its superclass, the subclass method overrides the superclass method, allowing the subclass to provide its own implementation.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to access a method from the original superclass when it has been overridden in a subclass?
parent
super
base
original
Answer explanation
The keyword 'super' is used to access a method from the original superclass when it has been overridden in a subclass.
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
15 questions
CIW
Quiz
•
9th - 12th Grade
10 questions
Word basics
Quiz
•
8th - 12th Grade
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
10 questions
Logic Gates
Quiz
•
9th - 12th Grade
10 questions
conditional and iterative statements
Quiz
•
11th Grade
20 questions
Quiz/Review in Servicing 2
Quiz
•
11th Grade
18 questions
MS Word Columns and Tables
Quiz
•
10th - 11th Grade
10 questions
Grade 11 Term 4 Practice 2
Quiz
•
11th Grade
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
15 questions
ACT Reading Practice
Quiz
•
11th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
•
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
•
9th - 12th Grade