0% found this document useful (0 votes)
41 views6 pages

Xi Ip QP Term1 Exam 2021 Sabra Khan

This document is a term examination paper for Class XI in the subject of Information Practices (IP) using Python. It consists of three sections (A, B, and C) with a total of 55 questions, where students are required to attempt a specified number from each section. The questions cover various topics related to Python programming and computer science concepts.

Uploaded by

sabra khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views6 pages

Xi Ip QP Term1 Exam 2021 Sabra Khan

This document is a term examination paper for Class XI in the subject of Information Practices (IP) using Python. It consists of three sections (A, B, and C) with a total of 55 questions, where students are required to attempt a specified number from each section. The questions cover various topics related to Python programming and computer science concepts.

Uploaded by

sabra khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

KENDRIYA VIDYALAYA RANGAPAHAR CANTT

TERM-1 EXAMINATION 2021-22


CLASS – XI
SUBJECT : IP (065)
Time -90 minutes M. Marks- 35

General Instructions: Programming language is Python. All question carries equal marks 0.77
• This question paper is divided into 3 sections A, B and C.
• Section A has 25 Questions (1-25). Attempt any 20.
• Section B has 24 Questions (26-49). Attempt any 20.
• Section C has 6 case-based Questions (50-55). Attempt any 5.

Q.NO. Section A - (Answer any 20 out of 25) MARKS


1 Which one of the following is the secondary memory device ?
a. CPU 0.77
b. Hard Disk
c. RAM
d. ROM
2 Identify the odd one out. 0.77

A. Keyboard B. Mouse C. Microphone D. Printer


3 Which one of the following is written at the time of manufacture?

A. RAM B. ROM C. Cache D. All of these 0.77


4 The ______________mode of Python gives instant result of typed statement.
0.77
(a) Interactive mode (b) Script mode
(c) Combination of interactive and script modes (d) All of these
5 Assertion (A) : Keys in a Python dictionary should be unique.
Reason (R) : Only immutable data types can be used as keys. 0.77

A. A is true but R is false. B. A is false but R is true.


C. Both A and R are true and R is the correct explanation of A.
D. Both A and R are false.
6 1 MB contains ____ bytes.
0.77
a. 223 b. 221 c. 220 d. 1024
7 Repetition of statements in a program is known as-
0.77
a) Selection b) Sequencing c) Iteration d) Condition
8 Python is a __________ and ______________ programming language.
0.77
A. free, case sensitive B. complex syntax, free
C. paid, open source D. paid, complex

9 Identify the modes of programming in Python.


0.77
A. Interpreter, Compiler B. Interactive, Snippet
C. Interactive, Script D. Prompt, File

1|Page
10 Find the output of the following code ?
0.77
S=[10 , [40,57] , [22,“IP”] ]
print(len(S))

A. 2 B. 3 C. 0 D. 1
11 Find the output of the following code ?

d1={"a":5,"d":6,"g":7} 0.77
print(d1["d"])

A. 5 B. 6 C. 7 D. Error
12 D={31: “Aug”,30: “Sept”, “Oct”:30}
What should be the code to change the value of “Oct” to 31? 0.77

A. D{“Oct”}=31
B. Val(“Oct”)=31
C. D[“Oct”]=31
D. Dict is immutable
13 Identify the correct output of the following code:
0.77
L=[22,-11,-33,"a"]
print(L[::-1])

A. Error B. [“a”,-11,22,-33] C. [“a”,-33,22,-11] D. [“a”,-33,-11,22]


14 Identify the correct output of the following code:
>>>D={10:20,30:4,5:60} 0.77
>>>print(len(D))

A. 129 B. 3 C. 84 D. 6
15 Identify the correct Token out of the following.
0.77
A. ** B. and C. # D. all of these
16 Assertion: a=’3’
b=’2’ 0.77
c=a+b
The value of c will be 5
Reason: ‘+’ operator adds integers but concatenates strings

(A) Both Assertion & reason are true, reason is correct explanation of assertion
(B) Assertion & reason both are true, Reason is incorrect explanation of assertion
(C) Assertion is true, reason is false. (D) Assertion is false, reason is true
17 Select the output of the following expression:
str1=”pen”
print(list(str1)) 0.77

a) [‘p’,’e’,’n’] b) [pen] c) [p/e/n] d) {“pen”}

18 Identify the incorrect statement out of the following:

A. Keywords have special meaning in a program code.


B. Identifiers are case-sensitive 0.77
C. Identifier name can start with a digit
D. None of the above
2|Page
19 Is Python case sensitive when dealing with identifiers?
0.77
A. no B. yes
C. machine dependent D. none of the mentioned
20 A value in the form of a+bj in python is belongs to which datatype:
0.77
a) Boolean b) Integer c) Floating Point d) Complex
21 Which of the following is an invalid variable?
0.77
A. my_string_1 B. 1st_sum C. total D. _sum
22 Which of the following is used to define a block of code in Python language?
0.77
A. Indentation B. Key C. Brackets D. All of the mentioned
23 Which method removes the elements from a List ?
0.77
A. clear() B. remove() C. pop() D. delete()
24 Which of the following character is used to give single-line comments in Python?
0.77
A. // B. # C.! D. /*
25 What is the order of precedence in python?

A. Exponential, Parentheses, Multiplication, Division, Addition, Subtraction 0.77


B. Exponential, Parentheses, Division, Multiplication, Addition, Subtraction
C. Parentheses, Exponential, Multiplication, Division, Subtraction, Addition
D. Parentheses, Exponential, Multiplication, Division, Addition, Subtraction
Q.NO. Section B - (Answer any 20 out of 24) MARKS
26 Which is not an assignment operator?
0.77
A. /= B. //= C. != D. +=
27 Identify the correct output of the following code:
0.77
T=[11,22,77,-33]
T.pop(1)

