You are on page 1of 2

Academic Year 2023-24

Class VI Subject: ICT

CHAPTER 5: INTRODUCTION TO PYTHON

A. Fill in the blanks.


1. Guido Van Rossum
2. F5
3. Line-by-line
4. Variable
5. Keywords
B. Write T for True and F for False.
1. True
2. True
3. True
4. False
5. False
6. True
C. Application-based questions.
1. Kritika should use '\t' separator with the print () function.
2. Aman should use Interactive mode.
D. Select the correct option.
1. a. char
2. b. Overwritten
3. c. Assignment
4. b. float
5. 1020
E. Answer the following questions.
1. i) It is a platform-independent programming language.
ii) Python is a case-sensitive language.
iii) It is free to use and even for commercial products.

2. A variable is used to store data value. It can store only one data value at a time.
When a new value is stored in a variable, its previous value gets overwritten.
3. Python works in two modes - Interactive mode is the mode where you type the
commands one at a time and get the result or error immediately. Whereas, the Script
mode is used to create, and edit Python programs and save them for later use.

4. A data type represents the type of data stored in a variable.


float: Represents floating point values like 3.14, -48.6, etc. str (String): String data
type represents strings of characters enclosed within quotation marks, like 'Hello'.

5. The print () function is used to display the output of any command on the screen. We
can also pass more than one argument to the print () function. Separators are used with
the print () function to format the output.

6. i) A variable name must start with an alphabet or an underscore. ii) A Python keyword
cannot be used as a variable name. iii) A variable name can be of any length. iv) Variable
names are case-sensitive.

7. Using '\t' (tab space) is used to display values with a tab space between them.
Using '\n': A newline character is used to end a line and start a new line.

**************

You might also like