Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Basics !!!!!!!!!!!!!

Total questions: 6

Worksheet time: 2mins

Name
Class
Date
1.

What is Python?

a)

A type of snake

b)

A type of coding language

c)

A kind of game

d)

A type of yogurt

2.

Python language was developed in what year?

a)

1985

b)

2001

c)

1991

d)

1820

3.

What result will display in the shell if 15 and 20 is entered by the user?

a)

"num1 + num2"

b)

1520

c)

35

4.

What will be the output?

name = "Dave"

print (name)

a)

Dave

b)

name

c)

"Dave"

d)

(name)

5.

What is a input?

a)

To plug in something

b)

A function that allows us to ask the user to enter some data

c)

Data displayed on a screen

d)

A routine

6.

To display the following on screen Hello World! the following command should be used:

a)

print(Hello World!)

b)

print("Hello World" + !)

c)

print("Hello World!")

d)

print"(Hello World!)"