A. 22 B. 11 C. -33 D. 1
28 Find the output ?
D={10:“Cheer”, 20 :“Up”}
print(D.keys()) 0.77

A. ([10, 20]) B. (['Cheer', 'Up']) C. (['Cheer', -10]) D. None


29 Which of the following is not an operating system?
0.77
A. Windows B. Linux C. Oracle D. DOS
30 If-elif-else statements are_________ statements.
0.77
A. conditional B. Iterative C. Jump D. Complex
31 Which of the following is system software?
0.77
A. Operating system B. Compiler C. Utilities D. All the above

3|Page
32 Select the python expression for the following :
0.77
2
ut + ½ ft

a) u*t +(0.5)*f*t**2 c) ut + (0.5)*ft*2


b) u*t + 1/2*f*t**2 d) None

33 Which operator is used to display the memory location of an object?


0.77
A. type() B. id() C. memory() D.loc()
34 What is the value of the following Python expression? 2 ** 3 ** 2
0.77
A. 12 B. 64 C. 256 D. 512
35 What is the value of the following Python expression? 2 ** 3 // 2
0.77
A. 2 B. 4 C. 3 D. 1
36 Print(‘10’) is which type of error:
0.77
A. Logical Error B. Syntax Error
C. Run Time Error D. No Error
37 Identify the correct output of the following code:
0.77
L=[10,20,30,“Hi”]
L.append(40)
L.extend([50,60])
print(L)

A. [10,20,30,“Hi”,40,50,60] B.[10,20,30,40,50,60, “Hi”]


C. [40,50,60] D. Error
38 What will be the output of following code:
0.77
>>>type(“seema”)

A. int B. string C. float D. complex


39 What will be the output of following code:
>>> chr(71) 0.77

A. F B. A C. G D. None of these
40 Comments are _____________________ by the Interpreter.
0.77
A. Executed B. Ignored C. iterated D. selected
41 What is the output of the following code:
x, y = 5, 2
y = 3+x, 0.77
print(x, y)

(a) 5 8 (b) 10 11 (c) 11 10 (d) 8 11


42 Which of the following functions is a built-in function in python?
0.77
A. factorial() B. print() C. seed() D. sqrt()
43 What will be the output of the following Python statement?
>>> “a”+ “bc2” 0.77

A. Error B. abcabc C. abc2 D. 2cba


4|Page
44 What will be the output of the following Python code snippet?
not(3 > 4)
not(0 < 2)
A. True B. True C. False D. 0.77
False
True False True
False
45 What will be the output of the following Python code?
if (9 < 0) and (0 < -9):
print("hello")
elif (9 > 0) :
print("good")
else: 0.77
print("bad")

A. error B. hello C. good D. bad


46 What will be the output?

L=[3,5,7] 0.77
print(L*3)

a) 3 5 7 b) [3,5,7,3,5,7,3,5,7] c) Error d) [9,15,21]


47 Find the Output: not(10<20) and not(10>30)
0.77
A. True B. False C. Error D. No output
48 What will be the output of the following? >>>9% (4%4)
0.77
A. 1 B. 4 C. 9 D. Error
49 What will be the output of the following?
for i in range(1,10,2): 0.77
print(i, end =” “)

A. 1 3 5 6 7 B. 1 3 5 7 9 C. 1 2 3 4 5 6 7 9 10 D. Error
Q.NO. Section C - (Answer any 5 out of 6) MARKS
(Only one correct solution to be selected)
ABC school is created a program that reads name of student and marks in 05
subjects ,calculate percentage and award grade as per the following
conditions:

percentage Grade
greater than & equal to 90 A
greater than equal to 70 & less than 90 B
greater than equal to 50 & less than 70 C
greater than equal to 30 & less than 50 D
otherwise Fail

Look at the code and answer the Q from 50-52

sname=__________________ # Statement 1
print("Enter marks")
eng=int(input('Enter marks in English '))
phy=int(input('Enter marks in Physics '))
che=int(input('Enter marks in Chemistry '))
math=int(input('Enter marks in Mathematics '))
5|Page
cs=int(input('Enter marks in Computer Science '))
total=__________________ # Statement 2
per= total / 5
print(“Percentage of “, sname , “ is “, per)
if(per>=90):
print('Grade is A')
elif(per>=70 and per<90):
print('Grade is B')
elif(per>=50 and per<70):
print('Grade is C')
elif(per>=30 and per<50)
print('Grade is D')
______: # Statement 3
print('Fail')
50 Statement 1 will be
A. input(“Enter Name:”) B. str(input(“Enter Name:”))
C. input(str(“Enter Name:”)) D. int(input(“Enter Name:”)) 0.77
51 Statement 2 will be
A. sum(total) B. eng+phy+che+math+cs
C. eng, phy, che, math, cs D. total(sum) 0.77
52 Statement 3 will be

A. for B. range C. loop D. else 0.77


Suppose Renu created a list with following values :

List= [10,20,30]
Select the correct output of the following questions.
53 What will be the elements of myList after the following operation:
List.append([50,60]) 0.77

a) [10,20,30,50,60] b) [10,20,30,[50,60]] c) Error d) [10,20,30,(50,60)]


54 What will be the elements of myList after the following operation:
List.reverse()
0.77
[10,20,30] b) [30,20,10] c) Error d) [20,30,10]
55 What will be the output of the following :
0.77
List.index(20)

a. 1 b. 2 c. 3 d. 0
*********************************THE END**********************************

6|Page

You might also like