Page 38 - PYTHON-12
P. 38
PRACTICE PAPER 2
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: (1)
If no argument is passed, float() returns 0 as output.
2. Identify the output of the following code snippet. (1)
Str2 = " computerProgramming ".strip().capitalize().replace("o", "0").
replace("e", "3")
(a) Computerprogramming
(b) C0mput3rpr0gramming
(c) C0mputErPr0gramming
(d) C0mput3rpr0gramming
3. Which of the following expressions evaluates to False? (1)
(a) bool([])
(b) 5 != 5
(c) len("abc") == 3
(d) True and (False or True)
4. What will be the output of the given expression? (1)
nums = (5, 10, 15); nums * 2
(a) (5, 10, 15, 5, 10, 15) (b) Error
(c) (5, 10, 15, 2) (d) (10, 20, 30)
5. Identify the output of the following code. (1)
s = "Innovation"
print(s[-2:-9:-3])
(a) vno (b) oan
(c) vnt (d) nao
Practice Paper A.1