Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PYTHON DAY 2

Total questions: 12

Worksheet time: 7mins

Name
Class
Date
1.

Python is invented by

a)

Guido van Rossum

b)

Dennis Richie

c)

Montly Python

d)

BBC

2.

What is indentation in python?

a)

The group of keywords

b)

Displaying the output

c)

Its is a function

d)

The group of statements belongs to a particular block of code

3.

Which statement is used to print text to the output console?

a)

echo

b)

print

c)

printf

d)

Print

4.

Print Hello World!

(a)  

5.

What is a variable?

a)

A number

b)

A message input by the user

c)

A location in memory that we use to store data

d)

A printout that show answer that user entered

6.

What symbol is used in python to assign values to a variable?

a)

*

b)

=

c)

==

d)

-

7.

Which functions are used to accept input from the user?

a)

input()

b)

raw_input()

c)

rawinput()

d)

Input

8.

Which is a data type that can only be true or false?

a)

string

b)

boolean

c)

int

d)

float

9.

For variable declaration, Names can begin with a digit.

a)

True

b)

False

10.

>>>type(77.7)

a)

int

b)

float

c)

decimal

d)

number

11.

Find the type of a = "True"

a)

Boolean

b)

String

c)

Integer

d)

Float

12.

a=21

b=6

print(a/b)

print(a//b)

a)

3.5

3

b)

3

3.5