Page 297 - Computer Science V2.0 Class 11
P. 297
Can you help Rumpa develop such a program that displays the output according to the table given below:
BMI Output
<18.5 Underweight
18.5–24.9 Normal Weight
25–29.9 Overweight
>=30 Obese
2. Saptarishi wants to create a menu-driven program by the name MATHEMAGIC. This program must accept three numbers
and then perform the following operations:
a. Display the largest number
b. Display the smallest number
c. Display only even numbers
d. Display only odd numbers
e. Exit
Answers
Multiple Choice Questions
1. (a) 2. (a) 3. (a) 4. (c) 5. (b) 6. (d) 7. (a) 8. (c)
9. (b) 10. (a) 11. (c) 12. (c)
True or False
1. (T) 2. (T) 3. (T) 4. (T) 5. (F) 6. (T)
Fill in the blanks
1. sequential 2. conditional expression 3. multiple 4. pass 5. True
6. elif 7. compound 8. colon
Conditional Statements 283

