Subclass/Subclass

Subclass/Subclass

11th Grade

10 Qs

quiz-placeholder

Similar activities

HTML forms

HTML forms

11th Grade - University

10 Qs

Python variables and Data types

Python variables and Data types

10th - 12th Grade

10 Qs

Database Concepts

Database Concepts

11th Grade

15 Qs

Why digital portfolios?

Why digital portfolios?

KG - 12th Grade

10 Qs

JavaScript Control Structures Review

JavaScript Control Structures Review

10th - 12th Grade

15 Qs

J277 Programming - Outputting Data

J277 Programming - Outputting Data

9th - 11th Grade

10 Qs

Cambridge Nationals: Database Entity Relationship Modelling

Cambridge Nationals: Database Entity Relationship Modelling

9th - 12th Grade

12 Qs

Gmetrix HTML/CSS Session 3 Test

Gmetrix HTML/CSS Session 3 Test

7th - 12th Grade

15 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?