Class 11 Computer Science Sample Paper MCQ based Term 2 Set-1

Class 11 Computer Science Sample Paper MCQ based Term 2 Set-1

 

Term 2 Examination 2021-22

Class-XI

Time:- 1.5 Hours Max. Mark:35

 

General instructions:-

1. This Question Paper Contains 4 Parts A,B,C,D.

2. Attempt 11 questions in Part-A and all questions in Part-B, C and D.

3. Each Question in Part A carry 1 Mark, in Part B, C and D carry 2 Marks.

 

Part-A

Simple MCQ Based Questions

1. Which of the following statement will create list?

a) L1=list( )

b) L1=[1,2,3,4]

c) Both of the above

d) None of the above

 

2. Write the output of the following code:

>>L=[1,2,3,4,5,[6,7,8]]

>>print(L[5])

a) [6, 7, 8]

b) 6, 7, 8

c) Error

d) 6

 

3. Write the output of the following code:

L=[1,2,3,4,5] for i in L:

print(i,end=” “)

i=i+1

a) 1, 2, 3, 4, 5

b) 1, 3, 5

c) Error

d) None of the above

 

4. In tuples values are enclosed in _________________

a) Square brackets

b) Curly brackets

c) Parenthesis

d) None of the above

 

5. Write the output of the following.

A = tuple(“Python”)

print(A)

a) (python)

b) (“Python”)

c) (‘P’ , ‘y’ , ‘t’ , ‘h’ , ‘o’ , ‘n’)

d) None of the above

 

6. Write the output of the following.

a=(23,34,65,20,5)

print(a[0]+a.index(5))

a) 28

b) 29

c) 27

d) 26

 

7. Dictionaries in python are _________________.

a) Mutable data type

b) Non-Mutable data type

c) Mapping data type

d) Both a and c

 

8. Write the output of the following :

d1 = {“a” : 50, “b” : 50}

d2 = {“a” : 500, “b” : 50}

print(d1 > d2)

a) True

b) False

c) Error

d) None of the above

 

9. Which of the following is feature of Dictionary?

a) Keys are unique within a dictionary.

b) Keys must be of an immutable data type.

c) Dictionary is mutable.

d) All of the above

 

10. Which of the statements is used to import all names from a module into the current calling module?

a) import

b) from

c) import *

d) dir()

 

11. Which of the following random module functions generates an integer?

a) random()

b) randint()

c) uniform()

d) all of these

 

12. Digital footprints are also known as _____________

a) Digital data

b) Plagiarism

c) Digital tattoos

d) Digital print

 

13. Anyone who uses digital technology along with Internet is a ____

a) Digital citizen

b) Netizen

c) Both of the above

d) None of the above

 

14. Online posting of rumours, giving threats online, posting the victim’s personal information, comments aimed to publicly ridicule a victim is termed as __________

a) Cyber bullying

b) Cyber crime

c) Cyber insult

d) All of the above

 

15. _______ is a person who deliberately sows discord on the Internet by starting quarrels or upsetting people, by posting inflammatory or off topic messages in an online community.

a) Netizen

b) Digital Citizen

c) Internet troll

d) None of the above

 

PART-B

Reasoning Assertion Based Questions

Choose the correct statement

Assertion (A) : Items in dictionaries are unordered.

Reason (R) : We may not get back the data in the same order in which we had entered the data initially in the dictionary.

a) A is true but R is false

b) A is false but R is true

c) Both A and R are false

d) Both A and R are true and R is the correct explanation of A

 

17. Choose the correct statement

Assertion (A) : Digital footprint is the trail of data we leave behind when we visit any website (or use any online application or portal) to fill-in data or perform any transaction.

Reason (R) : While online, all of us need to be aware of how to conduct ourselves, how best to relate with others and what ethics, morals and values to maintain.

a) Both A and R are true and R is the correct explanation of A

b) Both A and R are true but R is not the correct explanation of A

c) A is true but R is false

d) A is false but R is true E. Both A and R are false

 

18. Choose the correct statement

Assertion (A) and another are labelled as Reason(R):

Assertion (A): Code of the software will be protected by a copyright

