Page 465 - Computer Science Class 11 With Functions
P. 465
8. Anju wants to add comment with her python program , which symbol she will use to add comment.
a. // b. #
c) “’ d. $
9. What is the value of the expression 125//25?
a. 5 b. 5.0
c. 2.5 d. none of these
10. What will the following code result as?
import math
x=144
print (x > 0 and math.sqrt(x))
a. True b. 1
c. 10 d. 10.0
11. Function range(5) is equivalent to :
a. range(1,5) b. range(0,5)
c. range(0,5,2) d. range(1,5,0)
12. Which of the following can add only one value to a list?
a. append() b. remove()
c. pop() d. len()
13. What is the output produced when this code executes?
a=0
for i in range(4,8):
if i %2==0:
a=a+i
print(a)
a. 4 b. 8
c. 10 d. 18
14. Select the correct output of the following String operators.
str1='One'
print(str1[:3]+'Two' +str1[-3:])
a. OneOneTwo b. TwoOneOne
c. OneTwoOne d. Error
15. Firewalls are used to protect against___________.
a. Data Driven attacks b. Fire attacks
c. Virus Attacks d. Unauthorized access
16. Which of the following is not a cyber crime?
a. Scam b. Phishing
c. Child Pornography d. Downvote a social media post
Practice Paper 2 (Unsolved) 463

