Академический Документы
Профессиональный Документы
Культура Документы
4 Data Handling 1 4 1 13
5 Conditional and 1 5 1 14
Iterative Statements
6 String Manipulation 1 1 5
7 List Manipulation 1 1 5
8 Dictionaries 2 4
9 Introducing Python 1 2
Modules
No. of Question 9 20 3 3 Total: 35 Questions
(70 Marks)
KENDRIYA VIDYALAYA SANGATHAN, PATNA REGION H8IP111
HALF YEARLY EXAMINATION, 2018-19
CLASS: - XI
SUBJECT: INFORMATION PRACTICES (065)
TIME: THREE HOURS MAX.MARKS: 70
General Instructions:
(i). All questions are compulsory.
(ii). Marks are indicated against each question.
(iii). Answer the questions after carefully reading the text.
(iv). Programming Language PYTHON.
5 What is the role of communication processing unit and application processing unit in a mobile 3
system?
8 What is the difference between interactive mode and script mode in Python? 2
9 What are python comments? Which character is used to determine the beginning of a python 1
comment?
14 Write a python program to obtain principal amount, rate of interest and time from user (keyboard) 2
and compute the simple interest.
(i). print(s1==s2)
20 Write the corresponding python expression for the following mathematical expressions: 2
21 What is the difference between implicit type conversion and explicit type conversion? 2
22 What is an algorithm? 1
23 Draw the flowchart to determine if the number is divisible by second number or not 2
28 Write a python program to find the sum of digits of a number( number entered through keyboard) 3
31 What is a list? 1
MARKING SCHEME
GENERAL INSTRUCTIONS :
* All answers provided in the marking scheme are SUGGESTIVE.
16 x=24 1
x=4
print(x)
17 Immutable means unchangeable. In Python, immutable types are those whose values 2
cannot be changed in place. Whenever one assigns a new value to a variable referring to
immutable type, variable is changed and the previous value is left unchanged.e.g.,
X=3
X=5.
18 (i). -1.75 (ii). -2 (iii) -1 (iv) -125 4
24 Range( ) Function: The range function generates a list which is a special sequence 2
type. A sequence is a succession of values bound together by single name. such as
strings,list,tuple etc.
Syntax:
range(start,end,step)
start: Starting number of the sequence.
end: Generate numbers up to, but not including this number.
step(Optional): Determines the increment between each numbers in the sequence, by
default 1.
Example
for i in range(5,3,-1):
print(i)
Output
5
4
25 5 0 2
4 1
3 2
26 for i in range(100,0,-3): 2
print(i)
27 n=int(input(“Enter the value of n”) 2
if n==0:
print("zero")
elif n==1:
print("one")
elif n==2:
print("two")
elif n==3:
print("three")
28 n=int(input("Enter the value of n:")) 2
s=0
while n>0:
r=n%10
s=s+r
n=int(n/10)
print(s)
29 A sub-part or a slice of a string, say s , Can be obtained using s[n:m] where n and m are 1
integers
‘well done’ [1,4]
Output: ell
30 (i). (a). This is a test 4
(ii). (d). is a
(iii). (e). None of these
(iv). (b). True
31 It can store a sequence of values belonging to any type. 1
32 Explain any four method 4
One mark for each
33 The dictionary is similar to lists in the sense that it is also a collection of data-items just 2
like lists But it is different from list in the sense that lists are sequential collections
(ordered) and dictionaries are non- sequential collections(unordered)
34 {left} and {right} or {right}and {left} 2
35 A “module” is a chunk of python code that exists in its own (.py) file and intended to be 2
used by python code outside itself.
Modules allow one to bundle together code in a form in which it can easily be used later.
The modules can be “imported” in other programs so the functions and other definitions
in imported modules become available to code that imports them.