AP CSA 1.4 (Compound Assignment)

AP CSA 1.4 (Compound Assignment)

10th - 12th Grade

6 Qs

quiz-placeholder

Similar activities

One Dimensional Arrays

One Dimensional Arrays

11th Grade

10 Qs

Primitives Quiz Review

Primitives Quiz Review

10th - 12th Grade

10 Qs

String and Math Methods AP CSA

String and Math Methods AP CSA

10th Grade

10 Qs

Lecture 4.4 Part 2

Lecture 4.4 Part 2

12th Grade

11 Qs

AP CSP-Review Session 1 MCQ Quiz

AP CSP-Review Session 1 MCQ Quiz

10th Grade

10 Qs

Comp Sci Unit 3 #11

Comp Sci Unit 3 #11

11th Grade

10 Qs

One Dimensional Array

One Dimensional Array

11th Grade

10 Qs

1D Arrays

1D Arrays

11th Grade

10 Qs

AP CSA 1.4 (Compound Assignment)

AP CSA 1.4 (Compound Assignment)

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

Herman Galioulline

Used 19+ times

FREE Resource

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