Вы находитесь на странице: 1из 8

KENDRIYA VIDYALAYA SANGATHAN, PATNA REGION H8IP111

HALF YEARLY EXAMINATION, 2018-19


BLUE PRINT
CLASS: XI
SUBJECT: INFORMATION PRACTICES (065)
S.No. Unit/Topic Very Short Short Long Marks
Short Answer-I Answer-II Answer-I
Answer (2 Marks) (3 Marks) (4 Marks)
(1 Mark)
1 Basic Computer 0 3 2 12
Organization
2 Getting Started with 2 1 0 4
Python
3 Python Fundamentals 3 4 11

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.

Explain the functional components of a computer with diagram 3


1
2 What is the function of memory? What are its measuring units? 2

3 What is difference between compiler and interpreter? 2

4 What is application software? Why it required? 2

5 What is the role of communication processing unit and application processing unit in a mobile 3
system?

6 Who developed python programming languages? 1

7 What does a cross platform language mean? 1

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?

10 What is Features of print statement in python? 2

11 How many types of strings are supported in python? Explain 2

12 Which of the following are valid variable names: 1


i) 10thdegree ii) true iii) _init iv) My.name

13 Predict the output of the following code fragment: 2


x=40
y=x+1
x=20,y+x
print(x,y)

14 Write a python program to obtain principal amount, rate of interest and time from user (keyboard) 2
and compute the simple interest.

15 Why is Boolean considered a subtype of integers? 1


16 Find the errors in the following code fragment and rewrite the correct code: 1
x=24
4=x
print(x)

17 What do you understand by term ‘immutable’? 2

18 Predict the output of the following code fragment: 4


(i). print (-7/4) (ii). print(-7//4) (iii) print(7%-4) (iv) print(-5**3)

19 Predict the output of the following code fragment: 2


s1= ‘abc’
s2= input(“Enter the string:”)
>>> Enter the string:abc

Write the output of the following

(i). print(s1==s2)

(ii). print(s1 is s2)

20 Write the corresponding python expression for the following mathematical expressions: 2

(i). a 2  b2  c 2 (ii). 2-ye2y+4y

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

24 What is range () function? Explain with Example 2

25 Predict the output of the following code fragment: 2


x,y=5,0
while x>y:
print(x,y)
x=x-1
y=y+1

26 Rewrite the following code fragments using for loop: 2


i=100
while (i>0):
print(i)
i-=3
27 Find the errors in the code given below and correct the code: 2
if n= =0
print(“Zero”)
elif: n= =1
print(“one”)
elif
n= =2:
print(“two”)
else n= =3:
print(“three”)

28 Write a python program to find the sum of digits of a number( number entered through keyboard) 3

29 What is a string slice? How is it useful 1


30 Carefully go through the code given below and answer the questions based on it: 4
theStr="This is a test"
inputStr = input("Enter integer:")
inputInt = int(inputStr)
testStr = theStr
while inputInt>=0:
testStr =testStr[1:-1]
inputInt = inputInt-1
testBool = 't' in testStr
print(theStr) # Line 1
print(testStr) # Line 2
print(inputInt) # Line 3
print(testBool) # Line 4
(i). Given the input integer 3, what output is produced by Line 1?
(a). This is a test (b). This is a (c). is a test (d). is a (e). None of these

(ii). Given the input integer 3, what output is produced by Line 2?


(a). This is a test (b). This is a (c). is a test (d). is a (e). None of these

(iii). Given the input integer 2, what output is produced by Line 3?


(a). 0 (b). 1 (c). 2 (d). 3 (e). None of these

(iv). Given the input integer 2, what output is produced by Line 4?


(a). False (b). True (c). 0 (d). 1 (e). None of these

31 What is a list? 1

32 Explain any four method of list with example 4

33 How are dictionaries different from lists? 2


34 Predict the output of the following code fragment: 2
d = dict( )
d[‘ left ’] = ‘ < ’
d[‘ right ’] = ‘ > ’
print( ‘ {left} and {right} or {right}and {left}’)

35 What is a python module? What is its significance? 2


KENDRIYA VIDYALAYA SANGATHAN, PATNA REGION
HALF YEARLY EXAMINATION, 2018-19
CLASS:- XI
SUBJECT: INFORMATION PRACTICES (065)

MARKING SCHEME

GENERAL INSTRUCTIONS :
* All answers provided in the marking scheme are SUGGESTIVE.

* Examiners are requested to accept all possible alternative correct answers.

Ans.No suggestive Answer Description Marks


1 Block diagram of a computer---- 1 mark 3
Defined the terms like input device ,output device, memory and cpu –2 marks
2 Definition of memory--- 1 mark 2
Write any two measuring unit----1 mark
3 Compiler: It convert HLL program into Machine language in one go .if there are errors 2
in the program ,it gives error list along with the line numbers . Once the errors are
removed, error –free object code is made available and after this compiler is no more
needed in the memory.
Interpreter: It convert HLL program into Machine language line by line and executes
the converted line. It must always be present in the memory along with the program for
its execution. If an error occurs in a line, the line is displayed and interpreter does not
proceed unless the error is rectified.
4 Application Software: It is software that pertains to one application. 2
It is required because system software cannot carry out the routine jobs performed by
the user which application software can easily do.
To perform various kinds of activities, the application software comes in various
categories:
Package, utilities, business software developer tools etc.
5 =>Communication processing unit: It is responsible for making and receiving phone 3
calls on mobile handset. It has a digitals signal processor that helps it work with RF
transceiver and the audio subsystem
=> Radio signal management unit: It is responsible for connecting SIM to the base
stations through radio signals.
Audio Subsystem: It is responsible for converting the voice signals to digital signal and
vice –versa
=> Application processing unit: This subsystem is responsible for governing,
controlling all types of operations taking place on a mobile system. It responsible for
carrying out different applications that a mobile system can perform such as making
calculations, playing music ,browning net etc.
6 Guido Van Rossum 1
7 A cross platform language means it can run well on variety of platforms like windows, 1
Linux/Unix, Macintosh etc.
8 In Interactive Mode: Instruction are given in front of python prompt (e.g., >>> or In[ ]: 2
prompts) In python shell. Python carries out the given instruction and shows the result
there itself.
In script Mode: Python instructions are stored in a file with .py extension and are
executed together in one go as a unit. The saved instructions are known as python script
or python program.
9 Comments are the additional readable information, which is read by the programmer but 1
ignore by the python interpreter.
Comments begin with symbol # (pound or hash character) and end with the end of
physical line
10 Features of print statement 2
 it auto-converts the items to strings
 It insert spaces between items automatically
 It appends a newline character at the end of the line unless you give your own end
argument.
11 Python allows two string types: 2
1. Single line Strings: Strings that are terminated in single line. It is create by enclosing
text in single quotes (‘ ’) or double quotes (" " )
Example; Text1= ' hello there’
2. Multi-line Strings: Strings storing multiple line text.
Multiline strings can be created in two ways :
(i). By adding a backslash at the end of normal single-quote /double-quote strings.
Text1= ' hello\
there’
(ii).By typing the text in triple quotation marks. (No backslash needed at the end of
line).
For Example:
Str1= "' Hello World.
There I Come ! ! !
Cheers.
’’’
12 ii) true iii) _init 1
13 (20, 81) 41 2
14 pamount=int(input("enter the principal amount:")) 2
rointerest=int(input("enter the Rate of Interest:"))
time=int(input("enter the Time:"))
Si=(pamount*rointerest*time)/100
print("Simple Interest=",Si)
15 Boolean values True and False internally maps to integers 1 and 0. That is internally 1
True is equal to 1 and False equal to 0. When 1 and 0 are converted to Boolean Through
bool ( ) function, they return True and False. That is why Boolean are treated as a
subtype of integers.

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

19 (i) True (ii) False 2


20 (i). math.sqrt(a*a+b*b+c*c) (ii). 2- y*math.exp(2y)+2*y 2
21 An implicit type conversion is a conversion performed by the compiler without 2
programmer’s intervention. An implicit conversion is applied generally whenever
differing data type is intermixed in an expression, so as not to lose information.
Example:
X=5
Y =10.4
Z=X+Y
print(Z)
output:
15.4
 An explicit type conversion is user-defined that forces an expression to be of
specific type.
 We use the predefined functions like int(),float(),str(),complex(),bool() etc.
Example:
X=5
Y =10.4
Z=X+Y
print(int(Z))
15
22 Algorithm: It is a step-by step procedure (well-defined instructions) to solve a problem. 1
23 2

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.

Вам также может понравиться