
APCSA Exam Review 2
Authored by Jessica Vazquez
Mathematics
11th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following Java code? ```java int x = 5; int y = 2; System.out.println(x / y); ```
2.5
2
3
0
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to declare an array of integers in Java?
int arr[];
int arr = new int[5];
int[] arr = new int[5];
array
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of after the following code executes? ```java int result = 1; for (int i = 1; i <= 3; i++) { result *= i; } ```
3
6
9
0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid Java identifier?
_myVar
$value
2ndValue
myVar2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? ```java String s = "APCS"; System.out.println(s.length()); ```
3
4
5
0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about Java methods is TRUE?
Methods cannot return values.
Methods must always be static.
Methods can have parameters.
Methods cannot be overloaded.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of evaluating the expression in Java?
1
2
3
0
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 Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?