0% found this document useful (0 votes)
9 views9 pages

XIComp

The document is an annual examination paper for Class 11 Computer Science, consisting of five sections (A to E) with a total of 70 marks and a time limit of 3 hours. Each section includes various types of questions, including multiple choice, short answer, and programming tasks, specifically requiring Python language for coding questions. The paper covers topics such as programming concepts, logical gates, and computer security issues.

Uploaded by

magdalenesrisha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views9 pages

XIComp

The document is an annual examination paper for Class 11 Computer Science, consisting of five sections (A to E) with a total of 70 marks and a time limit of 3 hours. Each section includes various types of questions, including multiple choice, short answer, and programming tasks, specifically requiring Python language for coding questions. The paper covers topics such as programming concepts, logical gates, and computer security issues.

Uploaded by

magdalenesrisha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Annual Examination-SA2

Computer Science (083)


MaximumMarks:70 Time Allowed: 3 Hrs

Class :11

General Instructions:

1. This question paper contains fives sections, Section A to E.


2. All questions are compulsory.
3. Section A have18 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
5. Section C has 05 Short Answer type questions carrying 03 marks each. 6. Section
D has 03 Long Answer type questions carrying 05 marks each.
7. Section E has 02 questions carrying 04 marks each. One internal choice is
given in Q35 against part C only.
8. All programming questions are to be answered using Python Language only.

A
1. MS-Office is a- 1
(a) Operating Software (b) Utility program
(c) Programming language (d) Application Software
2. What is the ASCII equivalent decimal no. for ‘Y’ ? 1
a) 87 (b)88 (c) 89 (d)90
3. Hexa-Decimal of (346)10= (?)16(Show calculation) (a) 1
14B (b) 1A5 (c)15A (d) 5A1

4. Find the invalid identifier(s) from the following: 1


a) MyName b) 2ndName
c) true d) My_Name
5. Suppose tuple T is T = (10, 12, 43, 39), Find incorrect? a) 1
print(T[1]) b) T[2] = -29
c) print(max(T)) d) print(len(T))
6. What will be the result of the following code? 1
>>>d1 = {“abc” : 5, “def” : 6, “ghi” : 7}
>>>print (d1[abc])
(a) abc (b) 5 (c) {“abc”:5} (d) Error
7. Suppose list L is declared as 1
L = [5 * i for i in range (0,4)], list L is
a) [0, 1, 2, 3,] b) [0, 1, 2, 3, 4]
c) [0, 5, 10, 15] d) [0, 5, 10, 15, 20]
8. Identify declaration ofM = ‘Mon’,‘23’,‘Bye’, ’6.5’ a) 1
dictionary b) string c) tuple d) list
9. STR=”RGBCOLOR” 1
colors=list(STR)

How do we delete ‘B’ in given List colors?


(a) del colors[2] (b) colors.remove("B")
(c) colors.pop(2) (d) All of these
10. What is the value of x when this loop has been terminated: 1

x=45 while
x>0:
1
print(x) x=x-10
(a) 25 (b) 45 (c) 5 (d) -5

11. What will be the output of the following Python Code? 1


tp=(5,)
tp1=tp * 2
print(len(tp1))
(a) 0 (b) 2
(c) 1 (d) error
12. day_name= ['Mon', 'Tues', 'Wednes', 'Thursday', 'Friday', 'Saturday','Sunday'] 1
print(day_name[7]) What will be the result?
(a) Sunday (b)Saturday
(c)Error (d) Mon

13. It is a Logical Gate 1

(a) XOR
(b) NAND (c) AND (d) OR
14. Which is equivalent of (A+B)’ 1
(a) A’.B’
(b) A’+B’
(c) A.B’
(d) A’.B
15. Which is not a threat? 1
(a) Worm (b) Trojan
(c)Virus (d) E-Mail
16. What type damages can be caused by viruses to your computer? 1
(a) Damage or Delete files
(b) Slow down your computer
(c) Invade all Programmes in your Computer (d) All of these

Q17 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 for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True
17. Choose correct option: 1
A: Viruses are the malicious program. R:

Worm means Write Once Read Many.

