CS XI SEE 2020-21
CS XI SEE 2020-21
1 to 7
3 Which of the following can be used as valid variable identifiers in Python? 1
i) 4th Sum
ii) Total
iii) Number#
iv) -Data
4 Identify the mutable data types? 1
(i) List
(ii) Tuple
(iii) String
(iv) All of the above
5 ____________ is the read only memory that stores some pre-written instructions. 1
6 Name any 2 secondary storage devices? 1
7 The ________ operator in Boolean algebra performs OR operation. 1
8 Which of the following fall under utilities software? 1
(i)Text editor (ii) backup (iii) Disk defragmenter (iv) All of the above
9 A ________ is a program that appears harmless but actually performs malicious 1
functions.
10 What will be the output of the following? 1
print(17//4)
print(len(str(17//4)))
11 What is the output of the below program? 1
x,y=7,2
x,y,x=x+1,y+3,x+10
print(x,y)
12 Name the python library need to be imported to invoke following function 1
i. sqrt()
ii. randint()
2 to 7
15 t1=(2,3,4,5,6) 1
print(t1.index(4))
output is
i. 4
ii. 5
iii. 6
iv. 2
17 Copying programs written by other programmers and claiming them as your own 1
could be an act of __________________.
Section-II
Both the case study based questions are compulsory. Attempt any 4 subparts
from each question. Each question carries 1 mark.
22 Kids Elementary Technologies help nursery children to improve their handwriting and 4
writing skills such as word formation, recognition of lower and uppercase letters and
small sentences formation.
A program has been written by the programmer that should prompt the child to type
some sentence(s) followed by “enter”. It should then print the original sentence(s) and
the following statistics relating to the sentence(s):
3 to 7
->number of words
->number of characters (including white space & punctuation)
->percentage of characters that are alphanumeric.
Help the programmer to complete the program, by filling correct statements in the
blanks.
s=input("Enter a sentence : ")
number_of_words =1
number_of_characters = _____________ statement1
p=_______________________ statement2
al_num=0
for i in s:
if _____________________ : statement3
al_num+=1
if i==' ':
number_of_words+=___________ statement4
p= __________________ statement5
print("number of words are : ",number_of_words)
print("number of characters are : ",number_of_characters)
print("percentage of characters that are alphanumeric is : ",p,"%")
4 to 7
c)delete the 3rd element from the list
d)add single element 70 at the end of the list
e) add another list [80,90,100] at the end of the list.
Part-B
Section-I
24 Write any two differences between an interpreter and a compiler. 2
25 Perform the following conversions: 2
1. (122)10 ( ? )2
2. (13B)16 ( ? ) 10
30 Ms Smitha has many electronic gadgets which are not usable due to outdated hardware 2
and software. Help her to find 2 best ways to dispose the used electronic gadgets.
5 to 7
31 Differentiate between a list & a tuple with example. 2
OR
Differentiate between pop() & remove() functions of a list with examples.
Section II
34 Write a program in python to generate the terms of the Fibonacci series up to nth term. 3
Program should ask the user to enter the value of ‘n’.
OR
Write a program to input a number and generate the mathematical table of that number
only if that number is divisible by 2.
35 Write a program in python to read a string and count the number of vowels and 3
consonants in the string separately.
6 to 7
37 3
Write any 3 methods to prevent Identity theft?
OR
Section-III
38 Write a program to exchange the first half elements of the list with the second half 5
elements of list assuming the list is having even number of elements.
If List L is : [10,20,30,40,50,60],
then final list must be : [40,50,60,10,20,30]
OR
(i) Write a program to find factorial of a positive integer input by user. (3)
(ii) Write a program To check string is palindrome or not. (2)
39 Write a program in python to input five state names and their capital in a Dictionary as 5
a Key Value pair, then ask the user to enter state and print its capital if found in a
dictionary, otherwise print message “State not found in dictionary”.
40 a) Explain gender and disability issues briefly while teaching and using computers. 2+3=5
b) What should I do, if I have already responded to a phishing email and fear I may be
victim of identity theft ?
7 to 7