Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Pre- Board 2022-23

SUBJECT- Computer Science (083) CLASS - XI


TIME- 3:00 Hrs. MM- 70
General instructions-
1. This question paper contains five sections, Section A to E.
2. All the questions are compulsory.
3. Section A have 18 questions carrying 1 mark each.
4. Section B has 07 very short questions carrying 2 marks each.
5. Section C has 05 short questions carrying 3 marks each.
6. Section D has 03 long questions carrying 5 marks each.
7. Section E has 02 questions carrying 4 marks each.
8. All programming questions are to answered using Python Language only.
Q.N Section - A MARKS
o
1 Write any two differences between lists and tuples. 1
2 if L = [1,2,3,4,5,6,7,8], What will be the output of following statement? 1
i) L[: :-2] ii) L[3: :2]
3 What is a Dictionary? Can we define a list as a key of a dictionary? 1
4 Write equivalent python code of following expression : 1

5 Write the module /library import for following functions/methods: 1


i) mean( ) ii ) fabs( )
6 What is the length of t1? 1
t1= ((((1,2,3,4), “a”, “b”),”g”, 1, 3), “Sonu”)
7 Find and write the output of the following python code: 1
a=(“Amit”, “Brinda”,”Ashish”,”Sumanta”)
print(a.index(“Brinda”))
8 Find and write the output of the following python code: 1
a=(1, 2, 3, 2, 3, 4, 5)
print(min(a) + max(a) + a.count(2))
9 The expression of a NAND gate is_______ 1
a) B b) A’B+AB’ c) (A.B)’ d) (A+B)’
10 Name the number system which uses alphabets as well as numerical. 1
a) Binary number system b) octal number system
c) Decimal number system d) Hexadecimal number system
11 Which of the following is an invalid identifier in Python 1
a) H_e_wel_123 b) Assert c) _ d) in
12 Give output: 1
for a in range(1,5):
print(“a”, end=” “)
a) 1 2 3 4 b) 1 2 3 4 5 c) a a a a d) a a a a a

13 Predict the output of the following code: 1


x,y=2,4
if(x+y= =10):
print(“true”)
else:
print(“false”)
14 Identify the gate: 1

15 Identify the result generated : 1

a) NOR GATE b) NAND GATE c) AND GATE d) NOT GATE


16 Identify the value of F3: 1

a) x y x + x’ + y’ + z’ b) xy’ + x’z’ c) x’y’ + x’z’ d) xy’ + x’z


17 Assertion (A): The internet is a collection of interconnected computer network, 1
linked by transmission medium such as copper wires, wireless connections etc.
Reason (R): world wide web is a collection of interconnected documents.
a) Both A and R are True and R is the correct explanation of A.
b) Both A and R are True and R is the not correct explanation of A.
c) A is True But R is False.
d) B is True But A is False.
18 Assertion (A): The clock speed of CPUs has not increased significantly in 1
recent year.
Reason (R): Software now being used is faster and therefore processors don’t
have to be faster.
a) Both A and R are True and R is the correct explanation of A.
b) Both A and R are True and R is the not correct explanation of A.
c) A is True But R is False.
d) B is True But A is False.
Section - B
19 Find and write the output of the following python code: 2
L =[“X”,20,”Y”,10,”Z”,30]
CNT = 0
ST = “”
INC = 0
for C in range(1,6,2):
CNT= CNT + C
ST= ST + L[C-1]+”@”
INC = INC + L[C]
print (CNT,INC,ST)
20 Find and write the output of the following python code: 2
Moves=[11, 22, 33]
Queen=Moves
Moves[2]+=22
L=len(Moves)
for i in range (L):
print(“Now@”, Queen[L-i-1], “#”, Moves [i])
21 Find and write outputs of the following code: 2
Dc1={ }
Dc1[1]=1
Dc1[“1”]=2
Dc1[1.0]=4
Sum=0
for k in Dc1:
Sum+=Dc1[k]
print(Sum)
22 Which of the following functions belong to Dictionary data type only? 2
index(), values(), max(), fromkeys()
23 Which of the following functions can not be used with Tuple data type in 2
Python? append(), sorted(), sort(), pop()
24 What is open source software? Describe broadly used open source license. 2
25 What are the challenges that need to be addressed while dealing with disability 2
issues while teaching and using computers?
Section - C
26 Manisha wants you to write a program for her in Python using Dictionary that 3
stores integers from 1 to 10 as keys and have the square of those integers as
values. Help her by writing correct program.
27 Write a Python Program to Input a tuple of elements, search for maximum 3
element in the tuple and index of maximum element.
28 Write the python code to swap the list numbers in given manner: 3
e.g. [10,20,30,40,50]
Result: [50,40,30,20,10]
29 Find and write outputs of the following code. Also write the maximum and 3
minimum value of pick.
import random
pick=random.randint(0,3)
city=[“Delhi”,”Mumbai”,”Chennai”,”Mumbai”]
for i in city:
for j in range(1,pick):
print(i,end=””)
print()
30 Find and write outputs of the following code. Also write the maximum and 3
minimum value of the picker.
import random
picker=1+random.randint(0,2)
color=[“Blue”,”Pink”,”Green”,”Red”]
for i in range(1,picker+1):
for j in range(i+1):
print(color[j],end=””)
print()
Section - D
31 Write a Python Program to Create a dictionary with the roll number, name and 5
marks of n students in a class and display the names of students who have
marks above 75.
32 (i) Define the following terms: Trojans, Adware 2.5
(ii) Explain the term ‘E-waste’ and what are the benefits of e-waste recycling? 2.5
33 Write a program to read a list of numbers and create another list which store 5
half of each even number and double of each odd number in the list.
Example: if list is containing [3,5,6,2,7,4,5,8]
then new list should contain [6,10,3,1,14,2,10,4]
Section - E
34 Create a dictionary whose keys are month names and whose values are the 4
number of days in the corresponding months
i) Ask the user to enter a month name and use the dictionary to tell them how
many days are in the month
ii) Print out all the keys in alphabetical order
iii) Print out all of the months with 31 days
iv)Print out the (key-value) pairs sorted by the number of days in each month
35 Write a program in Python that asks the user to enter a list of strings and 4
creates a new list that consists of those strings with their first characters
removed.

*****Best of luck*****

You might also like