Page 544 - Computer Science V2.0 Class 11
P. 544
7. NAND Gate can be simplified as:
a. AND followed by OR b. AND followed by NOT
c. NOT followed by AND d. OR followed by AND
8. Anju wants to add comment with her python program, which symbol she should use to add comment?
a. // b. #
c) : d. $
9. What will be the output produced on the execution of 125//25?
a. 5 b. 5.0
c. 2.5 d. none of these
10. What will be the output produced on the execution of following code segment?
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 item to a list?
a. append() b. remove()
c. pop() d. len()
13. What will be the output produced on the execution of following code segment?
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. Which one of the following will be the output produced on the execution of following code segment?
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
530 Touchpad Computer Science (Ver. 2.0)-XI

