Page 399 - Computer Science Class 11 Without Functions
P. 399

32.  Write a Python program to find the maximum and minimum number in a list of numbers.
                      Or
                  Write a Python code to assign three dictionaries each containing name, age and salary or an employee. The
                Company has decided to increase the salary by 20% for the employee whose age is 55 years and above . Display
                the original and updated dictionaries.
             33.   Amar has created a group on whatsapp to share the study material. But his friend Rohit is posting rumors in the
                group.
                 a.  Which term is used for the task done by Rohit?
                 b.  Write any three safety measures Amar has to follow for this situation.
                 c.  What do you mean by cyber stalking?
                 d.  What do you mean by cyber bullying?
                 e.  Which government portal helps to control cybercrime in India?

                                                             Part-E

             34.  Observe the code given below and write answer of the following questions:
               n=___________ # Statement 1
               if _________: #Statement 2
               print("Please enter a positive number")
               elif _______: #Statement 3
               print("You have entered 0")
               else:
               _______________ #Statement 4
               c = a+b
               a = b
               b = c
               print(b)
                 i.  Write input statement to accept n number of terms – Statement 1

                 ii.  Write if condition to check whether input is positive number or not - Statement 2
                 iii. Write if condition to check whether input is 0 or not - Statement 3
                       OR (For iii Only)
                 Write for loop for to iterate the values up to n terms

             35.  Kartik is learning python modules. Help him to complete the given partial code:
               import ____________ # Statement 1
               TEXT="CLASS XI"
               COUNT=____________ # Statement 2
               C=3

               while TEXT[C]!='L':
               print(TEXT[C]+TEXT[COUNT]+'*',)
               COUNT=COUNT+1
               C=C-1
                 I.  Write the name of module required to be imported.                                           – Statement 1
                 II.  Write the random function to generate random number between 0 and 3.   – Statement 2
                 III. Write the possible output for the given code.
                 IV. What are the minimum and maximum values can be generated from this module?


                                                                                       Practice Paper 2 (Unsolved)  397
   394   395   396   397   398   399   400   401   402   403   404