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
39 questions
Java Midterm
Quiz
•
University
33 questions
Coding 4 All 2023 Java Final
Quiz
•
University
40 questions
C Programming Midterm Review
Quiz
•
11th - 12th Grade
40 questions
Kisi kisi soal Pemrograman Berorientasi Objek
Quiz
•
11th Grade
36 questions
PEKAN ULANGAN HARIAN RPL
Quiz
•
12th Grade
40 questions
ASAS SAINS KOMPUTER T2 [ULANGKAJI]
Quiz
•
1st Grade - University
37 questions
AP CS A Midterm Review
Quiz
•
9th - 12th Grade
40 questions
A4ALGU CLUB EVENT QUIZ
Quiz
•
University
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