[go: up one dir, main page]

0% found this document useful (0 votes)
27 views5 pages

Class 11

The document is an examination paper for Class XI Computer Science with a maximum score of 70 marks and a duration of 3 hours. It consists of five sections (A to E) with various types of questions including multiple choice, short answer, and programming tasks, all requiring answers in Python. The paper covers topics such as data types, logic gates, data protection, and includes practical coding exercises.

Uploaded by

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

Class 11

The document is an examination paper for Class XI Computer Science with a maximum score of 70 marks and a duration of 3 hours. It consists of five sections (A to E) with various types of questions including multiple choice, short answer, and programming tasks, all requiring answers in Python. The paper covers topics such as data types, logic gates, data protection, and includes practical coding exercises.

Uploaded by

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

Rameshwaram International Academy

Annual Examinations
Class - XI
Computer Science(083)
Maximum Marks: 70 Time Allowed: 3 hours
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 1 mark each.
4. Section B has 07 Very Short Answer type questions carrying 2 marks each.
5. Section C has 05 Short Answer type questions carrying 3 marks each.
6. Section D has 03 Long Answer type questions carrying 5 marks each.
7. Section E has 02 questions carrying 4 marks each.
8. All programming questions are to be answered using Python Language only.
SECTION A

1 Evaluate the following expression in Python: 1


