Search Header Logo
AP CSP REVIEW 1

AP CSP REVIEW 1

Assessment

Presentation

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Brandon Lopez

Used 3+ times

FREE Resource

0 Slides • 55 Questions

1

Fill in the Blanks

2

Fill in the Blanks

3

Multiple Choice

Which of the following is the programming language we use in this class?

1

Python

2

Java

3

C

4

Scala

4

Fill in the Blanks

5

Fill in the Blanks

6

Fill in the Blanks

7

Fill in the Blanks

8

Multiple Choice

Would the following set of commands allow you to successfully write, compile, and run a C program on the terminal?
nano HelloWorld.c
gcc HelloWorld.c -o Hello

./HelloWorld

1

Yes buddy

2

No

9

Fill in the Blanks

10

Fill in the Blanks

11

Fill in the Blanks

12

Fill in the Blanks

13

Fill in the Blanks

14

Multiple Select

Select all values of the int data type.

1

1250

2

20.0

3

'5'

4

-3

5

'A'

15

Multiple Select

Select all values of the float data type.

1

0.0001

2

20.1

3

5

4

-5.6

5

10.0

16

Fill in the Blanks

17

Fill in the Blanks

18

Fill in the Blanks

19

Fill in the Blanks

20

Fill in the Blanks

21

Multiple Choice

Which of the following operators have the highest precedence?

1

*

2

>

3

+

4

==

22

Multiple Choice

Which of the following operators have the lowest precedence?

1

*

2

>

3

+

4

==

23

Multiple Select

Which of the following operators have the highest precedence?

1

<

2

+

3

>=

4

==

5

-

24

Multiple Select

Which of the following operators have the lowest precedence?

1

!=

2

/

3

<=

4

==

5

+

25

Fill in the Blanks

26

Multiple Choice

What is the result of the following operation: 25 % 7

1

3.5

2

3

3

4

4

4.0

27

Multiple Choice

What is the result of the following operation: 'k' - '+'

1

'A'

2

65

3

'@'

4

64

28

Multiple Choice

What is the result of the following operation: 10 / 3

1

3.3333

2

3

3

1

4

1.-

29

Multiple Choice

What is the result of the following operation: 1.5 * 2

1

3.0

2

3

3

2.5

4

2

30

Multiple Choice

What is the result of the following operation: '#' * 2

1

'F'

2

70

3

70.0

4

'E'

31

Fill in the Blanks

32

Multiple Choice

What is the result of the following operation: 5 != 2

1

1

2

0

3

1.0

4

0.0

33

Multiple Choice

The result of the following operation: 5 / 2.0 + 1 * 6

1

8

2

18

3

8.0

4

8.5

5

18.0

34

Multiple Choice

The result of the following: '6' % 5 * 30 + 600

1

630

2

630.0

3

720

4

720.0

35

Multiple Choice

The result of the following: 100 / 2 > 25 * 2 + 1

1

2

2

51

3

1

4

0

36

Multiple Choice

The result of the following:
2.4 * 10 < 100 == 54 <= 50 + 4

1

1

2

0

37

Multiple Choice

The result of the following:
10.0 / 3 < 4 < 2

1

0

2

1

38

Multiple Choice

The result of the following: 2 * 5.0 % 8

1

2

2

2.0

3

6

4

ERROR

39

Multiple Choice

The result of the following (if the rules of precedence and associativity were reversed):
5 % 3 + 1 * 4 - 2

1

5

2

1

3

-1

4

-5

40

Fill in the Blanks

41

Fill in the Blanks

42

Fill in the Blanks

43

Fill in the Blanks

44

Multiple Choice

You can assign an operation or a sequence of operations to a variable.

1

True

2

False

45

Multiple Choice

Question image

How many variables are declared in the program shown?

1

0

2

2

3

8

4

none

46

Multiple Choice

Question image

How many times does x change value after its initially assigned the value 5?

1

5

2

6

3

7

4

x doesn't change value

47

Multiple Choice

Question image

What will be printed out as a result of this program?

1

x:
20
y:
14

2

x:
5
y:
4

3

x:
10
y:
9

4

x:
10
y:
14

48

Multiple Choice

Question image

What will be printed out as a result of this program?

1

x:
20
y:
14

2

x:
5
y:
4

3

x:
10
y:
9

4

x:
10
y:
14

49

Multiple Choice

Question image

What will be printed out as a result of this program?

1

The force is:
1

2

The force is:
1.5

3

The force is:
3

4

The force is:
3.5

50

Multiple Choice

Question image

What will be printed out as a result of this program?

1

'A'

2

65.0

3

65

4

ERROR

51

Fill in the Blanks

52

Multiple Choice

Every if needs an else.

1

True

2

False

53

Fill in the Blanks

54

Multiple Choice

Question image

What is the result of the program shown?

1

0

2

1

55

Fill in the Blanks

Show answer

Auto Play

Slide 1 / 55

FILL IN THE BLANKS