wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python-Interactive Mode

Total questions: 15

Worksheet time: 12mins

Name
Class
Date
1.

Computer works in 3 stages. Which of the following is NOT one of them?

a)

Input

b)

Output

c)

Processing

d)

Thinking

2.

Sequence of instructions written in programming language that specifies how to perform a work is called

(a)  

3.

Python is a programming language that is used to write code.

a)

True

b)

False

4.

In Python Interactive mode

a)

All the instructions are executed at once.

b)

Only one instruction is executed at a time

5.

In Interactive Mode, the commands are typed next to?

a)

>>>

b)

<<<

c)

///

d)

!!!

6.

What will be the output of this command?

>>> 'I Love Python'

a)

i love python

b)

I LOVE PYTHON

c)

I Love Python

d)

I love python

7.

Give the ouput of the following command.

>>> '10+2.5*5'

a)

22.5

b)

10+2.5*5

c)

62.5

d)

22

8.

Solve the following mathematical expression: 10*8-30+10*5/10

(a)  

9.

The function used to display the output on the screen is

a)

Print( )

b)

print( )

10.

Give the output of the following print function

>>> print('10+20=',10+20)

a)

10+20= 30

b)

30=30

c)

30=10+20

d)

10+20=10+20

11.

The values passed in the parenthesis of a function are called

a)

Message

b)

Arguments

c)

Comments

d)

Expressions

12.

Grammatical rules for writing a program in any programming language is called

(a)  

13.

Give the output:

>>> print('Computer','Science')

a)

Computer Science

b)

ComputerScience

c)

computer science

d)

computerscience

14.

Give the output:

>>> Print('type anything here')

a)

'type anything here'

b)

It will give error

c)

type anything here

d)

Type Anything Here

15.

The comma seperator in print( ) function gives how many spaces between the values?

a)

1 space

b)

2 spaces

c)

5 spaces

d)

no space