Data Types
Operators and Expressions
Variables and Expressions
Programs
100

What is the data type of the following value: "Hello"

String

100

Evaluate the following expression: 10 - 3

7

100

If the variable kip is holding a value of 10 and the variable zam is holding a value of 2, what does the following expressions evaluate to?

kip + zam

12

100

What value is stored in the variable(s) when the following program finishes running?

1 pizza = "yuck"

2 pizza = "yum"

"yum"

200

What is the data type of the following value? 5

Integer

200

Evaluate the following expression: "boat" + "house"

"boathouse"

200

If the variable kip is holding a value of 10 and the variable zam is holding a value of 2, what does the following expressions evaluate to?

zam - kip

-8

200

What value is stored in the variable(s) when the following program finishes running?

1 bob = "hi"

2 jo = "good"

3 bob = "bye"

4 bob = jo + bob

jo: "good"

bob: "goodbye"

300

What is the data type of the following value? -17.2

Float

300

Evaluate the following expression: "b" + str(4)

"b4"

300

If the variable kip is holding a value of 10 and the variable zam is holding a value of 2, what does the following expressions evaluate to?

zam + kip * zam

22

300

What value is stored in the variable(s) when the following program finishes running?

1 zig = 5

2 zag = zig + 2

3 zig = zig + zag

zag: 7

zig: 12

400

What is the data type of the following value? True

Boolean
400

Evaluate the following expression: 12 % 5

2

400

If the variable kip is holding a value of 10 and the variable zam is holding a value of 2, what does the following expressions evaluate to?

kip % zam

0

400

What value is stored in the variable(s) when the following program finishes running?

1 fly = "to" + "day"

2 zow = 4 - 1

3 fly = 1 + zow

4 zow = str(fly) + "now"

fly: 4

zow: "4now"

500

What is the data type of the following value? "158"

String

500

str(2+ (8 % 3)) + "mula"

4mula

500

If the variable kip is holding a value of 10 and the variable zam is holding a value of 2, what does the following expressions evaluate to?

kip % (2 * zam)

2

500

1 fuzz = 5

2 clip = fuzz + 2

3 fuzz = clip + 1

4 clip = "c" + "ya"

5 fuzz = fuzz + 1

6 fuzz = fuzz + 1

7 fuzz = fuzz + 1

clip = "cya"

fuzz = 11