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
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.
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
Automatic Exposure Control (AEC) Quiz

Quiz
•
12th Grade
10 questions
Smart Building

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

Quiz
•
12th Grade
12 questions
Personal Finance Vocabulary

Quiz
•
KG - University
10 questions
Extended Essay?

Quiz
•
11th - 12th Grade
12 questions
AC2:2 Crown Courts

Quiz
•
12th Grade
10 questions
Criminal Law History & Development Final Assessment Review

Quiz
•
9th - 12th Grade
8 questions
Unit 2-2.1.6 Quiz review game

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade