Class: XI Session: 2022-23
Computer Science (083) Practice Paper-3
(Theory)
Maximum Marks: 70 Time Allowed: 3 hours
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A have 18 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer type questions carrying
02 marks each.
5. Section C has 05 Short Answer type questions carrying 03
marks each.
6. Section D has 03 Long Answer type questions carrying 05
marks each.
7. Section E has 02 questions carrying 04 marks each. One
internal choice is given in
Q35 against part c only.
8. All programming questions are to be answered using
Python Language only.
SECTION:
A
Q.N Questi Marks
o on
1. Components that provide internal storage to the CPU is: 1
(a) Registers (b) Program
Counters Controller (d) Internal Chips
2. The boolean expression of following logic circuit is : 1
(a) (A+B).C'+B (b) A'B'+C+B'A
(c) A.B.C+(B'+C').A (d) A+B+C'(A+B)
3. Full form of OMR is: 1
(a) Optical Mark Reading (b) Optical Mark Recognition
(c) Optical Mark Reader (d) Optical Mark Resolution
4. Which of the following is not valid string in Python? 1
(a) “Hello” (b) ‘Hello’
(c) “Hello’ (d) None of the Above
5. What shape represents a decision in a flow chart? 1
(a)Oval (b) Diamond (c) Rectangle (d) Arrow
6. What will be the output of above Python 1
code? abc="6/4"
print("abc")
(a) 1 (b) 6/4 (c) 1.5 (d) abc
7. Which of the following will give "Simon" as 1
output? If str1="Hari,Simon,Vinod"
(a) print(str1[-7:-12]) (b) print(str1[-11:-7])
(c) print(str1[-11:-6]) (d) print(str1[-7:-11])
8. What is identity theft? 1
9. Accessing of data in a dictionary is done through : 1
(a)Index (b) value (c) key (d) cell number
10. Which of the following will be the output of the 1
operation? L1=[1,2]
L2=[3,4]
(L1 +
L2)*2
(a) [2,4,6,8] (b) [1,2,3,4,1,2,3,4] (c) [1,3,4,4] (d) [3,4,1,2]
11. Which of the following can add a list of elements to a list? 1
(a) append() (b) extend() (c) add() (d) none of these
12. Which of the following is not a type of cyber criminals? 1
(a) Unauthorized account access (b) Email spoofing and spamming
(c) Mass attack using Trojans as botnets (d) Report vulnerability in any
system
13. Which of the following can be termed as Cyber Bullying: 1
a) Posting Rumors online
b) Posting hate speech
c) Posting sexual remarks
d) All the above
14. How many asterisks does the following 1
code fragment print?
a=3
while a < 20:
print('
*') a
+= 1
(a)16 (b) 17 (c) 18 (d) 20
15. What is the output of the following? 1
>>>print('INDIA'.capitalize())
16. ‘Python is an interpreted high level language’. What does it mean to you? 1
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the
correct
choice as
(a) Both A and R are true and R is the correct explanation for A
(k) Both A and R are true and R is not the correct explanation for
A
(l) A is True but R is False
(m) A is false but R is True
17. Assertion (A) : Comments are non-executable statements that enable the users 1
to understand the program logic.
Reason (R) : They are basically statements used to put remarks. The comments
are used to explain the code and to make it more informative for the users.
Pick an appropriate statement from the given options:
(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 not the correct explanation of A.
(c) A is true but R is false.
(d) A is false but R is true.
18. Assertion (A) : In Python, the tuple is an immutable collection of data. 1
Reason (R) : It means that any change or alteration in data, is mentioned in the
same place. The updated collection will be use the same address for its storage.
Pick an appropriate statement from the given options:
(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 not the correct explanation of A.
(c) A is true but R is false.
(d) A is false but R is true.
SECTION : B
19. What is output from the following code : 2
(i)range(6)
(iii)range(5,20,4)
(ii)range(7,10) (iv)range (12,1,-2)
20. How the pop ( ) function is different from remove( ) function working with list 2
in python ?
O
R
What will be the output of the following python
code: (i) a = [12,14,16,18,10]
print(a[-[Link]-2])
(ii) d = {'Name':'Ravi',
'Marks':90} e = {'Age':16,
'Marks':95} [Link](e)
print(d)
21. How the internet security is a major issue? Write any two solutions of internet 2
security threats.
22. What is mutable and immutable data objects in Python? Name any one of each 2
type.
23. Identify the valid and invalid identifiers 2
MyDiary, 1num, File123, _Clear, Mynameisking, while, [Link], If
24. (i)Name the popular micro blogging social networking website 2
ii)To protect a computer from virus, you should install in your computer.
A. backup wizard B. disk cleanup
C. antivirus D. disk defragmenter
25. What will be the output of the following Python code? 2
>>>x,y=5,10
>>>x,y=y,x
>>>x,y
a) 5,10 b) 10,10 c) 10,5 d) 5,5
O
R
What will be the output of the following code
(i) List1=[13,18,16,16,13,18]
print([Link](16))
(ii) Strg=”computer”
print(Strg[ 0: 8 :
2]
SECTION:
C
26. Convert the following numbers into their equivalent 3
numbers. (i) (29.75)10 = (………….)2 (ii) (A4B)16 = (…
)10
(iii) (1234)8 = (… )16
27. Write a Python program to calculate bonus as the following criteria using if- elif 3
statement :
If salary between bonus
0 to 25000 25% of salary
25001 to 35000 15% of salary
35001 to 50000 10% of salary
50001 to 75000 05 % of salary
75001 and above nil
O
R
What is difference between break and continue statement in Python explain
with example.
28. Go through the program of dictionary in python given below and predict the 3
output of program.
Student={"RollNo":10 , "Name":"Kuku" , "Class":11 , "Age":15}
T=len(Student)
Elm=[Link]("Name")
mylist=[Link]()
print("Length=",T)
print("Specific
Element=",Elm) print("My
List=",mylist)
29. Find the output of the following code: 3
>>> L=["These", "are", "a", ["few", "words"], "that", "we", "will", "use"]
>>> print (L[3:4])
>>> print (L[Link]-1])
>>> print ("few" in L)
>>> print (L[0::2])
>>> print (L[4:])
>>> print (L)
OR
te a program to check number of ‘H’ present in a string:
ALPS HEALS WITHOUT HURTING”
output will be displayed
as: Total number of ‘H’ is:
4
30. Consider the Following conversation and answer the question 3
Person 1:- What’s your name?
Person 2:- Radha
Person 1:- What is the name of your first
school? Person 2 :- Army Public School
Person 1 :- What are your Father and Mother
name? Person 2 :- Krishna and Sarita
Person 1 :- Who is your favorite actor or
actress? Person 2 :- Amitabh
Person 1:- What is the name of your pet animal?
Person 2 :- Tommy
Person 1 :- Where were you born and
when? Person 2:- Ajmer on 15 March
2002
Person 1 :- May I use your Laptop for online banking for fees payment
Person 2 :- Sure
(i) Who may be Victim of Cyber Crime Person1, Person 2 or both?
Justifyyour answer
(ii) Who is doing Ethical Hacking person1 or person2? Justify your
Answer
(iii) Person 2 was using Key Logger software in his computer. What is it?
SECTION:
D
31. Write a Python program to input 10 numbers to store in the list and print the 2+2
third largest number. For example, if the entered numbers in the list are List
are 36, 25, 14, - 951, 75, - 85, 654, 88, 9521, 657, then output will be
The third largest number is : 654
32. What will be the output of the following code 4
i. type(34)
ii. a,
b=10,20 a,
b= b, a+b
print(a, b)
iii. a=20 + 4j
print([Link] +
[Link])
iv. print(10,20,30, sep=’*’,end=’@’)
SECTION:
E
33. What will be the output of the 5
following: (a) [11, 14, 18, 10, 15]
(b) ['P', 'Y', 'T', 'H', 'O', 'N']
(c) [Link](0,12)
(d) [Link]()
(e) [Link](14)
(f) [Link](5)
(g) [Link]()
(h) L1+L2
(i) [Link]([12,16,18])
(j) L1*2
34. A code snippet using a dictionary is shown below and What will be the output of 5
the following :
dt={“Apple”:50, “Orange”:40, “Banana”:30 ,
“Mango”:80} print(len(dt)) #Statement 1
print([Link]()) #Statement 2
print([Link]()) #Statement 3
print([Link]()) #Statement 4
print([Link]("Banana"))
#Statement5 Evaluate output of all
statements.
35. a) What do you mean by Cyber safety? 1+2+
b) What are different types of threats to computer security? 2
c) What is the need for secure password? How can one make a strong
password?
Class: XI Session: 2022-23Computer Science (083)
Answer Key Practice Paper 3 (Theory)
SECTION A
1. (a) Registers 1
2. (c) A.B.C+(B'+C').A 1
3. (c) Optical Mark Reader 1
4. (c) “Hello’ 1
5. (b) Diamond 1
6. (d) abc 1
7. c) print(str1[-11:-6]) 1
8. Identity Theft is a type of fraud that involves using someone else’s identity to steal 1
money or gain other benefits.
9. (c) key 1
1 (b) [1,2,3,4,1,2,3,4] 1
0.
1 (b) extend() 1
1.
1 (d) Report vulnerability in any system 1
2.
1 (d)All the above 1
3.
1 (b) 17 1
4.
1 India 1
5.
1 Python is an interpreted language, which means the source code of a Python 1
6. program is converted into bytecode that is then executed by the Python virtual
machine.
1 Both A and R are true and R is the correct explanation of A. 1
7.
1 (c)A is true but R is false. 1
8.
SECTION : B
1 What is output from the following ½*4=
9. code : (i)range(6) : 0,1,2,3,4,5 2
(ii)range(7,10) : 7,8,9
(iii)range(5,20,4) : 5,9,13,17
(iv)range (12,1,-2): 12,10,8,6,4,2
2 Pop() will delete last item from a list. Also displaying the deleted 1+1=
0. item. Remove() function will delete given item from list. 2
OR
[10,16]
{'Name': 'Ravi', 'Marks': 95, 'Age': 16}
2 Definition of internet security: 1 Mark 2
1. two solutions of internet security threats : ½ Marks each
2 Mutable :- That can be modified . example List 1+1=
2. Immutable :- That can not be modified . example Tuple, String 2
2 Valid : MyDiary, File123, _Clear, Mynameisking, 1+1=
3. [Link] 2
2 (i) 1. Twitter · 2. Tumblr · 3. Pinterest · 4. Instagram · 5. Facebook · 6. LinkedIn. 1+1=
4. ii) C. antivirus 2
2 c) 10,5 1+1=
5. OR 2
2
Cmue
SECTION : C
2 (29.75)10 = 11101.11 1+1+
6. (A4B)16 = 2635 1=
(1234)8 = 29C 3
2 sal=int(input("enter the salary of employee:")) #1/2 3
7. mark if (sal <=25000): #1/2 mark
b=sal*.25
elif (sal>25000 and sal <= 35000): #1/2
mark b=sal*.15
elif (sal>35000 and sal <= 50000): #1/2
mark b=sal*.10
elif (sal>50000 and sal <= 75000): #1/2
mark b=sal*.05
else:
b=0
print("Bonus will be: ",b) #1/2 mark
OR
1 mark for break+1/2 mark for example
- Break: it’s a jump statement which forces to skip the remaining
statements/ iterations of the loop and exit the loop.
Example : while(True) :
n=int(input(“enter a number and zero to
terminate”)) if(n==0):
bre
ak
print(n*
n)
1 mark for continue+1/2 mark for example
- Continue: it is just opposite to the break statement. As soon as continue is
invoked, the control will return for the next iteration of the loop.
example :
for i in range(1,5):
a= int(input(“enter first number”))
b= int(input(“enter second
number”)) c=a+b
if(c<0):
print(“ program
continues”) continue
print(“sum of two numbers:”,c)
2 Length= 4 1+1+
8. Specific Element= Kuku 1=
My List= dict_items([('RollNo', 10), ('Name', 'Kuku'), ('Class', 11), ('Age', 15)]) 3
2 [['few', ½*6=
9. 'words']] [] 3
False
['These', 'a', 'that', 'will']
['that', 'we', 'will', 'use']
['These', 'are', 'a', ['few', 'words'], 'that', 'we', 'will', 'use']
OR
"HEALPS HEALS WITHOUT
HURTING" 0
i in s:
f i=="H":
n=n
+1
nt(n)
3 (iv) Both may be the victim of Cyber Crime because these are the common 1+1+
0. security answers a normal user sets and your system can be hacked by person 2 1=
We should not do financial transaction using other’s computer because your 3
personal information may be revealed to person 1
Person 2 is doing Ethical Hacking by asking personal information
Key Logger is a software/Hardware that records you key strokes.
SECTION : D
3 #students may use their own logic 4
1. also. L=list()
for i in range (10):
k=int(input("Enter a
number :")) [Link](k)
[Link]()
print ("List is ", L)
print ("The third largest number is :", L[-3])
- 1M for inputting 10 numbers to store in list
- 2M for method for finding third largest
- 1M for printing third largest
3 Int 1*4=4
2. 20,
30
24.0
10*20*30@
SECTION :
E
3 (k) [11,14,18,10,15] ½ x10
3. (l) [‘P’, ‘Y’, ‘T’, ‘H’, ‘O’, =5
‘N’] (m)
[12,11,14,18,10,15]
(n) [10, 11, 12, 14, 15, 18]
(o) [10, 11, 12, 15, 18]
(p) [10, 11, 12, 15, 18, 5]
(q) 'N'
(r) [10, 11, 12, 15, 18, 5, 'P', 'Y', 'T', 'H', 'O']
(s) [10, 11, 12, 15, 18, 5, 12, 16, 18]
(t) [10, 11, 12, 15, 18, 5, 12, 16, 18, 10, 11, 12, 15, 18, 5, 12, 16, 18]
3 dt={“Apple”:50, “Orange”:40, “Banana”:30 , “Mango”:80} 1*5=5
4. Statement 1= 4
Statement 2 = dict_keys(['Apple', 'Orange', 'Banana', 'Mango'])
Statement 3= dict_items([('Apple', 50), ('Orange', 40), ('Banana', 30), ('Mango',
80)])
Statement 4= ('Mango',
80) Statement5=30
3 a) Cyber Safety refers to the safe and responsible use of Internet to ensure 1+2+
5. safety and 2=
security of personal information and not posing threat to anyone else’s 5
information.
b) Some common threats are:
Viruses, Spyware, Adware, Spamming, PC Intrusion (Denial of service, Sweeping,
Password guessing), Phishing
c) A strong password may be created mixing an upper-case letter, a lower-case
letter, a digit and a special symbol and the password may be changed at a frequent
time. A good combination of these mixed letters makes a strong password and
makes difficult to crack it. A strong password makes our system safe and secure.