AP Java 9-15-2023 (just functions1)

AP Java 9-15-2023 (just functions1)

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

AP CSA Unit 1 & 2 Review

AP CSA Unit 1 & 2 Review

9th - 12th Grade

10 Qs

Practice for CPA JavaScript quiz #4

Practice for CPA JavaScript quiz #4

9th - 12th Grade

15 Qs

Tutoring PY Practice 2025

Tutoring PY Practice 2025

12th Grade

10 Qs

HTML - Tags, elements, tables and images

HTML - Tags, elements, tables and images

7th - 9th Grade

12 Qs

XII_CS_FUNCTIONS

XII_CS_FUNCTIONS

12th Grade

15 Qs

AP CSA Review Unit 2

AP CSA Review Unit 2

9th - 12th Grade

10 Qs

AP CSA Classes

AP CSA Classes

9th - 12th Grade

10 Qs

AP Computer Science A Year Review

AP Computer Science A Year Review

9th - 12th Grade

10 Qs

AP Java 9-15-2023 (just functions1)

AP Java 9-15-2023 (just functions1)

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Arthur Simon

Used 12+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which of the following replacements for /* missing code */ would correctly complete the function?

A only

B only

Both A and B

Neither A nor B

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which of the following replacements for /* missing code */ would correctly complete the function?

answer = number1 * number2;

double answer = number1 + number2;

int answer = number1 * number2;

None of these

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which of the following replacements for /* missing code */ would correctly complete the function?

a + b + c;

return int answer = a + b + c;

return double answer = a + b + c;

return a + b + c;

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which of the following replacements for /* missing code */ would correctly complete the function?

return a + b + c/2;

return a + b + c/3;

return (a + b + c)/2;

return (a + b + c)/3;

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which of the following replacements for /* missing code */ would correctly complete the function?

return num1 / num2;

return num1 % num2;

return num2 % num1;

return num2 / num1;

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which of the following replacements for /* missing code */ would correctly complete the function?

A

B

C

D

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which of the following replacements for /* missing code */ would correctly complete the function?

A only

B only

Both A and B

Neither A nor B

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?