Term 2 - Grade 8 Computer Chapter 8 Reflect On Python
Term 2 - Grade 8 Computer Chapter 8 Reflect On Python
A) Fill in the blanks with the help of words given in the box
1) The interactive mode in Python enables the statements to be executed one after another.
2) Print () function displays the result of an expression after it has been processed.
1) The use of operators in Python relates to performing different Arithmetic, Relational and
Logical operations. T
3) Examples of relational operators are greater than ' >' , lesser than '< ' ,
5) Replication represented by the character '+' is used for joining of two string values. F
3) Which type of operator is used to adjoin multiple statement and process them ?
4) Statement added to program for better understanding of codes are known as ________
5) Which type of statement in Python when written for programming always gets executed in
Ans :- Conditional statement is a statement whose output depends upon the condition being
valid or invalid. If the condition is valid, a set of statements is executed but if the condition is
iii) When the New File option is pressed a new window with a name untitled opens.
iv) When you have written a program in this mode, first save the program by selecting Save
option from the File tab and then execute the program by selecting Run Module in Run tab.
You can also use the shortcut key F5 to do so.
v) You can save your program or open an earlier saved program by using the different options in
File tab.
Ans :- While working in Python we come across different types of data which are used to
write programs. Data type determines the kind of data which a variable can store. Some of the
4) What do you understand by the term operators ? Mention about the different types
Ans :-The use of operators in Python relates to performing different arithmetic, relational and
logical operations with symbols like ‘+’, ‘-’, ‘*’, etc. The other characters used as variables
along with operators are called operands. There are different types of operators used in Python
• Arithmetic Operators: These type of operators are used for performing arithmetic
• String Operators: These type of operators are used to work in programs consisting of
string values.
• Relational Operators: These operators are used for displaying connections between two
process them.
Ans :- Relational operators are used for displaying connections between two operands by
drawing comparisons of the values contained by the variables. It displays the output in ‘true’
or ‘false’. Some examples of relational operators are— greater than ‘>’, lesser than ‘<’, equal
to ‘= =’, not equal to ‘!=’, greater than and equal to ‘>=’, less than and equal to ‘<=’.