0% found this document useful (0 votes)
436 views26 pages

Class: Xi Session: 2022-23 Computer Science (083) Practice Paper-1 (Theory) Maximummarks:70 Time Allowed: 3 Hrs General Instructions

The document contains the questions from different sections of a practice paper for class 11 computer science. It has 18 short questions in section A testing basic concepts. Section B has 7 very short answer questions. Section C contains 5 short answer questions. Section D has 3 long answer questions. Section E contains 2 questions with internal choice for one of them.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
436 views26 pages

Class: Xi Session: 2022-23 Computer Science (083) Practice Paper-1 (Theory) Maximummarks:70 Time Allowed: 3 Hrs General Instructions

The document contains the questions from different sections of a practice paper for class 11 computer science. It has 18 short questions in section A testing basic concepts. Section B has 7 very short answer questions. Section C contains 5 short answer questions. Section D has 3 long answer questions. Section E contains 2 questions with internal choice for one of them.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 26

Class: XI Session: 2022-23 Computer Science (083)

Practice Paper-1(Theory)
MaximumMarks:70 Time Allowed: 3 Hrs

General Instructions:
1. This question paper contains fives sections, Section A to E.
2. All questions are compulsory.
3. Section A have18 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
1. MS-Office is a- 1
(a) Operating Software (b) Utility program
(c) Programming language (d) Application Software
2. What is the ASCII equivalent decimal no. for ‘Y’ ? 1
a) 87 (b)88 (c) 89 (d)90
3. Hexa-Decimal of (346)10= (?)16(Show calculation) 1
(a) 14B (b) 1A5 (c)15A (d) 5A1
4. Find the invalid identifier(s) from the following: 1
a) MyName b) 2ndName
c) true d) My_Name
5. Suppose tuple T is T = (10, 12, 43, 39), Find incorrect? 1
a) print(T[1]) b) T[2] = -29
c) print(max(T)) d) print(len(T))
6. What will be the result of the following code? 1
>>>d1 = {“abc” : 5, “def” : 6, “ghi” : 7}
>>>print (d1[abc])
(a) abc (b) 5 (c) {“abc”:5} (d) Error
7. Suppose list L is declared as 1
L = [5 * i for i in range (0,4)], list L is
a) [0, 1, 2, 3,] b) [0, 1, 2, 3, 4]
c) [0, 5, 10, 15] d) [0, 5, 10, 15, 20]
8. Identify declaration of M = ‘Mon’,‘23’,‘Bye’, ’6.5’ 1
a) dictionary b) string c) tuple d) list
9. STR=”RGBCOLOR” 1
colors=list(STR)
How do we delete ‘B’ in given List colors?
(a) del colors[2] (b) colors.remove("B")
(c) colors.pop(2) (d) All of these
10. What is the value of x when this loop has been terminated: 1
x=45
while x>0:

1
print(x)
x=x-10
(a) 25 (b) 45 (c) 5 (d) -5
11. What will be the output of the following Python Code? 1
tp=(5,)
tp1=tp * 2
print(len(tp1))
(a) 0 (b) 2
(c) 1 (d) error
12. day_name= ['Mon', 'Tues', 'Wednes', 'Thursday', 'Friday', 'Saturday','Sunday'] 1
print(day_name[7])
What will be the result?
(a) Sunday (b)Saturday
(c)Error (d) Mon
13. It is a Logical Gate 1

(a) XOR (b) NAND


(c) AND (d) OR
14. Which is equivalent of (A+B)’ 1
(a) A’.B’
(b) A’+B’
(c) A.B’
(d) A’.B
15. Which is not a threat? 1
(a) Worm (b) Trojan
(c)Virus (d) E-Mail
16. What type damages can be caused by viruses to your computer? 1
(a) Damage or Delete files
(b) Slow down your computer
(c) Invade all Programmes in your Computer
(d) All of these
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
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True
17. Choose correct option: 1
A: Viruses are the malicious program.
R: Worm means Write Once Read Many.
(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True

2
18. Choose correct option: 1
Statement 1: t1=tuple(’python’)
Statement 2: t1[4]=’z’
A: Above code will generate error Statement2:
R: Tuple is immutable by nature.
(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True
SECTION B
19. What will be the output of the following Python code? 2
x, y=4, 2
while(x>=y):
print(x, y)
x=x-1
y=y+1
a) 4, 2 b) Invalid syntax c) 2, 4 d) Nothing is printed
3, 3 3, 3
20. What is the result of this statement: 2
10>5 and 7>12 or not 18>3
a) 10 b) True c) False d) None
OR

