Page 126 - ConceptGP_C8_Fb
P. 126
5. Distinguish between the following with the help of examples.
a. AND operator and OR operator
b. Modulus operator and Division operator
c. Single line comment and Multiple line comment
Computational Thinking
D. What will be the output of the following programs?
1. a = 4.5 2. y = 10
b = 2 y += 2
print (a//b) print(y)
3. p, q, r = 10, 20 ,30 4. var1 = 1
print(p, q, r) var2 = 2
var3 = 3
print(var1 + var2 + var3)
Computational Thinking
E. Write a program to:
1. convert Celsius to Fahrenheit using the formula: (Celsius * 1.8) + 32
2. convert kilometre unit to metre.
3. input five names from the user.
4. calculate the area of a square.
124 Premium Edition-VIII

