Page 369 - Computer Science Class 11 With Functions
P. 369

Case Based Questions


               1.  Pamela is learning about lists and tuples. She wants to create a list of integers taking inputs from the keyboard. Next, using
                  this list,  she wants to create two tuples one  with odd numbers and the other with even numbers. Assist her in writing a
                  program to finish the task.
               2.  Jim has been tasked with finding sponsors for the celebration on the occasion of Founder's Day of the school. He intends
                  to store the following information about each sponsor in the form of a list:
                  Sponsor Name - string
                  Sponsorship Amount - integer
                  Next, he wants to find out the total amount collected from the sponsors. Assist Jim in completing his task.


















































              Multiple Choice Questions
              1. (c)     2. (a)      3. (b)     4. (c)     5. (a)      6. (c)     7. (b)
              True or False
              1. (F)     2. (F)      3. (F)     4. (F)     5. (T)      6. (F)     7. (T)     8. (F)
              9. (T)     10. (F)
              Fill in the blanks
              1. append()           2. mutable, immutable   3. sorted()        4. statistics
              5. an error           6. [ ]               7. None               8. [(1, 2, 3)]
              9. [1, 2, 3]          10. True             11. [ ]



                                                                                                Lists and Tuples  367
   364   365   366   367   368   369   370   371   372   373   374