What will be the output of the following Python code?


>>> 6 * 3 + 4 ** 2 // 5 - 8
a) 13 b) 14 c) Error d) None
21. Convert the following program into for loop without affecting the output. 2
count=0
while count<10:
print(“Hello”)
print(“Good Bye!”)
count=count+1
22. What do you understand by PC intrusion? 2
23. What is a spam? Why has it become a big Internet issue? 2
24. How many times will the following for loops execute and what’s the output of 2
this program?

for i in range(-1,-7,-2):
for j in range(3):
print(1, j)
OR
What’s the output of the following program.
fruits = { 'Apple': 100,
'Orange': 200,
'Banana': 400,
'pomegranate':600 }
if 'Apple' in fruits:
del fruits['Apple']
print('Dictionary after deleting key =',fruits)
25. Write a program to print the Fibonacci Series till n terms, where n is entered 2
by the user.
SECTION C
26. Answer the following: 3
i) Convert: (111111110101110.1101101111)2= (?)16 (1+2)
ii) Differentiate between Compiler and Interpreter.
27. Rewrite the following code in Python after removing all syntax error(s). 3
30 = To
for K in range(0, To)
If K%4 == 0:
Print(K*4)
Else:
Print(K + 3)
28. Write a program to check whether the entered number is Armstrong or not. 3
29. What possible output(s) are expected to be displayed on screen at the time of 3
execution of the program from following code? (1 + 2)
from random import randint
LST=[5,10,15,20,25,30,35,40,45,50,60,70]
first = random.randint(3,8) -1
second = random.randint(4,9) -2
third = random.randint(6,11) -3
print(LST[first],"#", LST[second],"#", LST[third],"#")
a) 20#25#25# b) 30#40#70#
c) 15#60#70# d) 35#40#60#
Specify the maximum values that can be assigned to each of the variables
second and third in the code given.
30. Umesh wanted to gift his brother a football or a wrist watch. So he searched 3
for many sports items and wrist watches online. But after that every time he (1+1+1
goes online, his web browser shows him advertisements about sports items )
and wrist watches.
(a) Why is this happening?
(b) How could have Umesh avoided them?
(c) How can Umesh get rid of this now?
SECTION D
31. Write a program to search for an element in a given list of numbers. 4
32. Expand the following: - 4
i) Write the full forms of following: IPR, GPL, Proprietary Software, (2+2)
URL
ii) Identify the Open Source software(s) from the following: -
MySql, Quick Heal Antivirus, Python, Microsoft Office
SECTION E
33. Explain the following : 5
(i) What is syntax error? Give one example. (1+2
(ii) What is the difference between ‘=’ and ‘==’? Explain with the help of +2)
an example.
(iii) What do you understand by precedence of operators? What is the
precedence of arithmetic operators?
34. Write the solution for the following problem: 5
(a) Write the output of this program : (2+3)
s1='Hello World!'
index=0
while index< (len(s1)-3):
print(s1[index], end=' ')
index =index+ 1
OR
Write the output of this program. Justify your answer also.
my_dict={ }
my_dict[1]=1
my_dict[‘1’]=2
my_dict[1.0]=4
print(my_dict)
(b)Write a Python program to create a dictionary to store names of states and
their capitals.
OR
Write a Python program to create a third dictionary from two dictionaries in
the way so that the values are shown in third dictionary.
35. Explain the following : 5
(a) How do websites track you online? (3+2)
(b) What are cookies? How are they used by websites to track you?
******************************
ss: XI Session: 2022-23 Computer Science (083)
Practice Paper-2 (Theory)
Maximum Marks: 70 Time Allowed: 3

C
l
a

General Instructions:

 This question paper contains five sections, Section A to E.


 All questions are compulsory.
 Section A have 18 questions carrying 01 mark each.
 Section B has 07 Very Short Answer type questions carrying 02 marks each.
 Section C has 05 Short Answer type questions carrying 03 marks each.
 Section D has 03 Long Answer type questions carrying 05 marks each.
 Section E has 02 questions carrying 04 marks each. One internal choice is
