Subclass/Subclass

Subclass/Subclass

11th Grade

10 Qs

quiz-placeholder

Similar activities

CSP Data Review

CSP Data Review

9th - 12th Grade

14 Qs

ERDs and DFDs

ERDs and DFDs

9th - 12th Grade

15 Qs

CM Vocabulary 2

CM Vocabulary 2

9th - 12th Grade

13 Qs

DW Workspace

DW Workspace

10th - 12th Grade

12 Qs

Year 3 Data representation - Revision

Year 3 Data representation - Revision

3rd Grade - University

10 Qs

AP CSP Create Task Guidelines

AP CSP Create Task Guidelines

9th - 12th Grade

11 Qs

Computing: A.I.

Computing: A.I.

7th Grade - University

15 Qs

IT Jobs and Careers

IT Jobs and Careers

9th - 12th Grade

16 Qs

Subclass/Subclass

Subclass/Subclass

Assessment

Interactive Video

Computers

11th Grade

Practice Problem

Easy

Created by

Angel Ligon

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?