wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Introduction-1

Total questions: 7

Worksheet time: 4mins

Name
Class
Date
1.

Which of the following options will allow you to view the output in the console area?

a)

int()

b)

put()

c)

get()

d)

print()

2.

How are comment lines written in python?

a)

You use a #

b)

You use a o

c)

You use a $

d)

You use a %

3.

Which of the following is a correct statement?

a)

print(hello)

b)

print(hello

c)

print(*hello*)

d)

print("hello")

4.

To write a program in turtle which module do we have to use?

a)

Tkinter

b)

pygame

c)

turtle

d)

Time

5.

Which of the following statements helps you to create the turtle?

a)

pen = t.t

b)

pen = t.turtle

c)

pen = turtle.Turtle()

d)

pen = t()

6.

Can you see the comment line in the console area?

a)

Yes

b)

No

c)

Maybe

d)

None of the above

7.

What is a variable?

a)

It is a string

b)

It is a container that helps us to store a value or any information

c)

It is a number

d)

None of the above