Search Header Logo

APCSA Exam Review 2

Authored by Jessica Vazquez

Mathematics

11th Grade

Used 1+ times

APCSA Exam Review 2
AI

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 arr = new array(5);

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

1

2

3

0

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?