
Java Basic Object Interaction
Authored by Brian Ciavarella
Computers
9th - 12th Grade
Used 13+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
28 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT true about a constructor?
The constructor usually has the same name as the class, but it can be something else.
The constructor sets the values of the fields.
The constructor does not contain a return type in the heading.
The constructor may have parameters, but does not have to.
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
If a class named Taco is defined with a no-args constructor, then which of the following is the proper way to create a Taco object.
Taco myTaco = new Taco();
new Taco() = Taco myTaco;
Taco new Taco() = myTaco;
myTaco() = new Taco();
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is the correct way to write a no-args constructor of the class Car
public Car()
public void Car()
private Car()
public Car
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an accessor method?
public void getName()
public void setName()
public String getName()
public String setName()
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is Not a return type?
String
void
int
private
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An object is an instance of a:
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
As a blueprint is a design for a house, a class is a design for a:
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
27 questions
Adobe Illustrator Quiz Review
Quiz
•
9th - 12th Grade
23 questions
DDD2 Y10 19th July Networks
Quiz
•
10th Grade
25 questions
Sumatif Tengah Semester
Quiz
•
10th Grade
23 questions
UD1_EQUIPOS INFORMÁTICOS
Quiz
•
10th Grade
25 questions
CS-9 Chapter-5 Computer Software Part3: Rabin Ghimire
Quiz
•
10th Grade
25 questions
8-2 PTS INFORMATIKA
Quiz
•
8th Grade - University
25 questions
PAS SIMDIG
Quiz
•
9th - 12th Grade
25 questions
Examen Trimestral de Informática 2°ABCDE
Quiz
•
8th Grade - University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade