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 CS A unit 1
Quiz
•
Computers
•
11th Grade
•
Medium
Ержан Ауезов
Used 1+ times
FREE Resource
36 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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?
WXYZ
W
XYZ
WX
YZ
W
X
YZ
W
X
Y
Z
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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?
CS AP12
AP CS3
CSAP 12
APCS 12
APCS 3
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the expected output?
-1
0
1
17
18
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of these are escape characters? Choose all that apply!
\n
\t
\
"
/
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Is the following identifier legal or illegal?
MyFirstProgram
legal
illegal
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If x = 4, x++ =?
16
8
5
3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if int a = 10, what does b = if b= 15/4
1
5
0
3
40 questions
Arrays and ArryList
Quiz
•
University
40 questions
C++ Programming
Quiz
•
9th - 12th Grade
40 questions
Java Programming
Quiz
•
University
34 questions
Project STEM AP CS A Unit 1
Quiz
•
9th - 12th Grade
32 questions
Unit 1 APCSA
Quiz
•
9th Grade - University
37 questions
AP CSA Review Set #1
Quiz
•
9th - 12th Grade
33 questions
Midterm Exam - CTCC0323
Quiz
•
University
40 questions
Latihan 1 PBO XI RPL 2
Quiz
•
10th Grade - University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University