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 Wayground
10 questions
Smart Building

Quiz
•
9th - 12th Grade
10 questions
PLTW IED Isometric Sketching Quiz

Quiz
•
12th Grade
10 questions
Python Booleans

Quiz
•
12th Grade
10 questions
Design Patterns Quiz

Quiz
•
12th Grade
10 questions
Python Iterators

Quiz
•
12th Grade
7 questions
Quiz ทบทวน อุปกรณ์ไฟฟ้า

Quiz
•
KG - University
10 questions
PLC timers and counter

Quiz
•
12th Grade
10 questions
Automatic Exposure Control (AEC) Quiz

Quiz
•
12th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade