
APCSA Unit 1 Review 1
Authored by Christine Garnett
Computers
10th - 12th Grade
Used 89+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
KUIS 1 TLJ KELAS XI
Quiz
•
11th Grade
15 questions
computer quiz 1
Quiz
•
3rd - 10th Grade
10 questions
Evaluación de Programación
Quiz
•
12th Grade
10 questions
Revision 1
Quiz
•
1st - 10th Grade
10 questions
Unit 6
Quiz
•
12th Grade
10 questions
BP TIK 1
Quiz
•
10th Grade
15 questions
Introduction to MySQL
Quiz
•
11th - 12th Grade
9 questions
Java Basics #1
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade