APCSA - Unit 3

APCSA - Unit 3

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Bai Tap Bai 18 Tin hoc 10

Bai Tap Bai 18 Tin hoc 10

10th Grade

10 Qs

ôn tập chỉnh ảnh và làm phim

ôn tập chỉnh ảnh và làm phim

11th Grade

15 Qs

Eventos de un experimento aleatorio

Eventos de un experimento aleatorio

9th Grade

11 Qs

End of term assessment

End of term assessment

9th Grade

15 Qs

CSS background, border

CSS background, border

11th Grade

10 Qs

สอบเก็บคะแนน ไพทอน ม.4

สอบเก็บคะแนน ไพทอน ม.4

9th - 12th Grade

10 Qs

conditional constructs in Java

conditional constructs in Java

10th Grade

10 Qs

HTML

HTML

9th - 12th Grade

12 Qs

APCSA - Unit 3

APCSA - Unit 3

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Justin Loomis

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

String name1 = new String("Norman");

String name2 = new String("Norman");

System.out.println(name1 == name2);

TRUE

FALSE

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

MyObject obj1 = new MyObject();

MyObject obj2 = new MyObject();

MyObject obj3 = obj1;

Which variables are aliases?

obj1 and obj2

obj1 and obj3

obj2 and obj3

obj1, obj2, and obj3

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which boolean expression is TRUE for all values of a and b?

a && (b || c)

!a || !b

a || (!a || b)

(a && b) || !b

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

x >= 3 || y < 7

Which of these is equivalent to the expression above?

!(x < 3 && y >= 7)

!(x > 3 || y <= 7)

x < 3 && y >= 7

x <= 7 || y > 3

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a || (a || !b)

Which of these is equivalent to the expression above?

a || b

a && b

a || !b

!a || b

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if (x < 0) { value = true; }

else if (x > 5) { value = true; }

else { value = false; }

Which of these code segments is equivalent to the code segment above?

value = x < 0 && x > 5;

value = x < 0 || x > 5;

value = true;

value = false;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x = 2;

if (x < 5) { System.out.print("A"); }

else if (x < 10) { System.out.print("B"); }

else { System.out.print("C"); }

What is printed?

A

AB

ABC

BC

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?