a.
HALF-YEARLY EXAMINATION Page-4
CLASS-XI
SUB: COMPUTER SCIENCE (083)
TIME:- 3 hrs M.M:-70
Qi)a) Convert: a)
i) 1KB= GB ii) 1PB= KB
b) Expand the following abbreviations: (1)
i) EEPROM ii) DVD-RW
¢) Convert the following: (10101110 )2=(? )s=(?)i0=(? his (3)
d) Add: i) (1010110), and (1000101), ii)(011100111), and (110111001), [2]
e) Draw logic circuit for the following Boolean expression: [2]
A(B+C'B) + (ACY
f) Define Cyber Bullying. (1)
02)°5) Briefly describe Parallel Computing. 4) ;
b) Mention any two ways to ensure confidentiality of information. tl
+2) Name all the characteristics of Computational Thinking and define any two of them. [2]
d) Identify the type of token: 2}
j0 ii) break iii) ** iv) ‘true’
) What are the rules of naming an identifier ? {atleast 4 points) (2]
f) What do you understand by Adware? Mention any two damages caused by
Adware (2)
Q3) a) Define: —_ i) Debugging Tool ii) Break Point re)
b) What do you understand by Exception? Give example. i)
c) Write a python statement to randomly generate a floating point number in the range
25 to 40. (1)
d) Correct the error: i) ‘123’ + 4 ii) ‘standout!’ * ‘3° a
e) Evaluate: [2]
i) len('12435’) ** 2 ii) 7* (27/(-5//2))
iii) 25 /5 and 2.5 + 24 % 10 iv) -8%3
f) Write corresponding python statement for the following mathematical expression:
i) be] + Vsin 2A + cos 2B ji) eae seers (2)
g) What would the following expressions return? (21
i) “interesting facts” capitalize().find( “Inter”, 5, 14 )
ii) ‘bond’ in ‘carbondioxide’
iii) “settle” <"Setellite” iv) “Good Morning 123”.isalnum()
( Computer Science Class - XI (1) |
sae: Ee
Q4) a)How are lists different from strings? Illustrate with the help of example (a)
>) Differentiate between del statement and pop() in case of lists. (a)
“ c) Write the statement to extract the following sublists from the given list: (1)
Is
=[ 10, ‘abc’ ,’$’ , 3.14, False , 20,'%', 5.6, 30, ‘xyz’ ]
i) ['xyz’, 5.6, 20, 3.14, ‘abc’ ]
ii) [‘abe’, False, 5.6]
+4) Given the list: m=[10, 85,42, 90], perform the following tasks on this list using List
functions: (2)
i) sort the list in descending order
ii) remove the element 85 from the list
iii) set the third entry as 32
iv) Add 25 and 30 to the end of the list
— e) Give output: [2]
s=’Quaterly Exam’
print(s(-2] , s{5])
print(s(-3: ], s{ :-3])
print(s[-50 : -2: 2], s{-50:7])
print(s[ : :-1],s[1:10])
£) If x=[25,4,3,2,1,0], evaluate the following expressions: (2)
i) x{1]
, ii) xfx{5]]
iii) xbx(x{-2]}-41
iv) x[x[x(x[2]+2]]]
g) Predict the output: 2)
for x in range(45,20,-4):
if x%5=
print(x+2,end="@')
print()
if not x%7:
print(x-2,end='$')
print(x)
Computer Science Class - XI (2)Q5)'a) Give the output:
x=(5,10.4,'abc',26,'amit')
x=x+(20,30)
print(x)
y=x[-2::-3]*2
print(y)
a,b,c,d=y
azatc
b=x[4]*2
2"
y=(b,a,d,c)
x=x+(len(x),)
print(y)
print(x)
b) Predict the output:
x=(1,(2,(3,(4,))))
print(x(1][1])
print(3 in x)
y=(1,(2,(3,),4),-5)
print(len(y))
print(len(y{1]))
print(y{2]%2)
2=(2,(1,(2,),1),1)
print(z{2(2(0]]])
c) Rewrite theJollowing loop using while loop:
se=0
so=0
for iin range(1,51):
(2]
13]
[2]
d) Differentiate between break and continue statement. Illustrate with the help of an
example code.
(2)
ye) Draw a flowchart to input length of three sides of a triangle and check if these forma
triangle or not. Print “Triangle Formed” if they form a triangle, otherwise print “Triangle
Computer Science Class - XI
(3)a
not Formed”.(A triangle is formed ,if the sum of any two sides is greater than the third
side) (2)
| 6) %) WAP to input a lst of 10 integers and print the sum of negative odd integers of
that list. (2)
4.b] WAP to input alist of 20 integers from user and print the maximum element of the hist
along with its index number. a
c) WAP to print the following output: (2)
5 .
44
333
2222
11111
4) WAP to input an integer from user and check whether it is an Armstrong number or
not.(An Armstrong number is a number whose sum of cube of its digits is equal to the
number itself. Ex: 153 = (1)°+(5)°+(3) = 153) (3)
€) WAP to input an integer from user and search that element in a tuple of 8 integers
input by user using linear search technique and print appropriate message . 8]
f) WAP to input a string from user and print the frequency of uppercase letters,
lowercase letters, digits and spaces separately. 13]
g) Write a program to input the total sale of a medical representative from user and
calculate his salaty as per the following criterion: BB)
Total sale _| Basic HRA DA Conveyance | Incentive | Bonus
>=1,00,000 | 4000 20%0f | 10% of | 700 12%of | 1000
2 basic -__| basic sales
<1,00,000 | 3000 10%0 8% of |500 4%oF 500
basic basic sales
Total salary=Basic + HRA + DA + Conveyance + Incentive + Bonus
Computer Science Class - XI (4)