Page 158 - TrackpadV5.1_class7
P. 158
c. What is the use of the 'not' and 'and' operators in Python?
______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________
d. What do you mean by a data type? Give two examples.
______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________
e. Explain any one assignment operator with an example.
______________________________________________________________________________________
______________________________________________________________________________________
______________________________________________________________________________________
5. What will be the output of the following expressions in Python?
a. 16 – (3*2) ______________
b. (5+3)//3 ______________
c. 5>=10 and 6<10 ______________
d. (3*4)==(15-3) ______________
21 st
6. Competency-based/Application-based questions. Century #Critical Thinking
Skills
a. Ram needs to calculate the average score of students in a class and wants to ensure that the
calculation handles floating-point numbers accurately. What operator should he use to perform
floating-point division?
b. Reena needs to check if a given numeric value is exactly equal to another numeric value,
including case sensitivity. What operator should he use for this comparison?
21 st
LAB ACTIVITY Century #Technology Literacy
Skills
Visit your computer lab and perform the following actions:
Write a program to enter two numbers and print their exponent.
Write a program to calculate the perimeter of circle.
Write a program to calculate average of 5 numbers.
156 Pro (V5.1)-VII

