wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Negative Programming Concepts Challenge

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is the output of the following code: print(-5 + 3)?

a)

1

b)

-3

c)

-8

d)

-2

2.

If x = -10, what is the value of x * -2?

a)

-5

b)

-20

c)

20

d)

0

3.

What is the result of -7 - (-3)?

a)

-10

b)

-4

c)

-3

d)

0

4.

If a = -4 and b = -6, what is a + b?

a)

0

b)

-8

c)

-12

d)

-10

5.

What does the expression -1 * -1 equal?

a)

2

b)

-1

c)

1

d)

0

6.

If you have a variable c = -8, what is c / 2?

a)

-4

b)

0

c)

4

d)

-2

7.

What is the result of -3 + 5 - 2?

a)

1

b)

0

c)

-1

d)

2

8.

If d = -12, what is d - 4?

a)

-8

b)

-16

c)

-12

d)

-20

9.

What is the output of print(-2 ** 3)?

a)

-8

b)

-6

c)

8

d)

-9

10.

If e = -15, what is e + 10?

a)

-10

b)

0

c)

-25

d)

-5