0% found this document useful (0 votes)
100 views7 pages

Lions Public School Model Test Paper - Term - Ii (Session 2023-24) Subject: Computer Science

This document is a model test paper for class 11 computer science students. It contains 5 sections (A to E) with multiple choice and programming questions. Section A has 18 one-mark questions. Section B has 7 two-mark questions. Section C has 5 three-mark questions. Section D has 2 four-mark questions. Section E has 3 five-mark questions involving programming. All questions are compulsory and programming questions must be answered in Python.
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)
100 views7 pages

Lions Public School Model Test Paper - Term - Ii (Session 2023-24) Subject: Computer Science

This document is a model test paper for class 11 computer science students. It contains 5 sections (A to E) with multiple choice and programming questions. Section A has 18 one-mark questions. Section B has 7 two-mark questions. Section C has 5 three-mark questions. Section D has 2 four-mark questions. Section E has 3 five-mark questions involving programming. All questions are compulsory and programming questions must be answered in Python.
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/ 7

NAME _____________________________ CLASS XI SEC ______ ROLL NO.

______
LIONS PUBLIC SCHOOL
MODEL TEST PAPER - TERM -II [SESSION 2023-24]
SUBJECT: COMPUTER SCIENCE (083)

TIME: 3 HOURS M.M: 70


TOTAL NO. OF PRINTED PAGES - 5

1. This question paper has 5 pages.


2. This question paper contains five sections, Section A to E.
3. All questions are compulsory.
4. Section A has 18 questions carrying 01 mark each.
5. Section B has 07 Very Short Answer questions carrying 02 marks each.
6. Section C has 05 Short Answer type questions carrying 03 marks each.
7. Section D has 02 questions carrying 04 marks each.
8. Section E has 03 Long Answer type questions carrying 05 marks each.
9. All programming questions are to be answered in Python Language only.

SECTION – A
1. The physical components of computer system are known as
a) Software c) Human ware
b) Hardware d) Drivers
2. 8 bits makes
a) 1 Byte c) 1 MB
b) 1 KB d) 1 Nibble
3. Which of the following is not a logical gate?
a) AND c) NOT
b) OR d) NONE
4. When python was developed?
c) 1992
a) 1990
d) 1993
b) 1991

5. To run python program which of the following key is used?


a) Ctrl + F5
c) Ctrl + F9
b) Alt + F5
d) F5

MTP/T–II / COMPUTER SCIENCE /1


6. Which of the following is not a python token?
a) Keyword b) List c) Operators d) Literals
7. What will be the output of the following code segment?

a,b=5,6

b,a=a,b
print(a,”+”,b)

a) 5 + 6 b) 6 + 5 c) 11 d) None

8. Kriza wants to divide a number and store the result without decimal places into an integer
variable. Suggest her an appropriate operator from the following:
a) / c) //
b) % d) Both a) & b)
9. What will be the output of following code:

if True:
print(“true”)
else:
print(“false”)
c) true
a) True
d) false
b) False

10. Dhyana wants to terminates the while loop at the end of program. Suggest her a suitable keyword
from the following:
a) terminate c) continue
b) break d) stop

11. Observe the given code and select an appropriate output:


a=’hello’
b=str(30)
print(a+b)
a) h c) 30
b) hello d) hello30

12. Rudra wants to access a second last list element of list object L. Help him to select an
appropriate option to accomplish his task.

a) L[2] b) L[-2] c) L[len(l)-2] d) L-2

MTP/T–II / COMPUTER SCIENCE /1


13. Consider these statements:
a=56,78,32,12
print(type(a))
What will be the output?
a) <class ‘int’> b) <class ‘tuple’> c) <class ‘list’> d) <class ‘str’>

14. Observe the given declarations:


1. d={} b) d=dict() c) d=Dict() d) d=dict.fromkeys()
Which of the following are correct ways to create an empty dictionary?
a) i and ii
c) i,iii and iv
b) i,ii and iv
d) i and iii
15. Jay forgot to sign off from his email account on his laptop. Later, his classmate Rishi started using
the same computer. He is now logged in as Jay. He sends inflammatory email messages to few of his
classmates using Jay’s email account. Rishi’s activity is an example of which of the following
cybercrime? Justify your answer.
a) Hacking b) Identity theft c) Cyber bullying d) Plagiarism
16. Which act protects against cybercrime in India?
a) Indian IT Act b) India Computer Security Act
c) Indian Cyber Law d) Indian Data Security Law