Reason(R): Copyright grants legal rights to creators for their original works like writing, photograph, audio recordings, video, sculptures, architectural works, computer software, and other creative works like literary and artistic work.

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. (R) Is False

d) (A) is False. (R) Is True

 

19. Assertion (A): We cannot access more than one element of Series without slicing .

Reason (R): More than one element of series can be accessed using a list of positional index or labeled index.

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.

e) Both A and R are false.

 

20. Read Statements 1 and 2 and select correct option

Statement 1: Harassing using modern technologies like internet etc., is called Cyber Bullying

Statement 2: Cyber Bullying is not a Cybercrime

a) Both Statements 1 and 2 are True

b) Statement 1 is True but Statement 2 is False

c) Both Statements 1 and 2 are False

d) Statement 1 is False but Statement 2 is True

 

21. Choose the correct statement :

Statement A : Dictionaries are mutable.

Statement B : Contents of the dictionary can not changed after it has been created

a) Statement A is True

b) Statement B is True

c) Both the statements are True

d) Statement A is True and Statement B is False

 

PART-C

(CASE STUDY Based Questions)

22. Lalit is a game programmer and he is designing a game where he has to use different python functions as much as possible. Apart from other things, following functionalities are to be implemented in the game.

(1) He is simulating a dice where random number generation is required.

(2) Since the program becomes too lengthy, Lalit wants a separate section where he can store all the functions used in the game program.

Lalit is feeling difficulty in implementing the above functionalities. Help him by giving answers following questions:

 

i) To implement functionality (1) which module can be used:

a) random

b) randomise

c) randint

d) math

 

ii) In functionality (2), Lalit should use

a) in-built functions

b) He should write another Python program

c) He should use a module with all the required functions

d) He should make a separate section in the same Python program

 

23. One student who is learning Python, is making a function-based program to find the roots of a quadratic equation. He wrote the program but he is getting some error. Help him to complete the task successfully:

from ……… import sqrt LINE-1

Def quad(b,c,a=1): LINE-2

x = b*b-4*a*c 4 LINE-3

if x < 0: LINE-4

return “Sorry,complex root(s)” LINE-5

d = sqrt(x) LINE-6

r1 = (-b + d)/(2*a) LINE-7

r2 = (-b – d)/(2*a) LINE-8

return r1,r2 LINE-9

print(quad(1,1,2)) LINE-10

root = quad(3) LINE-11

rt = quad(2,1) LINE-12

 

i) Which python module should be used in line 1

a) random

b) CMath

c) math

d) Either (b) or (c)

 

ii) Which statement is correct with reference to above program

a) Two return statements are used and a function can use only one return statement

b) Required module is not given

c) Syntax error in line 4

d) Error in line 11

 

Part-D

Critical and Creative Thinking Based Question

 

24. Write the output of the following:

T = [1,2,3,4]

T1=T

T[0] = “A”

print(T)

print(T1)

a) [‘A’, 2, 3, 4]

[1,2,3,4]

 

b) [‘A’, 2, 3, 4]

[‘A’, 2, 3, 4]

 

c) [1, 2, 3, 4]

[1, 2, 3, 4]

 

d) Error

 

25. Write the output of the following:

a=(6,8,9,”Sumanta”,1)

for i in a:

print(str(i)*2)

a) 66

88

99

SumantaSumanta

 

b) 66

88

88

Error

 

c) Error

 

d)66

88

99

SumantaSumanta

Error

 

 

26. Which of the following will give output as [23,2,9,75] .

If L=[6,23,3,2,0,9,8,75]

a) print(list1[1:7:2])

b) print(list1[0:7:2])

c) print(list1[1:8:2])

d) print(list1[0:8:2])

 

27. Predict the output:

List1=[13, 18, 11, 16, 13, 18, 13]

print(List1.index(18))

print(List1.count(18))

List1.append(List1.count(13))

print(List1)

a) 1

2

[13,18,11,16,13,18,13,3] 

b) 2

2

[13,18,11,16,13,18,13]

c) Any of the above

d) None of these

Leave a Reply

Your email address will not be published. Required fields are marked *