50% found this document useful (6 votes)
24K views

Answers of ch-6 Review Python-Class-8 (Computer) Kips

This document contains a review of Python concepts including data types, control statements, comments, and operators. It covers filling in blanks with key terms, identifying true/false statements, and answering multiple choice and short answer questions. Topics discussed include Python being a simple, platform independent language; using interactive and script modes; single and multi-line comments; if and if/else statements; the addition operator for numbers and strings; and the difference between assignment and equality operators.

Uploaded by

Ritik Narayan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
50% found this document useful (6 votes)
24K views

Answers of ch-6 Review Python-Class-8 (Computer) Kips

This document contains a review of Python concepts including data types, control statements, comments, and operators. It covers filling in blanks with key terms, identifying true/false statements, and answering multiple choice and short answer questions. Topics discussed include Python being a simple, platform independent language; using interactive and script modes; single and multi-line comments; if and if/else statements; the addition operator for numbers and strings; and the difference between assignment and equality operators.

Uploaded by

Ritik Narayan
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Cyber Tools: 8

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:

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 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

operator in Python, whereas, ‘==’ sign is called the equal to operator.

You might also like