Page 178 - Computer Science Class 11 With Functions
P. 178
3. Assertion(A): A tuple is an immutable data type.
Reasoning(R): Once created, the values in a tuple cannot be changed using an assignment operator.
4. Assertion(A): = is an assignment operator.
Reasoning(R): An assignment operator assigns the value of the expression on the right-hand side of the operator to the
operand on the left-hand side of the operator.
5. Assertion(A): Implicit type conversion is also known as coercion.
Reasoning(R): When a data value is converted from one data type to another by the Python interpreter, it is called type
conversion.
Case Based Questions
1. Purvi has started using expressions in her program. She has entered the values of a, b, c, and d as 2, -1, 5, and 3
respectively. Can you tell her what output should she expect on execution of the following code snippet?
value = (a+c)<b or d**a>50
print(value)
2. Rishi wants to accept a two-digit number as input and then print the reversed number. He knows that on dividing the
number by 10, he will get the number at the unit's place as the remainder and the number at ten's place as the quotient.
Help him write a program to complete his task.
3. Raghu has understood the working of all arithmetic operators. His teacher has given him a task to accept as input time in
seconds and then display it in minutes and seconds. For example, if he enters a numeric value 350 (denoting seconds), the
output should be 5 minutes 50 seconds.
4. Sumedha wants to create a program that takes height in feet and inches as inputs and outputs the height in centimetres.
Help her write the program and to view the output.
Multiple Choice Questions
1. (a) 2. (c) 3. (c) 4. (d) 5. (a) 6. (b) 7. (c) 8. (a)
True or False
1. (T) 2. (F) 3. (T) 4. (F) 5. (F) 6. (T) 7. (T) 8. (F) 9. (F)
10. (F)
Fill in the blanks
1. numeric/ int /float/ complex 2. complex 3. Boolean 4. first 5. relational
6. expression 7. parentheses 8. typecasting 9. debugging 10. runtime
176 Touchpad Computer Science-XI

