
AP CS A unit 1

Quiz
•
Computers
•
11th Grade
•
Medium
Ержан Ауезов
Used 3+ 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
Create a free account and access millions of resources
Similar Resources on Wayground
32 questions
TCP Socket Programming

Quiz
•
University
41 questions
แบบทดสอบวิชาการเขียนโปรแกรมภาษาไพธอนเบื้องต้น (ภาคทฤษฎี)

Quiz
•
11th Grade
41 questions
PBO

Quiz
•
11th Grade
35 questions
Object-Oriented Programming_LQ#1_AVW1

Quiz
•
University
40 questions
9th Grade - IT Programming - 2nd Cycle Exam

Quiz
•
9th Grade - University
34 questions
Chapter 3 (to Section 3.6) Test

Quiz
•
9th - 12th Grade
39 questions
G12_End of Term2_Revision

Quiz
•
9th - 12th Grade
40 questions
Java Test - 1

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade