
CS A Unit 1 Review
Quiz
•
Computers
•
12th Grade
•
Medium
Paul Laforet
Used 7+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following is a TRUE statement about constructors in Java?
The constructor is used to create objects of a class.
The constructor contains all of the methods that an object can utilize.
Constructors should be made private to keep all information safe and secure.
The constructor should not have the same name as the class.
In inheritance, the parent class should always contain the keyword super.
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A Painter object called myPainter is facing north. Consider the following code segment.
The effect of this code is that the myPainter object is now:
facing north
facing south
facing east
facing west
in an infinite loop
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A Painter object called myPainter is initially facing east. Consider the following code segment.
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 south.
The Painter object is blocked from moving east.
The Painter object is blocked from moving west.
The Painter object will crash into an object or wall.
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following are inherited when one class extends another?
I. private attributes
II. public constructors
III. public methods
I only
III only
I and II
II and III
I, II, and III
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider the following code segment.
Which of the following is equivalent?
None of these choices
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Look at the following UML diagram for the Painter class.
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
2 mins • 1 pt
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;
Create a free account and access millions of resources
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
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
10 questions
Quiz sobre Contos
Quiz
•
12th Grade
10 questions
ZOOM QUIZ
Quiz
•
1st - 12th Grade
15 questions
Visual C# Quiz - Chapter 5: Loops, Files, and Random Numbers
Quiz
•
12th Grade
11 questions
Chapter 6 Part 2 - 4
Quiz
•
11th - 12th Grade
10 questions
EMPTECH L4 Q3
Quiz
•
12th Grade
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
10 questions
Microcontroller
Quiz
•
11th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
