Class XI (Computer Science)
Class XI (Computer Science)
Class-XI
Subject: Computer Science (083)
Time allowed: 3 Hours Maximum Marks: 70
General Instructions:
8. State true or false: A=4 and 4=A are interchangeably used in Python.
9. Which of the following is not a memory unit?
a. RAM b. ROM c. Register d. Bus
10. How many bytes are there in 1011 1001 0110 1110 numbers?
a. 1 b. 2 c. 4 d. 8
15. Which keyword is used to stop the loop before it has looped through all the
items?
a. Continue b. stop c. break d. exit
a. False b. True c. a d. 33
18. Assertion(A): Python has a set of built in methods that you can use on strings.
Reason(R): All string methods return new values. They do not change the original
string.
OR
Predict the output of the Python code given below:
n=5
factorial = 1
for i in range(1, n + 1):
factorial *= i
print(factorial)
26. Write a Python Program to take an input number 'n' from the user and print its square and
cube.
27. Proof the Demorgan's Laws with the help of truth tables.3
OR
28. Write a program to calculate and display the sum of all odd numbers in a list.
OR
Write a program to input 'n' numbers in a list, and find the minimum and maximum
number among 'n' numbers.
29. ASHA making a project on “Environment cleanliness” and downloading some pages
from web browser, she completed her work in three steps, so give your justification for
following steps if any ethics violates or not:
(a) She read a paragraph then she pasted it in her report with the same words.
(b) She downloaded images and pasted them in her report in the form of collage.
(c)She copied the logo of one organization related with cleanliness and pasted on front
page of her report.
30. Write two ways in which a VIRUS affects a computer system, and one way how
spyware attacks.
Section-D (8 Marks)
31. What measures should one take to maintain confidentiality of personal information?
33. Write the output for the following statements on the given string:
s= “ interesting facts”
(a) print(s.upper())
(b) print((s.split(‘ ‘ ))
(c) print(s.find(‘CTS’))
(d) print(s.index(‘e’))
OR
Write a program for checking whether the given character is uppercase, lowercase, digit,
special symbol or white space.