Page 15 - PYTHON-12
P. 15
MODEL TEST PAPER 2 (SOLVED)
CLASS XII
COMPUTER SCIENCE (083)
Time Allowed: 3 hrs Maximum Marks: 70
General Instructions:
• This question paper contains 37 questions.
• All questions are compulsory. However, internal choices have been provided in some questions. Attempt
only one of the choices in such questions.
• The paper is divided into 5 Sections—A, B, C, D and E.
• Section A consists of 21 questions (1 to 21). Each question carries 1 Mark.
• Section B consists of 7 questions (22 to 28). Each question carries 2 Marks.
• Section C consists of 3 questions (29 to 31). Each question carries 3 Marks.
• Section D consists of 4 questions (32 to 35). Each question carries 4 Marks.
• Section E consists of 2 questions (36 to 37). Each question carries 5 Marks.
• All programming questions are to be answered using Python Language only.
• In case of MCQ, text of the correct answer should also be written.
Section A
1. State whether the following statement is True or False:
Functions can alter only mutable type values. (1)
Ans. True
2. Identify the output of the following code snippet. (1)
Str4 = " Learning Python ".strip().lower().replace(" ", "_")
print(Str4)
(a) learning_python (b) learning python
(c) learning_Python (d) Learning_Python
Ans. (a) learning_python
3. Which of these expressions evaluates to True? (1)
(a) 3 + 3 == 7
(b) not (10 < 20 and 20 > 30)
(c) 4 * 5!= 20
(d) not(1 == 1) and not(0)
Ans. (b) not (10 < 20 and 20 > 30)
4. What will be the output of the given expression? (1)
a = (4, 5, 6)
b = (a,)
print(b)
(a) (4, 5, 6)
(b) (4, 5, 6, 4, 5, 6)
(c) ((4, 5, 6),)
(d) Error
Ans. (c) ((4, 5, 6),)
Model Test Paper (Solved) A.1