CS A Unit 1 Review

CS A Unit 1 Review

12th Grade

15 Qs

quiz-placeholder

Similar activities

Vocabulary Quiz - Computer - 01

Vocabulary Quiz - Computer - 01

12th Grade - University

10 Qs

Class XI Basics

Class XI Basics

11th - 12th Grade

15 Qs

Security and Ethics

Security and Ethics

9th - 12th Grade

17 Qs

Problem Solving : Design Solution

Problem Solving : Design Solution

12th Grade

15 Qs

Virtual Private Server

Virtual Private Server

12th Grade

15 Qs

Computer Lab Rules

Computer Lab Rules

9th - 12th Grade

13 Qs

2021.10.15_ Đề kiểm tra tin học 12

2021.10.15_ Đề kiểm tra tin học 12

12th Grade

20 Qs

3D Objects - Terms & Transfomations

3D Objects - Terms & Transfomations

6th Grade - Professional Development

20 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;

Access all questions and much more by creating a free account

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?