wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python Ch 1

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

Who has developed Python?

a)

George Smith

b)

Bill Gates

c)

Guido van Hussain

d)

Guido van rossum

2.

In which mode of Python you type the command and get output on hitting enter

a)

Interactive mode

b)

Editor

c)

Script mode

d)

Command prompt

3.

What is the output of the following code in python

print('Hello , World')

a)

HelloWorld

b)

Hello World

c)

Hello , World

d)

Hello,World

4.

Name the type of token: else

a)

Identifier

b)

Operator

c)

Punctuator

d)

Keyword

5.

Name the category of these operators:

< ==

a)

Arithmetic

b)

Relational

c)

Logical

d)

Assignment

6.

Tell the correct type of type(56.5)

a)

<class 'int'>

b)

<class 'float'>

c)

<class 'str'>

d)

<class 'list'>

7.

Which of the following is the correct way to create a list?

a)

Fruits =("apple", "mango")

b)

Fruits ={"apple", "mango"}

c)

Fruits =["apple", "mango"]

8.

Which of the following is the correct way to create a tuple?

a)

Fruits =("apple", "mango")

b)

Fruits ={"apple", "mango"}

c)

Fruits =["apple", "mango"]

9.

What is the result of this expression: 6 + 3 *7

a)

63

b)

27

c)

70

d)

20

10.

Which of the following is the correct option on execution of this expression

(20 > 400) and (20 < 10 )

a)

True

b)

False

c)

None