
APCSA Unit 1 Review 1

Quiz
•
Computers
•
10th - 12th Grade
•
Medium
Christine Garnett
Used 83+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this code segment output?
System.out.println("Hello");
System.out.println("World");
Hello
World
HelloWorld
Hello World
Hello
World
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which code segment will print “Hello Karel” to the screen in Java?
System.out.printLine("Hello Karel");
print "Hello Karel";
System.out.println("Hello Karel");
System.println("Hello Karel");
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
After the following code is executed, what is the value of t?
int t;
t = (int)99.999999;
99.999999
100.0
99
99.0
None of the above — an error occurs.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
After this code is executed, what is the value of x?
double x = 12;
12
12.0
24
unknown
none of these - an error occurs
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
After this code is executed, what is the value of y?
int y;
y = 2.7;
2
2.0
2.7
0
none of these - an error occurs
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following declares and initializes a variable in Java?
int x;
double z = 27;
myInt = 12;
int a = 15;
char c = 'c';
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the result of this code?
final int z;
z = 20;
z = 30;
System.out.println(z);
30
20
50
nothing is printed
none of these - an error occurs
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Project STEM AP CS A Unit 1 Quiz Review

Quiz
•
9th - 12th Grade
12 questions
Loops

Quiz
•
9th - 12th Grade
11 questions
[Java] Review of User Input & Basic Arithmetic Operators

Quiz
•
9th - 12th Grade
15 questions
JavaScript Knowledge & Skills

Quiz
•
9th - 12th Grade
12 questions
Compound Operators in Java

Quiz
•
9th - 12th Grade
15 questions
Java Level 1 - B

Quiz
•
12th Grade
15 questions
002_Java Methods

Quiz
•
12th Grade - University
15 questions
Array

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade