CS 122 - Final Examination

CS 122 - Final Examination

University

16 Qs

quiz-placeholder

Similar activities

Computer Hardware - CPU & GPU

Computer Hardware - CPU & GPU

7th Grade - University

16 Qs

Java Quiz 4

Java Quiz 4

University

15 Qs

Skill Competition Quiz 2024

Skill Competition Quiz 2024

10th Grade - University

20 Qs

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

Introducción Redes Tele1 IB

Introducción Redes Tele1 IB

10th Grade - University

15 Qs

Spreadsheet Fundamentals - Quiz2

Spreadsheet Fundamentals - Quiz2

University

20 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

ITE TEST 2

ITE TEST 2

University

20 Qs

CS 122 - Final Examination

CS 122 - Final Examination

Assessment

Quiz

Computers

University

Hard

Created by

Christine Pitos

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

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

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A way to discover which of the two classes is the base class and which is the subclass is to _______.

look at the class size

try saying the two class names together

use polymorphism

Both a and b are correct

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Employing inheritance reduces errors because ______.

the new classes have access to fewer data fields

the new classes have access to fewer methods

you can copy methods that you already created

many of the methods you need have already been used and tested

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A base class can also be called a ______.

child class

subclass

derived class

superclass

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following choices is the best example of a parent class/child class relationship?

Rose/Flower

Present/Gift

Dog/Poodle

Sparrow/Bird

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The Java keyword that creates inheritance is _____.

static

enlarge

extends

inherits

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A class named Building has a public, nonstatic method named getFloors(). If School is a child class of Building, and modelHigh is an object of type School, which of the following statements is valid?

Building.getFloors();

School.getFloors();

modelHigh.getFloors();

All of the previous statements are valid.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is true?

A child class inherits from a parent class.

A parent class inherits from a child class.

Both of the preceding statements are true.

Neither a nor b is true.

Create a free account and access millions of resources

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?