(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True

2
18 Choose correct option: 1
. Statement 1: t1=tuple(’python’)

Statement 2: t1[4]=’z’
A: Above code will generate error Statement2: R: Tuple
is immutable by nature.
(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True
SECTION B
19 What will be the output of the following Python code? x, y=4, 2
. 2 while(x>=y): print(x, y) x=x-1 y=y+1

a) 4, 2 b) Invalid syntax c) 2, 4 d) Nothing is printed


3, 3 3, 3

20 What is the result of this statement: 2


. 10>5 and 7>12 or not 18>3
a) 10 b) True c) Falsed) None OR

What will be the output of the following Python code?


>>> 6 * 3 + 4 ** 2 // 5 - 8
a) 13 b) 14 c) Error d) None

21 Convert the following program into for loop without affecting the output. 2
. count=0 while

count<10:
print(“Hello”) print(“Good
Bye!”) count=count+1

22 What do you understand by PC intrusion? 2


.
23 What is a spam? Why has it become a big Internet issue? 2
.
24 How many times will the following for loops execute and what’s the output of this 2
. program?

for i in range(-1,-7,-2):
for j in range(3):
print(1, j)
OR

What’s the output of the following program.


fruits = { 'Apple': 100, 'Orange':
200,
'Banana': 400,
'pomegranate':600
}
if 'Apple' in fruits:
del fruits['Apple']
print('Dictionary after deleting key =',fruits)
25. Write a program to print the Fibonacci Series till n terms, where n is entered by 2
the user.
SECTION C
26. Answer the following: 3
i) Convert: (111111110101110.1101101111)2= (?)16 ii) (1+2)
Differentiate between Compiler and Interpreter.
27. Rewrite the following code in Python after removing all syntax error(s). 3
30 = To for K in
range(0, To) If K%4
==
0:
Print(K*4)
Else:
Print(K + 3)
28. Write a program to check whether the entered number is Armstrong or not. 3
29. What possible output(s) are expected to be displayed on screen at the time of 3 (1 +
execution of the program from following code? 2)
from random import randint
LST=[5,10,15,20,25,30,35,40,45,50,60,70]
first = random.randint(3,8) -1 second =
random.randint(4,9) -2 third =
random.randint(6,11) -3
print(LST[first],"#", LST[second],"#", LST[third],"#")
a) 20#25#25# b) 30#40#70#
c) 15#60#70# d) 35#40#60#
Specify the maximum values that can be assigned to each of the variables second
and third in the code given.

30. Umesh wanted to gift his brother a football or a wrist watch. So he searched for 3
many sports items and wrist watches online. But after that every time he goes(1+1+1
)
online, his web browser shows him advertisements about sports items and wrist
watches.
(a) Why is this happening?
(b) How could have Umesh avoided them?
(c) How can Umesh get rid of this now?
SECTION D
31. Write a program to search for an element in a given list of numbers. 4
32. Expand the following: - 4
i) Write the full forms of following: IPR, GPL, Proprietary (2+2)
Software, URL ii) Identify the Open Source software(s) from
the following: -
MySql, Quick Heal Antivirus, Python, Microsoft Office
SECTION E
33. Explain the following : 5
(i) What is syntax error? Give one example. (1+2

(ii) What is the difference between ‘=’ and ‘==’? Explain with the help of an +2)
example.
(iii) What do you understand by precedence of operators? What is the
precedence of arithmetic operators?
34. (2+3)

(a) Write the output of this program :


s1='Hello World!' index=0
while index< (len(s1)-3):
print(s1[index], end=' ')
index =index+ 1
OR
Write the output of this program. Justify your answer also.
my_dict={ } my_dict[1]=1 my_dict[‘1’]=2 my_dict[1.0]=4
print(my_dict)
(b)Write a Python program to create a dictionary to store names of states and
their capitals.
OR
Write a Python program to create a third dictionary from two dictionaries in the
way so that the values are shown in third dictionary.
35. Explain the following : 5
(a) How do websites track you online? (3+2)
(b) What are cookies? How are they used by websites to track you?
Write the solution for the following problem: 5

******************************

You might also like