17 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 (A)
(B) Both (A) and (R) are true and R is not the correct explanation (A)
(C) (A) is True but (R) is False
(D) (A) is false but (R) is True

17.
Assertion(A): Data submitted online intentionally known as active digital foot print.
Reasoning(R): Active digital footprints includes emails, replies, comments or posts
made on different websites or apps.

18. Assertion(A): Python lists allows to modify their elements by indexes easily.
Reasoning(R): Python lists are mutable.
SECTION - B

19. Convert the following binary numbers to as directed:


a) (1011011)16 b) (11110011)8 c) (1010101)16 d) (10010011)8

20. Prepare a truth table for the following equation:


a) (A+B)’C b) A’+B’C’

MTP/T–II / COMPUTER SCIENCE /2


21. Pranjal has given following symbols and word to identify which types of tokens
are they, help her to identify them:
1. if b) r_no c) and d) ‘True’

22. Predict the output of following code:


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

23. Predict the output of the following code:


d={ }
d[1]=1
d['1']=2
d[1.0]=3
d.setdefault('1.0',4)
print(d)

24. a) What is eavesdropping? What is phishing?


b) What do you mean by spam? What is WORM?

25. What is trademark? How it is used to protect the material?


SECTION C

26. Write the output of the following :


L=[ ]
L1 = [ ]
L2 = [ ]
for i in range (16,10):
L.append(i)
for i in range (20,4,-2):
L1.append(i)
for i in range (len(L1)):
L2.append(L[i]+L1[i])
L2.append(len(L)-len[L1])
print(L2)

27. Rewrite the correct program and underline the errors :


d1=dict[ ]
i=1
n = input(“Enter number of records :”)
while i <=n :
a= input(“Enter name of the student:”)
b= input(“Enter phone number of the Employee :”)
d1(a)=b
i = i +1
l =d1.key[ ]
for i in l :
print(i, ‘\t’,’dl[i]’)
MTP/T–II / COMPUTER SCIENCE /3
28. Write a program in Python that will work as general purpose calculator?

29. Write a program in Python that accepts a string as input and removes all the vowels from that
string. Also the program should print the changed string.

30. Harsh wanted to gift his friends on his birthday. So he searched for many items online. But after
that every time he goes online, his web browser shows him advertisements about sports items and wrist
watches.
a) These ads are shown based on what?
b) How can Harsh get rid of this now?
c) Help Harsh by suggesting the risk of sharing his data online.
SECTION D
31. Write a python program to input names of ‘n’ employees and their basic .
Calculate house rent (30% of basic salary ) , conveyance allowance(1% of basic salary),
PF(9% of basic salary) and (gross salary = basic salary + house rent + conveyance allowance - PF).
Also display all the details.
32. Predict the output of the given code:

SECTION E

33. Observe the code given below to display binary equivalent number for entered value.
Complete the code by filling the gaps:
n=int(input("enter a three digit number:"))
b=0
i=0
____________ #Statement 1
___________ #Statement 2

___________ #Statement 3
___________ #Statement 4

i=i+1
______________________ #Statement 5

i. Write Statement to start the iteration 1 – Statement 1


ii. Write a statement to get remainder for base value required for converting number into binary – Statement 2
iii. Write a statement to add remainder multiplied by power of position of the number - Statement 3
iv. Write the statement to get the value dividing by 2 – Statement 4
v. Write print statement to print the message and equivalent binary number as “Binary Equivalent of 3 is 0011”

34. Consider the code given below to compute energy through mass m multiplied by the
speed of light (c=3*108). Fill in the gaps as given in statements.

MTP/T–II / COMPUTER SCIENCE /4


import ___________ #Statement 1
m=_________________ #Statement 2
c= _____________ #Statement 3
e=_______________ #Statement 4

print(“Energy:”, e ,” Joule”)

i. Write a statement to import the required module to compute power


ii. Write a statement to accept floating point value for mass
iii. Write a statement to compute c as speed of light as given formula. Use a function
to compute the power.
iv. Write a statement to compute the energy as e = mc2

35. Write a program to enter names of employees and their salaries as input and store them in a dictionary. Here
employees name taken as key and salaries consider as value in dictionary.

OR

Write a program to enter the element in list and divide the elements of a list into two halves and interchange the
elements of the list such that the first half and second half are exchanged.

Example: If list is lst = [10,20,30,40,50,60,70,80]

Then new list is [50,60,70,80, 10,20,30,40]

MTP/T–II / COMPUTER SCIENCE /5

You might also like