Page 112 - Information_Practice_Fliipbook_Class11
P. 112

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.










































                                                       Answers

          Multiple Choice Questions
          1. (a, c)   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


          98   Touchpad Informatics Practices-XI
   107   108   109   110   111   112   113   114   115   116   117