wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

grade10 w4

Total questions: 5

Worksheet time: 3mins

Name
Class
Date
1.

1. What does the input() function in Python do?

a)

a) Prints text on the screen

b)

b) Takes user input as a string

c)

c) Converts input to an integer

d)

d) Executes a mathematical operation

2.

2. Which function can be used to check the type of a variable in Python?

a)

a) typeof()

b)

b) getType()

c)

c) type()

d)

d) isType()

3.

Which of the following is a valid variable name?

a)

2name

b)

my_name

c)

my-name

d)

class

4.
  • Python is a case-sensitive language. (True/False)

a)

true

b)

false

5.

what is the output of this code:

x="mohamed"

print(x)

a)

output

b)

mohamed

c)

x

d)

print