Subclass/Subclass

Subclass/Subclass

11th Grade

10 Qs

quiz-placeholder

Similar activities

Java Scope mini quiz

Java Scope mini quiz

9th - 12th Grade

9 Qs

1.4 - Principles of Programming Y1

1.4 - Principles of Programming Y1

KG - Professional Development

15 Qs

Object Oriented Programming

Object Oriented Programming

11th Grade

9 Qs

1.3.3 Suitable Storage Devices PBAJC

1.3.3 Suitable Storage Devices PBAJC

KG - Professional Development

10 Qs

Object Oriented Programming in Python

Object Oriented Programming in Python

5th - 12th Grade

11 Qs

CodeHS Classes & Objects

CodeHS Classes & Objects

9th - 12th Grade

11 Qs

Python Classes

Python Classes

9th - 12th Grade

11 Qs

Data Base

Data Base

11th Grade

15 Qs

Subclass/Subclass

Subclass/Subclass

Assessment

Interactive Video

Computers

11th Grade

Easy

Created by

Angel Ligon

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a 'has a' relationship in classes represent?

Instance variables within a class

A method within a class

A superclass extending a subclass

A subclass extending a superclass

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is true about the 'is a' relationship?

It describes a more specific version of something

A student has a person

It is always symmetrical

Every person is a student

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an example of an 'is a' relationship?

Every dog is an animal

A worker has a job title

A person has a name

A student has a person

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which attribute would only be found in a Student class and not in a Person class?

Name

Job title

Birthday

Grade

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which class would have a method to calculate GPA?

Person

Student

Animal

Worker

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a superclass?

To prevent code reuse

To store specific attributes of a subclass

To create a 'has a' relationship

To allow subclasses to inherit common attributes

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a subclass from a superclass?

Using the 'extends' keyword

By copying all attributes from the superclass

Subclasses cannot be created from superclasses

Using the 'implements' keyword

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?