given in Q35 against part c only.
 All programming questions are to be answered using Python Language only.
SECTION A
1. Which of following is Which of the following is the smallest unit of data in a 1
computer?
(a) Bit (b) KB (c) Nibble (d) Byte
2. Which of the following is an example of primary memory? 1
(a)Hard Disk (b)RAM
(c)Floppy Disk (c)DVD
3. A gate gives the output as 1 only if the input signal is 0. 1
(a) NOR (b) OR
(c)NOT (d) XOR
4. Given A= “[ 22,4.88,”India”, “T”]” the datatype of A is 1
(a) List (b) String (c) Dictionary (d) Tuple
5. Which of the following is a keyword in Python language? 1
(a) if (b)for
(c) int (d) all above
6. Which of following is valid identifier- 1
(a) NUM (b) 1_Num
(c) F.No (d) False
7. Which of following datatype not supported by python- 1
(a) float (b) Complex
(c) List (D) Date
8. Which of the following is a valid statement in python? 1
(a) name = “bikaner’
(b) num = 1,000
(c) a+b =c
(d) x=”30” +5
9. Which of following can be used for making a comment in python- 1
(a) & (b) # (c) @ (d) None of these

10. You should never give out which of the following on the Internet? 1
(a) Your name (b) Your age (c) Your address. (d)All of the above.
Which of the following is the best description of an 'internet troll'? 1
11.
(a) Someone who goes trolling on the internet, moving from place to place
without settling anywhere in a chat room or on a board.
(b) A funny emoticon made to look like a troll.
(c)Another name for a spammer.
(d) Someone who participates in a message board or chat with the intention to
disrupt it in some way.

12. In which of the following, a person is constantly followed/chased by another 1


person or group of several peoples?

(a) Phishing (b) Bulling (c) Stalking (d) Identity theft


13. Find the output of the following code- 1
number= [1,5,7,0,4]
print(number[2:3])
(a) [5]
(b) [7]
(c) [7,0]
(d) None of above
14. What is output of following code segment- 1
T= min(1,6,0,-3,100)
(a) 1 (b) -3 (c) 0 (d) None of above

15. Predict the output of the following code: 1


a=5
a+=100
if(a<100):
print(“false”)
else:
print(“true”)

(a) true ( b ) false (c) no output (d) none of these


