
Unit 1
Authored by JOYCE PACHECO
Computers
11th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
A Painter object called myPainter is facing north. Consider the following code segment.
while (!myPainter.isFacingSouth()) { myPainter.turnLeft(); }
myPainter.turnLeft();
myPainter.turnLeft();
The effect of this code is that the myPainter object is now:
facing north
facing east
facing west
facing south
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following is a TRUE statement about constructors in Java?
A. The constructor contains all of the methods that an object can utilize.
B. Constructors should be made private to keep all information safe and secure.
C. The constructor should not have the same name as the class.
D. In inheritance, the parent class should always contain the keyword super.
E. The constructor is used to create objects of a class.
A
D
C
E
B
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
A Painter object called myPainter is initially facing east. Consider the following code segment.
while (myPainter.canMove()) { myPainter.move(); }
After the loop has terminated, which of the following MUST be true?
The Painter object is blocked from moving north.
The Painter object is blocked from moving east.
The Painter object is blocked from moving west.
The Painter object is blocked from moving south.
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following are inherited when one class extends another?
I. private attributes
II. public constructors
III. public methods
A. I only
B. III only
C. I and II
D. II and III
E. I, II, and III
A
B
C
D
E
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Consider the following code segment.
if (myPainter.isFacingNorth()) {
myPainter.move();
myPainter.move(); }
if (!myPainter.isFacingNorth()) {
myPainter.move();
myPainter.paint("green"); }
Which of the following is equivalent?
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Given a Painter object called myPainter, which method call would cause a syntax error?
myPainter.move();
myPainter.turnLeft();
myPainter.takePaint();
myPainter.canMove();
myPainter.paint();
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which of the following correctly instantiates a new Painter object?
Painter daVinci = new Painter();
daVinci Painter = new Painter();
Painter daVinci = Painter();
Painter() daVinci = new Painter;
Painter daVinci = Painter;
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
10 questions
Review Quiz #2- Productivity Tools
Quiz
•
11th - 12th Grade
10 questions
Network
Quiz
•
10th - 11th Grade
10 questions
Anime
Quiz
•
KG - University
10 questions
PERFORMANCE TASK 3 |EMP Tech LC2
Quiz
•
11th Grade
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
10 questions
Microcontroller
Quiz
•
11th Grade - University
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
13 questions
A+ Chapter 8
Quiz
•
11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade