wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

PYTHON_CHAPTER 2

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

The "=" is known as _____ operator.

a)

assessment

b)

assignment

2.

answer = "SEVEN"

a)

answer is a string

b)

answer is an integer

3.

** is an _____ operators.

a)

exponent

b)

addition

4.

Which of the following is the HIGHEST precedence order?

a)

+,-

b)

*,/,%

5.

17 > 18 give the result _____.

a)

TRUE

b)

FALSE

6.

A <= Z means _____.

a)

A is greater than Z inclusively

b)

A is less than Z inclusively

7.

What is the result of 'not 1==2'?

a)

TRUE

b)

FALSE

8.

In this mode, you create a file (.py), save and execute the codes.

a)

IDLE mode

b)

Script mode

9.

In this mode, you write and execute the program but it will not save your code.

a)

IDLE mode

b)

Script mode

10.

What is the output for the following codes:

x="Python"

print(x+"!")

a)

x !

b)

Python !