
APCSA Unit 1 Review 1

Quiz
•
Computers
•
10th - 12th Grade
•
Medium
Christine Garnett
Used 88+ 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
15 questions
Python Basics Quiz 1

Quiz
•
8th Grade - University
15 questions
Java Level 1 - C

Quiz
•
12th Grade
15 questions
Arduino practice 2

Quiz
•
9th - 11th Grade
12 questions
Repaso de Java

Quiz
•
10th Grade
10 questions
Dasar Pemrograman C++

Quiz
•
10th Grade
15 questions
JAVA: Level-1

Quiz
•
5th - 12th Grade
10 questions
Praktik Lintas Bidang (C++)

Quiz
•
11th Grade
15 questions
JavaScript Quiz

Quiz
•
9th - 10th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade