Page 4 - PYTHON-12
P. 4

MODEL TEST PAPER 1 (SOLVED)

                                                        CLASS XII
                                               COMPUTER SCIENCE (083)

            Time Allowed: 3 hrs                                                             Maximum Marks: 70

             General Instructions:
              • This question paper contains 35 questions.
              • The paper is divided into 5 Sections—A, B, C, D and E.
              • Section A consists of 18 questions (1 to 18). Each question carries 1 Mark.
              • Section B consists of 7 questions (19 to 25). Each question carries 2 Marks.
              • Section C consists of 5 questions (26 to 30). Each question carries 3 Marks.
              • Section D consists of 2 questions (31 and 32). Each question carries 4 Marks.
              • Section E consists of 3 questions (33 to 35). Each question carries 5 Marks.
              • All programming questions are to be answered using Python language only.

                                                         Section A

              1. Which type of data structure does the following statement indicate?                        (1)
                 Student = ('Rollno:',10, 'Name:', 'Rajat Jain', 'Fees:',75000)
                 (a) Dictionary                             (b) Tuple
                  (c) List                                  (d) String
             Ans.  (b)  Tuple
              2. Complete the given MySQL statement with the correct option for the query to sort and display the
                 records of items on the basis of their price in descending order and item_name alphabetically?  (1)
                 Select * from Product
                 order by price ________, item_name _________;
                 (a) Ascending, Descending                  (b)  asc, desc
                  (c) desc, asc                             (d) max, min
             Ans.  (c)  desc, asc
              3. Given:                                                                                     (1)
                 x=12
                 x=x/5
                 print(type(x))
                 What will be the output of the above code? What is the name of the conversion used in this example?
             Ans.  <class 'float'>
                 Implicit type conversion
              4. Rinku wrote a program to print sum of first 20 odd numbers. Help her complete the blanks:  (1)

                 sum=0
                 a=1
                 while a<21:
                 _____________ # statement to add data to sum
                 _____________ # statement to continue the loop
                 print("Sum=", sum)
             Ans.  sum + = a
                 a + = 2

            Appendices                                                                                     A.29
   1   2   3   4   5   6   7   8   9