CBSE Class 11: Question and Answers 1

Question:1
Who developed Python programming Language?

Answer:
Guido van Rossum.

Question:2
The shortcut to run a Python program from script mode is _____

Answer:
F5

Question:3
Python programs/script are stored in files with ____ extension.

Answer:
.py

Question 4:
Are comments executed ?

Answer:
Comments are not executed

Question 5:
Do comments increase execution time ?

Answer:
No, comments do not increase execution time.

Question 6:
How many types of comments ?

Answer:
Comments are of two types : single line and multiple line.

Question 7:
Why do we use comments ?

Answer:
Comments helps the reader to understand the programme easily.

Question 8:
Which characteristics refer to insertion of extra blank spaces before declaration ?

Answer:
Indentation

Question 9:
Write any two purpose of comments.

Answer:

1. Comments help the reader to understand the program easily.

2. When a program consists of several functions, comments can be added to each function to indicate the purpose of the function.

Question 10:
Define identation.

Answer:
Indentation refers to the insertion of extra blank , spaces before declarations and statements. It enhances the readability of programs.