You are on page 1of 2

CHAPTER-6: REVIEW PYTHON

SECTION – A

A. Fill in the blanks:

1. Data Type

2. Two

3. Control Statements

4. Comments

5. F5

B. True or False

1. False

2. False

3. True

4. True

5. True

SECTION-B

A. Multiple Choice Questions:

1. Two

2. String

3. #

4. Sequential

5. .py
B. Answer the following:

1. Python is a general-purpose, high-level programming language which is:

a) Simple and interactive


b) Platform independent

2. In the Interactive mode of Python, the interpreter executes the statements one by one, whereas,
to write lengthy programs, we use the Script mode in which we can create and edit the programs.

3. Comments are the statements that are added to a program with the purpose of making the code
easier to understand. The two ways used to add the comments in Python are:

1. Single line comments


2. Multi line comments

4. The if statement is used to evaluate only one condition. It performs a course of action if the
condition evaluates to true, otherwise it skips the statements.
The if…else control structure is used when either of the two different actions are to be performed
depending upon the result of the conditional expression. It works with two blocks: if and else. In
case the conditional expression evaluates to true, the statements in the if block are executed, and if
the result is false, then the statements in the else block are executed.

5. The ‘+’ operator when used with numbers, add the values and gives the sum as output, whereas,
when the ‘+’ operator is used with string values, it concatenates two strings together.

6. In the statement a=10, the variable a is assigned value 10, however in the statement a==10, the
value of a is equated with 10. The ‘=’ (equal to) sign is the assignment operator in Python, whereas,
‘==’ sign is called the equal to operator.

You might also like