Unit 2 4

Unit 2 4

12th Grade

7 Qs

quiz-placeholder

Similar activities

Methods of philosophizing

Methods of philosophizing

12th Grade

10 Qs

23/7/21- Std12 Statistics

23/7/21- Std12 Statistics

12th Grade

10 Qs

Labs Recap Quiz

Labs Recap Quiz

12th Grade

10 Qs

Foods II Module 1 Definitions

Foods II Module 1 Definitions

9th - 12th Grade

11 Qs

Communication

Communication

9th - 12th Grade

10 Qs

Linking Words

Linking Words

KG - Professional Development

7 Qs

Roblox (Playing)

Roblox (Playing)

1st - 12th Grade

6 Qs

program

program

12th Grade

4 Qs

Unit 2 4

Unit 2 4

Assessment

Quiz

Other

12th Grade

Medium

Created by

Angel Ligon

Used 1+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an instance method?

An instance method is a piece of code called on a specific instance (an object) of the class.

An instance method is a piece of code that does not depend on any specific instances (objects), just on the general class.

An instance method adds functionality to a class by creating private fields.

An instance method adds functionality to the class by printing out a result.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following correctly calls the method addFiveMinutes on an object of the Timer class called kitchenTimer?

kitchenTimer(addFiveMinutes);

Timer.addFiveMinutes();

kitchenTimer.addFiveMinutes();

kitchenTimer.addFiveMinutes;

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Suppose the class Timer has a method called startTime that prints out the starting time of the Timer.
Write the line of code that correctly uses this method to print out the start time of a Timer object called laundry?

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Procedures that allow us to control and define the behavior of an object.

Methods
Variables
Classes
Strings

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Create an instance (object) called rect1 with formal values of 5 and 6.

Rectangle rect1 = new Retangle(5,6);

Rectangle rect1 = new Retangle( 5,6 )

rect1 = new Retangle(5, 6);

rect1.new Retangle (5, 6);

6.

HOTSPOT QUESTION

1 min • 1 pt

Click on the method.

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

Object rect1 has been created. Create a call to the method printArea.