Answers of ch-6 Review Python-Class-8 (Computer) Kips
Answers of ch-6 Review Python-Class-8 (Computer) Kips
Class: 8 (Computer)
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:
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
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:
4. The if statement is used to evaluate only one condition. It performs a course of action if
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 is 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