Professional Documents
Culture Documents
Kendriya Vidyalaya Sangathan Jaipur Region: Pre Board Examination (Term-I) (Code - 001)
Kendriya Vidyalaya Sangathan Jaipur Region: Pre Board Examination (Term-I) (Code - 001)
General instructions:
The paper is divided into 3 Sections- A, B and C.
Section A, consists of Question number 1 to 25 and student need to attempt 20 questions.
Section B, consists of Question number 26 to 49 and student need to attempt 20 questions.
Section C, consists of Question number 50 to 55 and student need to attempt 5 questions.
All questions carry equal marks (0.77 mark per question).
Section – A
Section A consists of 25 questions, attempt any 20 questions
Section – B
Section B consists of 24 questions, attempt any 20 questions.
26. Write the output of the following: 28. Given list1 = [10, 20, 30, 40, 50]
name = ['Nischay', 'Manoj', 'Nirbhaya', 'Nilu'] Statement 1: list1[: : -1]
print(max(name)) Statement 2: list1.reverse()
Which statement modifies the contents of
A. Manoj original list1.
B. Nilu A. Statement 1
C. Nirbhaya B. Statement 2
D. Nischay C. Both Statement 1 and 2.
D. None of the mentioned
27. Read the code given below and answer the
question: 29. What will be the output when the following code
f=open(“sample.txt”,’w’) is executed?
f.write(“Morning”) >>> str1="Nitin”
f.close() >>> str1[: : -1]
A. nItIN
B. Nitin
If the file contains “Good” before execution, C. nitiN
what will be the contents of the file after D. NiTiN
execution of this code?
30. Find output of the following code:
A. Good Morning for I in range (15, 9, -2):
B. Good print(I, end=’ ‘)
C. Morning A. 15 13 11
D. None of these B. 15 13 11 9
C. 15 14 13 12 11 10 9
D. 15 14 13 12 11 10
40. You have given a file 'school.txt'. The content is What will be the output of the following code?
infile = open("teacher.txt")
I read in class XII. My school name is KV. x = infile.read()
I like very much. I live in India b = x.count('is') + x.count(‘very’)
print(b)
What will be the output of the following code? infile.close()
infile = open("school.txt")
x = infile.read() A. 2
y = x.count('in') B. 3
print(y) C. 4
infile.close() D. 5
46. You have given a file 'book.txt' 48. Consider the below code snippet and write the
missing part in statement4
myfile = open("student.txt") #Statement1
My KV is best in the world
data_rec = myfile.read() #Statement2
print(data_rec) #Statement3
What will be the output of the following code?
myfile._______ #Statement4
myfile = open("book.txt")
A. close
str = myfile.read()
B. close( )
size = len(str.split())
C. closed
print(size)
D. closed()
myfile.close()
49. Write the output of the following:
A. 26 a=(1, 2, 3, 2, 3, 4, 5)
B. 18 print(min(a) + max(a) + a.count(2))
C. 22
D. 7 A. 13
B. 6
C. 8
D. Error
50. Which module should be imported in Line 1? 55. Which file mode to be passed to add new record
A. pickle in Line 3?
B. csv A. a
C. file B. w
D. text C. w+
D. wb