AP CSA Unit 1 Review

AP CSA Unit 1 Review

Assessment

Flashcard

Computers

10th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

18 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Consider the following code segment.
System.out.println("W");
System.out.println("X");
System.out.print("Y");
System.out.print("Z");
What is printed as a result of executing the code segment?

Back

W
X
YZ

2.

FLASHCARD QUESTION

Front

Consider the following code segment:
String str = "AP";
str += "CS " + 1 + 2;
System.out.println(str);
What is printed as a result of executing the code segment?

Back

APCS 12

3.

FLASHCARD QUESTION

Front

What is the expected output? Options: -1, 0, 1, 17, 18

Back

17

4.

FLASHCARD QUESTION

Front

Is the following identifier legal or illegal?
MyFirstProgram

Back

legal

5.

FLASHCARD QUESTION

Front

If x = 4, x++ =?

Back

5

6.

FLASHCARD QUESTION

Front

if int a = 10, what does b = if b= 15/4

Back

3

7.

FLASHCARD QUESTION

Front

In integer division, what happens to the decimal, such as int a = 25/10, where the answer would be 2.5?

Back

the decimal is dropped

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?