wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Ch.8 - Introducing Python

Total questions: 20

Worksheet time: 18mins

Name
Class
Date
1.

1. ..................................................... refers to the grammatical rules to be followed while writing a program in any language.

a)

colon

b)

Brackets

c)

Syntax

d)

edit

2.

2. Python ................................... cannot be used as a variable name.

a)

import

b)

keyword

c)

line by line

d)

script mode

3.

3. The data type for 22 . 405should be___________

a)

string

b)

boolean

c)

int

d)

Float

4.

find the output for given question.

a)

Output: The Sum of the numbers is 400

b)

Output: The Sum of the numbers is 800

c)

Output: The Sum of the numbers is 500

d)

Output: The Sum of the numbers is 300

5.

 5. Kritika's computer teacher has given her and display the names of the fruits separated with the tab space in Python. Which separator should she use with the print () function?

a)

She should use" \n" separator.

b)

She should use" \r" separator.

c)

She should use" \t" separator.

d)

She should use" \s" separator.

6.

6. Which of the following data types is not supported in Python?

a)

Numbering

b)

String

c)

List

d)

Boolean

7.

7. Values to variables for assigned using the _______ operator.

a)

Assignment

b)

String

c)

Print

d)

Value

8.

8. In Python only one type of data can be stored in memory.

a)

True

b)

False

9.

9. When we use operator ',' as a separator among the values, the values are displayed with the space between them.

a)

True

b)

False

10.

10. The area where you type the code is called _____________.

a)

worksheet

b)

Script area

c)

work area

d)

script diplay

11.

11. >>>print ('10'+'20') will give the output

a)

30

b)

1020

c)

1020

d)

10+20

12.

12. Python was created by ?

a)

Guido Van Rachal

b)

Guido Vince Rossum

c)

Guide Van Robert

d)

Guido Van Rossum

13.

13. The String value cannot be multiplied together.

a)

True

b)

False

14.

14. ................................. is features of python language.

a)

It supports multiple sequence.

b)

It has a complicate protocols.

c)

It has a simple syntax.

d)

menu bar consists code in oder

15.

15. When a new value is stored in a variable its previous value gets______

a)

Overlapped

b)

Overwritten

c)

Accepted

d)

Variables

16.

16. Values to variables for assigned using the _______ operator

a)

Assignment

b)

Print

c)

String

d)

Variables

17.

17. To evaluate an arithmetic expression it is not necessary to use print () function.

a)

True

b)

False

18.

18. ......................... Menu is used to edit the file in use

a)

New

b)

View

c)

Script

d)

Edit

19.

19. The print( ) function in Python is used to print a message or value on the output device.  

a)

True

b)

False

20.

20. What is Script area.

a)

These area consists of various edit bar with different option

b)

function area is used to display the output of any command on the screen

c)

This is the area where you type your code.

d)

function is used to accept the values for variable from the user.