Search Header Logo

AP CSA 1.4 (Compound Assignment)

Authored by Herman Galioulline

Computers

10th - 12th Grade

Used 24+ times

AP CSA 1.4 (Compound Assignment)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

The code segment stores the value of (a + 3) / b in the variable num.

The code segment stores the value of (a + 3) / (b - 1) in the variable num.

The code segment stores the value of (a + 3) / (b - 2) in the variable num.

The code segment stores the value of (a + 3) / (1 - b) in the variable num.

The code segment causes a runtime error in the last line of code because num is type double and d is type int.

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

2

4

9

9.5

19

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

The value of num is two times its original value.

The value of num is the square its original value.

The value of num is two times the square of its original value.

The value of num is the square of twice its original value.

It cannot be determined without knowing the initial value of num.

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

-1.5

1

9

15.5

16

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

The code segment leaves both k and count unchanged.

The code segment increases both k and count by 2.

The code segment increases k by 4 and count by 2.

The code segment leaves k unchanged and increases count by 2.

The code segment increases k by 2 and leaves count unchanged.

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

9

10

14

15

25

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?