PRACTICE TEST

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.
Q.1. State True or False: The Python interpreter handles logical errors during code execution. (1)
Q.2. Identify the output of the following code snippet:

text = "PYTHONPROGRAM" 
text=text.replace('PY','#') 
print(text) 
(A) #THONPROGRAM 
(B) ##THON#ROGRAM 
(C) #THON#ROGRAM 
(D) #YTHON#ROGRAM 

error: Content is protected !!
Scroll to Top