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?
AP CSA Unit 1 Review

Flashcard
•
Computers
•
10th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

18 questions
Show all answers
1.
FLASHCARD QUESTION
Front
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
Similar Resources on Quizizz
13 questions
java variables 1

Flashcard
•
9th - 12th Grade
15 questions
AP CSP Unit 4

Flashcard
•
10th - 12th Grade
8 questions
AP CS A Flashcard 4 Practice

Flashcard
•
9th - 12th Grade
10 questions
Paper Practice 2

Flashcard
•
9th - 12th Grade
13 questions
Unit 5 Flashcard AP CSP

Flashcard
•
9th - 12th Grade
18 questions
AP CSA Unit 1 Review

Flashcard
•
10th - 12th Grade
9 questions
Java For Loops

Flashcard
•
9th - 12th Grade
12 questions
Java Loops

Flashcard
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade