CS A Unit 1 Review

CS A Unit 1 Review

12th Grade

15 Qs

quiz-placeholder

Similar activities

Scratch

Scratch

KG - Professional Development

10 Qs

AI Checkpoint 1 Revision

AI Checkpoint 1 Revision

9th - 12th Grade

16 Qs

Java: repetition control structure for & while

Java: repetition control structure for & while

10th - 12th Grade

10 Qs

Review

Review

9th - 12th Grade

10 Qs

ESBWB Workbook Domain 1 Lesson 2

ESBWB Workbook Domain 1 Lesson 2

9th - 12th Grade

15 Qs

Pointers

Pointers

12th Grade

20 Qs

Cyber Security KS4

Cyber Security KS4

8th - 12th Grade

15 Qs

12AIT - All About W3C <3

12AIT - All About W3C <3

10th Grade - University

18 Qs

CS A Unit 1 Review

CS A Unit 1 Review

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Paul Laforet

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Media Image

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

Media Image

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

Media Image

Consider the following code segment.

Which of the following is equivalent?

Media Image
Media Image
Media Image
Media Image

None of these choices

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?