View as PDF

Saskatchewan Computer Science 30 · Unit D

Object-Oriented Programming — Practice Test

Saskatchewan Computer Science 30 • 25 questions

This practice test was made by AI and there may be mistakes. If a question or answer looks wrong, use the Flag a mistake button to let Brett know so he can fix it.

1

A blueprint for creating objects is called

Architectural blueprint of a house floor plan on a wooden desk
Understand It with Pulse
2

A class is best described as a

Understand It with Pulse
3

A variable starts at 0. A loop adds 2 each time it runs, and it runs 5 times. The final value of the variable is ____

Understand It with Pulse
4

The tree shows a class hierarchy with a parent and two children. The number of child classes is

Understand It with Pulse
5

One red toy car made from a Car class, with its own data, is called

Single red toy car on a wooden table
Understand It with Pulse
6

An object is

Understand It with Pulse
7

A variable starts at 10. A loop adds 3 each time it runs, and it runs 4 times. The final value of the variable is ____

Understand It with Pulse
8

The tree shows inheritance. A subclass inherits from its

Understand It with Pulse
9

Data stored in an object is called

Understand It with Pulse
10

Inheritance lets a Puppy subclass

Adult golden retriever dog with a small golden puppy on grass
Understand It with Pulse
11

A variable starts at 5. A loop adds 4 each time it runs, and it runs 3 times. The final value of the variable is ____

Understand It with Pulse
12

A function that belongs to a class is called

Understand It with Pulse
13

Encapsulation mainly

Understand It with Pulse
14

A loop starts a counter at 0 and adds 2 each time while the counter is less than 12. The number of times the loop runs is ____

Understand It with Pulse
15

A class gaining attributes and methods from a parent class is called

Understand It with Pulse
16

A constructor, like the builder of a house, is used to

House under construction with wooden frame, scaffolding and crane
Understand It with Pulse
17

A loop starts a counter at 1 and adds 4 each time while the counter is less than 17. The number of times the loop runs is ____

Understand It with Pulse
18

Hiding internal details and exposing only what is needed is called

Understand It with Pulse
19

Polymorphism means different classes can

Understand It with Pulse
20

In object oriented programming, a class, like a cookie cutter, is a

Metal star cookie cutter pressing into cookie dough with chocolate chip cookies
Understand It with Pulse
21

Different classes responding to the same method in their own way is called

Understand It with Pulse
22

A loop starts a counter at 0 and adds 3 each time while the counter is less than 18. The number of times the loop runs is ____

Understand It with Pulse
23

A special method that creates and sets up an object is called

Understand It with Pulse
24

An object created from a class is called an

Understand It with Pulse
25

One chocolate chip cookie created from a cookie cutter class is called

Single chocolate chip cookie on a white plate
Understand It with Pulse