What is an instance method?
Unit 2 4

Quiz
•
Other
•
12th Grade
•
Medium
Angel Ligon
Used 1+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Create an instance (object) called rect1 with formal values of 5 and 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
Object rect1 has been created. Create a call to the method printArea.
Similar Resources on Quizizz
10 questions
Automatic Exposure Control (AEC) Quiz

Quiz
•
12th Grade
10 questions
Smart Building

Quiz
•
9th - 12th Grade
10 questions
Python Classes and Objects

Quiz
•
12th Grade
8 questions
Networking verbs V

Quiz
•
12th Grade
10 questions
PTA Checkpoint 1

Quiz
•
12th Grade
12 questions
Valuation of goodwill XII-Accountancy

Quiz
•
12th Grade
8 questions
Rønbækskolens Store Forældrequiz

Quiz
•
12th Grade
10 questions
Guess That Game!

Quiz
•
4th Grade - Professio...
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Other
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University