CS Class 11 Set1
CS Class 11 Set1
General Instructions:
6 State True/False 1
(i) OR gate produces 1 as output only when all the inputs are 1.
(ii) XOR gate produces 0 as output when all inputs are 1
7 Email account, social media account or handles, online shopping 1
accounts, trademarks, patents, registered domain etc of an individual or
organization are collectively known as
a) Online identity c) Online estate b) Digital identity d) Digital
property
10 Assertion (A) : The information which was posted by you in online can 1
be seen by everyone who is online because internet is the world’s biggest
information exchange tool.
Reason (R) : Don’t give or post any personal information like your
name, address of the school/office / home, phone numbers, age, sex,
credit card details etc.
Write the statement that will merge the contents of both dictionaries?
Price = 455.75
18 A.Python has its own rules that determine its syntax. The interpreter 1
interprets the statements if it is correct as per the rules of Python.
R. This is called Runtime Error
SECTION-B
Or
22 After practicals, Atharv left the computer laboratory but forgot to sign 2
off from his email account. Later, his classmate Revaan started using
the same computer. He is now logged in as Atharv. He sends offending
email messages to a few of his classmates using Atharv’s email
account.
a) Atharv is a victim of______________
b) What steps should he take to avoid the above mentioned
problem.
23 What do you mean by 1+1
(a) IPR
(b) OSS
Or
Explain any two disability issues while teaching and using computers.
Or
SECTION-C
26 (a) Write a single line statement to swap the values of two variables 1+2
first and second.
(b) Mitali has written a code to reverse a number. Her code is having
errors. Rewrite the correct code and underline the corrections
made.
p='N'
while True:
no=int(input('Enter number:\t')
rev=0
while True
d=no%10
rev=rev*10+d
no=no//10
if no=0:
Break
print(‘Reverse Number is ‘,rev)
27 The formula E = mc2 states that the energy (E) can be calculated as the 1+1+
mass (m) multiplied by the speed of light (c = 1
3×108 m/s) squared. Write a program to
i. Input the mass of an object in kg.
ii c(speed of light) as constant.
iii find the energy.
Or
The formula F = ma states that the force(F) can be calculated
as the mass (m) multiplied by the
acceleration(a). Write a program to:
i. Input the mass of an object in kg.
ii a(acceleration of object.
iii find the force.
28 Change the following code without using the range function. str = 3
”Passive Matrix OLED”
for i in range(0, len(str)+1, 2):
print(str[i])
SECTION-D
Or
34 #Output 3 1+1+
>>> str1.index('Hello') _______________________ #Output 4 2
>>> str1.index('Hee') _______________________ #Output 5
Or
(a)print(mySubject[0:len(mySubject)])
(b) print(mySubject[-7:-1])
(c) print(mySubject[::2])
(d) print(mySubject.endswith('ion’))
(e) print(mySubject.replace('o','*'))
SECTION - E
(i) The following source taken from NCERT Book Computer Science Page
245. Based on the source answer the question below:
get(k, x )
There are two arguments (k, x) passed in ‘get( )’ method. The first argument
is the key , while the second argument is the corresponding value. If a
dictionary has a given key (k), which is equal to given value (x), it returns
the corresponding value (x) of given key (k). However, if the dictionary has
no key-value pair for a given key (k), this method returns the default values
the same as the given key value. The second argument is optional. If omitted
and the dictionary has no key equal to the given key value, then it returns
None.
Syntax:
D.get (k, x) #D dictionary, k key and x value
>>>D={'sun':'Sunday','mon':'Monday','tue':'Tuesday','wed':'Wednesday','th
u':'Thursday','fri':'Friday','sat':'Saturday'} (a) D.get(‘thu’,’friday’) (b)
D.get(‘wdd’)
(ii) The following source taken from NCERT Book Computer Science Page
220. Based on the source what will be the final value of X:
List as arguments
When a list is passed to the function, the function gets a reference to the
list. So if the function makes any changes in the list, they will be reflected
back in the list.
Or
Fill the blank so that code should print the following pattern
123
12
1
i=___ #1
while i>=__: #2
j=1
while j<i :
_________ #3
j=j+1
print()
_____ #4
35 (i) Consider a tuple T = (‘Q’, ’W’, ‘E’, ‘R’, ‘T’, ‘Y’). Identify the 1+1+
statement that will result in an error. 2
a. print(T[2])
b. T[2] = ‘U’
c. print(min(T))
d. print(len(T))
print(2 * “File” * 2)
a. 2File
b. FileFile
c. FileFileFileFile
d. 4File
a=int(input(“Enter base”))
b=int(input(“Enter power”))
s=1
for i in range(b):
s*= a
print(s)