16. Which of these is not a primitive or fundamental data types? 1
(a) integer ` (b) Boolean
(c) List (d) String
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
(h) Both A and R are true and R is not the correct explanation for A
(i) A is True but R is False
(j) A is false but R is True
17. Choose correct option : 1
T1=[3,9,0,1,7]
T2=[5,1,0,7,5.5]
Statement A: Output of print (len(T1)==len(T2) is True.
Statement R: method len() returns the number of elements in the list.
(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True
18. Choose correct option: 1
S1=’CoMPuter SciENce’
S1[0] =S1[0].lower()
Statement A: Above code will generate error.
Statement R: String is mutable by nature.
(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True
SECTION B
19. (a) What will be the output of the following Python code? > 2
>>> print(math.ceil(55.1))
(b) Which python module required to run above code successfully?

20. What is token ? Name various types of token. 2

OR

What will be the output of the following Python code?


>>> a=72.55
>>> b=10
>>> c=int(a+b )
>>> c
a) 72.55 b) 72 c) 82 d) None of these

21. (a) Write the output of following code segment. 2


str= “ CS and IP"
a=str.split()
print(a)

(b) Write the output of the code given below:


dict = {"stname": "Ajay", "age": 17}
dict['age'] = 27
dict['address'] = "Bikaner"
print(dict)

22. Define the term: 2


(a) Digital Footprints
(b) Cookies
23. What measures should one take to avoid and maintain confidentiality of 2
personal information?
24. Predict the output of the Python code given below: 2

fruits = ["apple",”mango”, "banana", "cherry"]


for x in fruits:
if(len(x)>5):
print(x )
OR

Predict the output of the Python code given below:

i = 1
while i < 6:
print(i)
if i == 3:
break
i += 1

25. Write a program calculate and print total and average runs scored by a 2
cricketer in 3 matches.
SECTION C
26. State De Morgan’s laws / theorems and prove using truth table. 3

27. Rewrite following code after removing errors (if any): 3


N=100
A= “Number” +5
B= 2N +20
Print(B)
28. Write a program to print following series – 3
2,4,8,16, …………….
29. Write a program to input names of 5 employee and store them in a List. Now 3
enter name of an employee and find if this employee is present in the List or
not.

30. What are common gender and disability issues faced while teaching / using 3
computers in class rooms.

SECTION D
31. Write a python program to calculate factorial of a number. 4
32. Convert the following numbers. 4
(a) ( 100111101 )2 = ( ? )8
(b) ( 127 )10 = ( ? )2
SECTION E
33. (a) Differentiate between list and tuple with example ? 5
(b) Write a python program to input 3 students name and their marks using (3+2)
dictionary. Print the dictionary also.
34. Write the solution for the following problem: 5
(a) How is random.randint(10) different from random.randrange (10)? (3+2)
(b)Write a Python program to generate a random number between 0 to 8.
35. (a) What is E-waste management? Discuss proper disposal of used electronic 5
gadgets (3+2)
(b) Write short note on IPR (Intellectual Property Right).

******************************
32 (a) 475
(b) 1111111
33 (a)List is collection of items enclosed with[]. Tuple is collection of items
enclosed with(). List is mutable . Tuple is immutable.
L=[1,4,5,6,2] is a list
T=(3,5,4,1,8) is a tuple.
(b)student={}
n=3
i=1
while(i<=n):
a=input("enter student name=")
b=input("enter marks")
student[a]=b
i=i+1
print(student)
34 (a) randint() when we want to generate a random number from an inclusive
range.
randrange() when we want to generate a random number within a range by
specifying the increment. It produces a random number from an exclusive
range.
(b) import random
a=random.randint(0,8)
print(a)
35 (a) Electronic waste or e-waste describes discarded electrical or electronic
devices. Used electronics which are destined for refurbishment, reuse, resale,
salvage recycling through material recovery, or disposal are also considered e-
waste. Informal processing of e-waste in developing countries can lead to
adverse human health effects and environmental pollution.
We should Recycle it.
(b) Intellectual property (IP) is a category of property that includes intangible
creations of the human intellect. There are many types of intellectual property,
The best-known types are copyrights, patents, trademarks, and trade secrets.
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.No Question Marks

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 code? 1
abc="6/4"
print("abc")
(a) 1 (b) 6/4 (c) 1.5 (d) abc
7. Which of the following will give "Simon" as output? 1
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 operation? 1
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 code 1
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 to 1
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 in 2
python ?
OR
What will be the output of the following python code:
(i) a = [12,14,16,18,10]
print(a[-1:1:-2])
(ii) d = {'Name':'Ravi', 'Marks':90}
e = {'Age':16, 'Marks':95}
d.update(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, Your.story, 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
OR
What will be the output of the following code
(i) List1=[13,18,16,16,13,18]
print(List1.index(16))
(ii) Strg=”computer”
print(Strg[ 0: 8 : 2]
SECTION: C
26. Convert the following numbers into their equivalent numbers. 3
(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
OR
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=Student.get("Name")
mylist=Student.items()
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[1:4:-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(a.real + a.imag)
iv. print(10,20,30, sep=’*’,end=’@’)
SECTION: E
33. What will be the output of the following: 5
(a) [11, 14, 18, 10, 15]
(b) ['P', 'Y', 'T', 'H', 'O', 'N']
(c) L1.insert(0,12)
(d) L1.sort()
(e) L1.remove(14)
(f) L1.append(5)
(g) L2.pop()
(h) L1+L2
(i) L1.extend([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(dt.keys()) #Statement 2
print(dt.items()) #Statement 3
print(dt.popitem()) #Statement 4
print(dt.get("Banana")) #Statement5
Evaluate output of all statements.

35. a) What do you mean by Cyber safety? 1+2+2


b) What are different types of threats to computer security?
c) What is the need for secure password? How can one make a strong password?
Class: XI Session: 2022-23 Computer Science (083)
Practice Paper-4 (Theory)
Maximum Marks: 70 Time Allowed: 3
hours

General Instructions:

 This question paper contains five sections, Section A to E.


 All questions are compulsory.
 Section A have 18 questions carrying 01 mark each.
 Section B has 07 Very Short Answer type questions carrying 02 marks each.
 Section C has 05 Short Answer type questions carrying 03 marks each.
 Section D has 03 Long Answer type questions carrying 05 marks each.
 Section E has 02 questions carrying 04 marks each. One internal choice
is given in Q35 against part c only.
 All programming questions are to be answered using Python Language only.

SECTION A
Q.1 MICR stands for?
(a)Maganetic Ink Character Reader (b) Maganetic Ink Code Reader
(c) Maganetic Ink Caser Reader (d) Maganetic Ink Computer Reader

Q.2 Which of the following is not an example of system software?


(a) Language Translator (b)Utility Software
(c) Communication Software (d)Word Processors

Q.3 A gate gives the output as 1 only if all the inputs signals are 1.
(a) AND (b) OR
(c)EXOR (d) NOR

Q.4 Which one of the following is the correct extension of the Python file?
(a) .py (b) .python
(c) .p (d) None of these

Q.5 Which of the following is not a keyword in Python language?


(a) for (b)if
(c) try (d) sum

Q.6 Which of the following operators is the correct option for calculating ab ?
(a) a ^ b (b) a**b
(c) a ^ ^ b (d) a ^ * b

Q.7 What is data type of L if L= [ 1,’Python’,2.5]


(a) List (b) String
(c)Dictionary (d) Tuple

Q.8 Which of the following is an invalid statement?


(a) a,b,c = 1000 (b) a,b,c = 1000 2000 3000
(c) a,b,c = 1000, 2000, 3000 (d) a_b_c = 1000

Q.9 Operators with the same precedence (except power operator) are evaluated inwhich
manner?
(a) Left to Right (b) Right to Left
(d) Can’t say (d) None of the mentioned

Q.10 IT Act of the Indian Parliament notified on


(i) 17 January 2001 (ii) 25 October 2002
(iii)17 October 2000 (iv) 25 April 2000

Q.11 What can happen when you give your personal data (email, address, photos
you post…) in exchange for free apps and services?

(i) Nothing can happen. Your data is not allowed to be passed on to anyone
(ii) It isn’t really used, it’s just compulsory to ask for that information
(iii) When giving your email you’re automatically entered in a lottery where you
can win something
(iv) Everything you do online is of value and is used by companies looking to
target their advertising

Q.12 What is the most important activity in system hacking?


(i) Information gathering (ii) Cracking passwords
(iii) Escalating privileges (iv) Covering tracks

Q.13 Find the output of the following


word=”green vegetables”
print(word.find(‘veg’,2)
(a) 8 (b) 6
(c)10 (d) 12

Q.14 Does Python supports Exit-Controlled Loop?


(a) Yes (b) No
(c) May be (d) Don’t Know

Q.15 Predict the output of the following code:


x,y=2,4
if(x+y= =10):
print(“true”)
else:
print(“false”)
(a) true (b)false (c) no output (d)none

Q.16 What keyword you use to add an alternative condition to an if statement?


(a) else if (b) false (c) elif (d) None of the above

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
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True

Q.17 Choose correct option:


D1= {’ A’:’CS’, ‘B’:’IP’}
D2= { ’B’:’IP’, ‘A’:’CS’}
A: Output of print (D1==D2) is True.
R: Dictionary is a collection of key-value pairs. It is not a sequence.
(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True

Q.18 Choose correct option:


S1=’python’
S1[0] =S1[0].upper( )
A: Above code will generate error.
R: String is mutable by nature.
(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True

SECTION B

Q.19 What will be the output of the following Python code? >
>>>a,b=6,7
>>>a,b=b,a
>>>a,b
a) (6,7) b) Invalid syntax c) (7,6) d) Nothing is printed

Q.20 What is the data type of (1)?

a) Tuple b) Integer c) List d) Both tuple and integer

OR

What will be the output of the following Python code?


>> a=(1,2)
>>> b=(3,4)
>>> c=a+b
>>> c

(a) (4,6) (b) (1,2,3,4 )


(c) Error as tuples are immutable (d) None

Q.21 Given is a Python string declaration:


(a) myexam="@@CBSE Examination 2022@@"

Write the output of: print(myexam[6:12])


(b) Write the output of the code given below:
my_dict = {"name": "Aman", "age": 26}
my_dict['age'] = 27
my_dict['address'] = "Delhi"
print(my_dict.items())

Q.22 Define the term:


(a) Cyber bullying
(b) Cyber Stalking

Q.23 What measures should one take to avoid and maintain confidentiality of
personal information?

Q.24 Predict the output of the Python code given below:


def Vari(C1,C2):
if C1>C2:
return C1-C2
else:
return C2-C1

NUMBER= [15,12,19,26,18]
for CNT in range (3,0,-1):
A=NUMBER[CNT]
B=NUMBER[CNT-1]
print(Vari(A,B),'#', end=' ')

OR

Predict the output of the Python code given below:

KV = (11, 22, 33, 44, 55 ,66)


NVS =list(KV)new_list = []
for i in KV:
if i%2==0:
new_list.append(i)
new_tuple = tuple(new_list)
print(new_tuple)

Q.25 Write a program to check a number whether it is even or odd. ?

SECTION C
Q.26 Write the truth table for given Boolean expression:
𝐸 = 𝐸. 𝐸(𝐸. 𝐸 + 𝐸¯)

Q.27 Find the error in the following code:


(a) y = x +5 (b) a=input(“Value: “) (c) print(x = y = 5)
print(x, y) b = a/2
print( a, b)
Q.28 Write a program to input temperature in Celsius and convert it into
Fahrenheit using the formula: F = C * 9 / 5 + 32

Q.29 Write a program to input names of n students and store them in a tuple.
Also, input a name from the user and find if this student is present in the
tuple or not.

Q.30 What are common gender and disability issues faced while teaching /
using computers in class rooms.
SECTION D

Q.31 Write a program to calculate digits and letters in a string.


Q.32 Convert the following number system.
( 10011111 )2 = ( ? )16 = ( ? )10 = ( ? )8

SECTION E
Q.33 Mr. Rajesh Kumar is a teacher in a school. He is doing his work manually.
As a python learner solve the problems of Rajesh Kumar by python programs:

(i) Create a dictionary student which ask Student roll number, Name and Marks of
students and display them in tabular format.
(ii) Display the names of those students who have secured marks more than 75.
(iii) Delete those students who have secured less than 50 marks

Q.34 Write the solution for the following problem:


(a) How is math. ceil (89.7) different from math. floor (89.7)?
(b)Write a Python program to generate random number between 0 and 9.

Q.35 Explain the following:

(a)What are cookies? How are they used by websites to track you?
(b)What is confidentiality of information? How do you ensure it
(c)What procedure can be carried out for proper E-Waste disposal.

******************************
Class: XI Session: 2022-23 Computer Science (083)
Practice Paper-5 (Theory)
Maximum Marks: 70 Time : 3 hours

General Instructions:

 This question paper contains five sections, Section A to E.


 All questions are compulsory.
 Section A have 18 questions carrying 01 mark each.
 Section B has 07 Very Short Answer type questions carrying 02 marks each.
 Section C has 05 Short Answer type questions carrying 03 marks each.
 Section D has 03 Long Answer type questions carrying 05 marks each.
 Section E has 02 questions carrying 04 marks each. One internal choice
isgiven in Q35 against part c only.
 All programming questions are to be answered using Python Language only.
SECTION A
1. OCR stands for? 1
(a) Optical Character Reader (b) Optical Code Reader
(c) Optical Character Recognition (d) Optical Computer Reader
2. Which one of the following is not input device? 1
b) Keyboard (b) Mouse
c) Speaker (d) Scanner
3. Which gate returns true if both inputs are similar otherwise false 1
(a) AND (b) OR
(c) EXOR (d) NOR
4. What is the output of the expression , 5*1**5 1
(a) 125 (b) 25
(c) 5 (d) 1
5. Which character is used in Python to make a single line comment? 1
(a) / (b) //
(c) * (d) #
6. Which of the following is an invalid identifier? 1
(a) my_file (b) myfile13
c) My.File (d) Myfile
7. if L= [ ‘My Score’,95.2, 2022], which data type in Python is used? 1
a. List
b. String
c. Dictionary
d. Tuple
8. Which statement is true from following- 1
a. List is immutable & Tuple is mutable
b. List is mutable & Tuple is immutable
c. Both are mutable
d. Both are immutable
9. Which type of value is returned by the input() function. 1
a. integer
b. float
c. string
d. no value

10. OSI stands for 1


a) Open Source Index
b) Open Source Image
c) Open Source Instant
d) Open Source Initiative
11. Pooja’s classmate sent her a message on Facebook “You are a Loser”. Pooja is 1
victim of :-
a) Phishing
b) Trolling
c) Cyber-bullying
d) Criticis
12. Which is not a cyber crime? 1
(i) Tracking
(ii)Phishing
(iii) Ransomware
(iv) Hacking
13. Find the output of the following 1
str=”My School”
print(str.find(‘School’,2)
(d) 4
(e) 3
(f) 7
(d) 9
14. Does Python support any empty or null statement? 1

a. Yes
b. No
c. May be
d. Don’t Know
15. Predict the output of the following code: 1
Var=5
if Var>4 OR VAR<6 AND Var==10
print(“Good”)
else:
print(“Not Good”)

a. Good b . Not Good c. no output d. none


16. Which statement is used for checking multiple conditions in Python? 1

a. else if b. if…elif c. switch d. None of the above


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
(n) Both A and R are true and R is not the correct explanation for A
(o) A is True but R is False
(p) A is false but R is True
17. Choose correct option : 1
Dic1={ ’A’:’CS’, ‘B’:’IP’}
Dic2={ ’B’:’IP’, ‘A’:’CS’}
Statement 1: Output of print (Dic1==Dic2) is True.
Statement 2: Dictionary is a collection of key-value pairs. It is not a
sequence.

18. Choose correct option: 1


Str1=’python’
Str1[0] =Str1[0].upper()
Statement 1: Above code will generate error.
Statement 2: String is mutable by nature.

SECTION B
19. What will be the output of the following Python code? 2
>>>x,y=5,10
>>>x,y=y,x
>>>x,y
20. What will be the output of the following Python code? 2
>>> a=’OK-BYE’
>>> a*=2
>>> a
21. (a) Given is a Python string declaration: 2
exam="##KVS Examination 2022##"
Write the output of: print(exam[2:6])
(b) Write the output of the code given below:
Dict1 = {"name": "RAM", "age": 26}
Dict1['age'] = 27
Dict1['address'] = "JAIPUR"
print(Dict1.items())
22. Define the term : 2
(a) Hackers
(b) Crackers
23. Name the online activities which would help you detect that your friend is 2
being cyber bulled.
24. Predict the output of the Python code given below: 2

(a) X=range(1,10,2)
for i in X:
print(i)

(b) X,Y=17,4
print (X//Y)
print(X/Y)
25. Write a Python program to input a number print its Square if it is odd, 2
otherwise print its square root. (use import math function)
SECTION C
26. Draw logic circuit for given Boolean expression: 3
F(A,B,C) = A’B+AB+B’C
27. Find the error in the following code and rewrite corrected code: 3
25=Val
for I in the range(0,Val)
if I%2==0:
print( I+1)
Else:
print (I‐1
28. Write a python program to print a sum of series up to 10 integers using for 3
loop.
29. Write a program to input a list of numbers and find the smallest and largest 3
number from the list.
30. What are the benefits of e-waste recycling? 3
SECTION D
31. Write a python program to accept a string and replace all space by ‘$’ symbol. 4
32. Convert the following number system. 4
(a) (11011.10 )2 into ()10
(b) (11100.1010)2 in to ()16
(c) (10AF)16 into ()2
(d) (A42)16 into ()8
SECTION E
33. Write a program to create a dictionary to input total number of sections and 5
class teacher’s name of a class 11 and display all information on the output
screen.
34. Which string method is used to implement the following: 5
a. To count the number of characters in the string
b. To change the first character of the string in capital letter
c. To change lowercase to uppercase letter
d. To check whether the given character is letter or a number
e. To replace all the occurrences of the old string with the new string.
35. Explain the following: 5
Open-Source Software and Proprietary Software
OR
Active and Passive digital footprint

******************************

You might also like