print( 17//2 * 3 + 10.0)
a. 34.5 b. 34.0 c. 25.0 d. 34

2 Which of the following is an invalid datatype in Python? 1


a. set b. None c. int d. Real

3 What will be the output of the following code: 1


NumLst = [2,5,1,7]
print(NumLst * 2)
a. [2,5,1,7,2,5,1,7]
b. [2,5,1,7][2,5,17]
c. [4,10,2,14]
d. Error

4 Consider the given expression: 1


False or not False and True
Which of the following will be the correct output if the given expression is
evaluated?

a. None
b. 1
c. False
d. True

5 Which of the following is a function of the math Module? 1


a. random()
b. mean()
c. floor()
d. median()

6 ________________ is a software with source code that anyone can inspect, 1


modify, and enhance.
a. Operating system
b. Utility software
c. Compiler
d. Open Source

#1/5
7 The operator ‘and’ is a ____________operator in Python ? 1
a. Logical
b. Relational
c. Arithmetic
d. Augmented

8 Which of the following outputs is the correct option for the code shown here ? 1
STR='TEXT CONTENT'
print(STR.strip('T'))
a. EX CONEN
b. EX CONTEN
c. EXT CONTEN
d. TEXT CONTEN

9 ________________is a cyber attack, also known as sniffing. 1


a. Virus
b. Phishing
c. Spam
d. Eavesdropping

10 Which of the following is a Logic Gate? 1


a. not
b. in
c. between
d. like

11 Which of the following is the correct way to make a copy of a dictionary D ? 1


a. D1=D
b. D1+=D
c. D1=D.copy()
d. D1=D.assign()

12 Which of the following operators displays the remainder with integers ? 1


a. **
b. %
c. //
d. +

13 Which of the following is an example of system software ? 1


a. Open office
b. Windows
c. Antivirus
d. Firefox
14 Consider the following statement: 1
Grade={10:'A', 30:'C', 20:'B'}
Which of the following is the correct option to display the sorted list of the keys
in the dictionary Grade in ascending order ?
a. print(sort(Grade.keys()))
b. print(Grade.sort())
c. print(sorted(Grade))
d. print(sort(Grade))

#2/5
15 ________________are visitors who leave inflammatory comments in public 1
comment sections.
a. Cyber Trolls
b. Hackers
c. Digital footprints
d. Confidentiality

16 What will be the output of the given code? 1


import math
math.floor(26.5)

a. 25
b. 26
c. 27
d. 26.5

Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct
choice as
a. A is True and R is the correct explanation for A
b. A is True but 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 Assertion(A): The Python statement "SPLITTED STRINGS".split("S") will 1


return ['PLITTED ', 'TRING']

Reason (R): The split() method returns a list of words separated at the
parameter sent.

18 Assertion (A):- The expression sorted('TEXT') in Python will give Error. 1

Reasoning (R):- String is an immutable type in Python.

SECTION B

19 Rewrite the following logic using a while loop without making any change in the 2
expected output:
L=[3]
for I in range(5):
L.append((I+1)*5)
print(L)

20 Rewrite the following code after removing all the syntax errors with each of the 2
corrections underlined:
n=int(input("Enter number to check :: ")
for i in range (2, n//2):
if n%i=0:
print("Number is not prime \n")
break
else
print("Number is prime \n’)

21 Differentiate between copyrights and trademarks. 2

#3/5
22 Write the output of the Python code given below: 2
L=[123,155,"b",128,160,"A"]
for R in range(1,len(L)):
if not(str(L[R]).isalpha()) and L[R]%10==12:
L[R]= L[R+1]
elif str(L[R]).isalpha():
L[R]=ord(L[R])+2
else:
print(L[R],end=" ")
print()
print(L)

23 Write the results of the following: 2


a. print(6 * 15 - 2 // 7 - 2 * 3)
b. print(12 * 3 + 43 - 2 + 5 % 2)

24 Write the output of the Python code given below: 2


D=('SUN','MON','TUE','WED','THU','FRI','SAT')
L=D[1:len(D)-1]
print('#'.join(L))
OR
Write the output of the Python code given below:
D={'Grapes':50,'Mango':70,'Banana':20}
print(sorted(D))

25 Draw a logic circuit equivalent for the following Boolean Expression: 2


A’ + B’ + C’
OR
Draw a logic circuit equivalent for the following Boolean Expression:
(A’.B’)+ C’

SECTION C

26 What is Data Protection? Give any two ways to protect your data online. 3
OR
Define the following terms :
a) Ransomware
b) Cyber Crime

27 Give any three basic rules of netiquette to avoid damaging your online as well as 3
offline relationships.

28 Differentiate between split() and partition() in Python. Give suitable examples of 3


each.

29 Write a Python code to accept a number and display its factors. The process 3
should continue till the user wants.
For Example
Enter N: 10
Factors: 1,2,5,10

#4/5
30 Write a python program to create a dictionary STUDENT containing StudentNames 3
as keys and corresponding Marks as values. The program should create a list
STUD, of those StudentNames for which Marks is less than 33.
OR
Write a Python code to accept a string from the user , find and display the counts
of special characters, alphabets and digits present in it.

SECTION D

31 Write a Python code to 5


● Input 10 integers into a list NUM.
● Display all the multiple of 5 from the list NUM
● Display the highest and lowest integer from the the list NUM
● Display the list NUM in the ascending order.

32 Write a Python code to 5


● Input Name of 5 subjects in the tuple SUB
● Input the Marks of these 5 subject in a list MARKS
● Create a dictionary RECORD and store the SUB as KEY with MARKS as VALUE
in the dictionary RECORD.
● Display the Dictionary RECORD.

33 Convert the following from one number system to another ( show the complete 5
working ) :
a. (512)10 = ( )2
b. (10010111)2 = ( )10
c. (451)8 = ( )16
d. (111001101)2 = ( )8
e. (175)10 = ( )8

SECTION E

34 Write single line Python commands to perform each of the following operations: 4
QUOTE="Life is beautiful"
● Display the length of the string QUOTE.
● Display the reverse of the string QUOTE.
● Display the count of 'i' from the string QUOTE
● Display the substring 'beauti' from the string QUOTE.

35 Write a python code to accept values of X as float and N as int, find and display 4
the sum of following series:
(a) 1 + 4 + 7 + ... upto N
(b) 1/X1 + 1/X2+ 1/X3... upto Nth Terms

#5/5

You might also like