0% found this document useful (0 votes)
12 views

Term 2 - Grade 8 Computer Chapter 8 Reflect On Python

Uploaded by

Aditiaryan Oswal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Term 2 - Grade 8 Computer Chapter 8 Reflect On Python

Uploaded by

Aditiaryan Oswal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

RUSTOMJIE INTERNATIONAL SCHOOL, JALGAON

Computer Notes Grade : 8


Date :29/01 /2021

Chapter 8 – Reflect on Python

A) Fill in the blanks with the help of words given in the box

( Variables , Print (), Int , String , Interactive )

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.

3) Variables are places in memory where we store values.

4) String is the type of data enclosed within single or double quotes.

5) Int is the type of data in the form of whole numbers.

B) Write True ( T) and False ( F)

1) The use of operators in Python relates to performing different Arithmetic, Relational and

Logical operations. T

2) Arithmetic operators displays the output in 'true' or 'false' F

3) Examples of relational operators are greater than ' >' , lesser than '< ' ,

equal to '==' etc. T

4) Assignment operators assigns value to a variables. T

5) Replication represented by the character '+' is used for joining of two string values. F

C) Tick ( √ ) the correct answer :

1) Concatenation and replication are the two types of operators.

a) string √ b) arithmetic c) assignment


2) Which type of operator is used for displaying connections between two operands by

drawing comparison of the values contained by the

a) String b) Relational √ c) Arithmetic

3) Which type of operator is used to adjoin multiple statement and process them ?

a) Assignment b) Relational c) Logical √

4) Statement added to program for better understanding of codes are known as ________

a) parenthesis b) comments √ c) exponentiation

5) Which type of statement in Python when written for programming always gets executed in

a particular sequence and cannot be altered ?

a) Logical b) Sequential √ c) Relational

D) Answer the following questions:

1) What do you understand by the term Conditional Statements ?

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

invalid then another set of statements is executed.

2) Write steps to open Script Mode.

Ans :- Steps to open script mode:

(i) Open Python.

(ii) Go to the File tab and select New File.

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.

3) What are the different types of data used in Python ?

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

primary data types are:

• Float: It is the type of data with decimal point values.

• String: It is the type of data enclosed within single or double quotes.

• Int: It is the type of data which is in the form of whole numbers.

4) What do you understand by the term operators ? Mention about the different types

of operators used in Python

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

to perform different operations:

• Arithmetic Operators: These type of operators are used for performing arithmetic

operations on the basis of the type of the given data.

• String Operators: These type of operators are used to work in programs consisting of

string values.

• Assignment Operators: These operators assign value to a variable.

• Relational Operators: These operators are used for displaying connections between two

operands by drawing comparisons of the values contained by the variables.


• Logical Operators: These types of operators are used to adjoin multiple statements and

process them.

5) What are relational operators ? Give examples.

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 ‘<=’.

You might also like