Lions Public School Model Test Paper - Term - Ii (Session 2023-24) Subject: Computer Science
Lions Public School Model Test Paper - Term - Ii (Session 2023-24) Subject: Computer Science
______
LIONS PUBLIC SCHOOL
MODEL TEST PAPER - TERM -II [SESSION 2023-24]
SUBJECT: COMPUTER SCIENCE (083)
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
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
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.
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
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
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.
print(“Energy:”, e ,” Joule”)
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.