Comp setA&B GB
Comp setA&B GB
SETA
Science (OS.'; Maximum Marks: 70
co11tputer
·ecf: Time allowed: 3 Hours
5~bJ .~I
c1,ss' -----------------------
tructions:
1ins . .
G,ocril k this question paper contains 35 questions.
I ase chec .
, Pe is divided into 4 Sections- A, B, C, D and E.
fbe paper .
, . A consists of 18 questions (I to 18). Each question carries 1 M k
5ecUOD ' . ar •
, . B consists of 7 questions (19 to 25). Each question carries 2 Ma ks
secUOD ' . r •
• . C consists of 5 questions (26 to 30). Each question carries 3 Marks
section ' . •
• . D consists of 2 questions (31 to 32). Each question carries 4 Marks
SecUOD ' . •
• . E consists of 3 questions (33 to 35). Each question carries s Marks
• section ' . . •
ramming questions are to be answered using Python Language only •
• All prog .
Question Marks
SECTION A
1 of 7
Ill
>>>str.isupperO
a) h
b)30
c)he\\o
d)he\\030
-----
NG based questions. Marie the
ssERTION AND rt
correct
i~ i A
/.◄ :'~
tion for A
d R are true and R , t• ( orrt\ct explana
; ;,:, A R
an d R are true and • n('\' the correct explanation for A
. . . . .,,.
.,_. .... Bi,th
j\
I
1
S (R)· Th e
ReJSOD •
ng the inputO function.
and stored in the variable usi _ __ j
C T I: T IC O ~ N B B_ _ _ _ _
~ -- -- -- S S E E C
s). Underline
low in~ code in py tho n after removing all syntax error( 2
~ t e the fol
• ei1ch correction done
m the code.
er:"))
::u:n= Input(input("Enter a numb
fur in range[ I,munJ:
sum=+ i
print("Thank You']
2
cyber bullying and cyber trolls?
•• Write difference between
OR
ter securit)?
threat? \Vhat are the different types of threats to compu
\\·ha: is a 2
C
-------
- -- -------------
--
_-,--;:--::.., . the
23 ~p\ain rouowing:
(a) Phishing
(b) Eavesdropping
od
24 . enc e
Find the output o{belOW giv
n=\3
l'1o. • • range(l,n/12):
r 1m
if n¾il=O:
print("python")
break
print("byc")
OR
25 State De-Morga
n Second \aw using Tr
uth Table.
OR
Define NOR gate wi ,
th symbo\ and Truth
Table
\
SECTION C
\ 26 Wnt• e a
Program to crea te a sim
• ple calculator
perfomun
• g only four b •
I
asic operations. '
OR
Write a Program to de
l_ _ _ _ _ _ _ _ _ _ tennine whether a nu
mber is an Armstrong nu
_ _______ __-/ mber.
4 of 7
- t. •
'
f
'
~
enerate the following patterns using nested loop
progra
\\ (IIC 0
I~ ~
,AS
Jl&C
~sco
~p£ d'ffcrence between Strings and List
,·ha' is the i
OR
II \ 2
am to generate the following patterns using nested Ioop.
, ·1e aprogr
\HI
31
12345
1234
123
12
;,h tis the difference between Tuple and Dictionary
Ib) \v.acPV? What is the function of CPU in a computer system?
il'hat 1s
•
3
1 OR
;! 1
3
£~plain the different cyber crimes? (any 3)
S==5 m='"'
5 of 7
given element in the IupJe.
to search for 8
L-J1--,--:a)-Write a program
d mention its types. I 1
b) Define Tokens an
OR l
. ~
f list different from the remove function?• explain
32 a) How •ts the pop function leo
by giving asuitable examp •
b)Write a program Input a list of numbers and swap elements at the even
location with the elements at the odd location.
6 of 7
SECTION-E -
I _ --,-..___ _1
... 1-------What is Malware? What type of damages can they cause to your__
computer? 2 -
, J4 a)
b) How can we safely browse the web? 2
OR
~ tructions:
105
r~I this question paper contains 35 questions.
~ check .
p1ense . divided into 4 Sections- A, B, C, D and E.
' aper is .
, fhe P A consists of 18 questions (1 to 18). Each question carries 1 Mark
, section ' nsists of 7 questions (19 to 25). Each question carries 2 M ks.
t' on B, co . ar .
, sec~ C onsists of 5 questions (26 to 30). Each question carries 3M ks
ton ' c ar .
, sec '. 0 consists of 2 questions (31 to 32). Each question carries 4 Marks
secnon ' • (33 •
• . E consists of 3 questions to 35). Each question carries 5 Marks
' SectJOD ' • . •
ramming questions are to be answered using Python Language only •
' All prog
Question
Marks
SECTION A
~ich of the following functions will always return a string into 3 parts? I
(a) find() (b) index() (c) partition() (d) split()
~ The devices through which control signals are sent to a computer are termed as I
I _ _ _ _devices.
(a) CPU (b) memory (c) input ( d)output
1---i-----------------::------:--:-:------- ::--:--:--:--:-:-::~,117
) ,-~_ _ _ _means using another person's work, without permission to use
or without paying for it , if it is being sold.
(a) Plagiarism (b) Phishing (c) Copyright infringement (d) All of the
above
6
Which of the following will give output as (23,2,9,75]. Iflisti-[6,23,3,2,0, 9,8,75 l
(a) Print(listl [l :7:2]) (b) print(listl [0:7:2])
(c) Print(listl [l :8:2]) (d) print(listl [0:8:2])
-
1 of 7
th muUU l'-' l LI L JI.IIUO 't
p0nent of the rna
. . not a corn d pi
I wtn8 ,s . •
Which of the fol o c fabsO
7
b 111ean0
• • output:
ropr1ate
a. ceil() • dselect all apP
\_sJ-O~b-se-
. n
rv-:-;ethe give
code an
a=='hello'
t,=su{30) d)hello30
print(a+b) 30 c)hello
b) hi'nd when we visit "ny website to fil
a) h leave be I J,
·1 of data we
is the tnU .
9 - tran5acuon. .
-in-da_ta_o_rp-erform any . . (c) phish1ng (d) d.1g1ta
• lS •
octety
. (b)Plag1ansm
(a) Digital footpnnt
L_L---:---;-:-;--zi";::;;•~·~o al ber?
15 t an oct num
1O Which of the following n •
(c). 118 (d). 154
(b) 276
(a). 101 • . .
f d claration of d1ct1onary
11 Which is the correct fonn o e
(a). Year={l;'January',2;'FebruatY, ,
, 3•'March'}
a. True b. False
c. COMPUTER d. None of these
15
is a program that appears harml b
functions such as deleting or dam . fi ess, ut actually perfo
aging 1les. rms malicious
(a) Malware (b) Adware (c) T .
roJanHorse (d) All of the Above
16 What will the following expressio b
. n e evaluated to in p h ?
pnnt(l 5.0 / 4 + (8 + 3.0)) yt on.
(a) 14.75
{b)14.0
(c) 15
(d) 15.5
2 of 7
et h. -
TION AND REASONING baseId que.stions. ~lark the corr c c 01cc as
--" d R . t hc correct exp anation for A
d 1S ll•.. d Rare true an 1s
explanation for A
11
90th Aand Rare true and is not the correct
R
11 Aan
~) soth but R is False
.\ is rrue . T
c). . f lse but R is rue
fd) Ais a
~ ( A ) : The input statement is used
to get the output on the screen.
;\SScrt10D
R)· The value inputted by the user while
executing a program are fetched
(
Reason •
tion.
and stored in the variable using the inputO func
1, • I
t = (1,2,3,4,5,3,2,3,4,5,2,1)
!
i
print(t.count(2))
print(t.index(2))
OR
3 of7
q;; a>
It
11I
1111111 1111111111111/''l'ul~! ",1111 wi I
~,11,1 1I
II U
IH, 111111111Mt11),1ttn ,,
II 1111 1il· II
11 11
11111111 )1)11 l1u11 ,
h1v11k
l11~~1
111 l11l(
11
1l~e 1
11
01(
ll II 1111 lllllij~(tl )l
I
II LI l ~u~ .. n, I
I 11 l 1//· .~
II I I11% I II' I
I I1111 ' I
ll11• 1111 J i
Pl 1111(1,tillll '1//i')
Sl~CTION C
. en below code.
tpllt of g1Y
ne oll
Il~\i I I I6.35,3,4]
' 7 l1 2 •
I 11 I "'
' 5
continue
) if (i%7=0):
S\==S l +i
print(S,S 1, L. index(3 5))
OR
m="''
m = m +s(i-11
e\if (s(i).isupper()):
m = n1 + s(i}.lowerO
e\se:
m = n1 +'&'
print(m)
,._
2~81--W-h_a_t-is_C_P_l_)?_W1_1a\ is th~ function of CPU
in a computer sys,em?
OR
Whu\ ure the different t) pes of memory?
5 of 7
ott
f \Ile series
6nd s1)111 o
\l{Og¢" to
,, ·0 1e a n
1) ;t i
l +.. ••••
1 _1+i
i, 1
. an L' t
en swngs d 1s
. \)le d,ffeten
ce t,etwe -----
\ \\fha\ ,s \e ca1cu\ator performing ,, \ y four basic
b,
to ct s,in~ OR
~ritt a ~ eite a mon divisor ,c\
o~erar
th greatest corn \east cornrn \%~
l •
.....111 to colllPu
10 Write aP f( )~ te e on 1\\1111
--
\ of (WO integer.- II\
sECTlON D
. from the remove
a) How is the pop runcuon Ofr1st different function? Exp\ .
nn'\p\e a\n b)
3\ ~ving a su,·table exoi•• .
\\ wing tup\es, tuple1 and tuple2:
b) Consider the:
tup\e\ = (23 ,\, ~' 6~ ,45,9,55,45)
tup\e2 = (\00,200
F' dthe output of)th fo\lowing statements:
m . 'nt'tup\ele
1. pn ,
•index(45))\
ii. print(tup\el.cou
nt(45),
iii. print(tup\el +tu
ple2)
iv. print(\en(tuple2
))
v. print(sum(tuple
2))
vi. print(sorted(tup
lel))
OR
b) Write the functio
n name for the foll
owin
i) Function to
add alist element g task:
ii) Function to at the end of the . . .
remove all the elem ex1st1ng hst.
i\\) Function to en ts of the dictionary
count the number .
32 a) Write apy of characters in
thon program that a string.
palindrom e. reads a string and checks whet
her it is a
b)~rite aprogram
with the e\ementsInpu t alist of num
at the odd location. bers and swap elements at the
ev en \ocation
c) R~write the fol\o
1=50 wing code fragm
ent using f l
while(i>O): or oop.
print(i)
\· =5
0\ \ 2
2
. i"eM°issing Code \n the proBrrun
\\~ntc t 1 ,
, . f nu •" d "' , . . \ ,. todcre
d'
ate a dict1onury with the rni\ no
- -
n,ber of stu ents \\\ a c nss an isp \ay the nan ~ , nn
b 1cs Of students w\ \ rnc ,
(\\tlf~~ O 5
. ~,.1 mnrks a ove 7
• , , 4
5\.l)fOJ ·" 10 1c\VC
no_of_std = int{input("Enter nutnb
er of students:"))
result= _ __
for , in range( # Staten1ent \
):
# Statement 2
print("Enter Details of student No
.", i+ l)
roll_no = int(input("Ro\l No:")
)
std_name= input("Student Na
me: ")
I
marks= int(input("Marks: "))
I
resu\tlroll_no1= \
------- # Statcn1cnt 1 I
print(result)
for student in result:
if -
- - - - > 75:
# Statement 4
print(" Student's who got more \
than 7 5 marks is/ are",(resu\tlsludenq
lO\)) \
I
35 a)
What is Open Source Software
and Licensing?
b) How can we safely browse
the web?
OR
a) How to prevent Cyber crime
(Any 2 points)?
b) Wha\ are the common disab
ility issues faced while teaching
\ /using co,nputcrs'l
-l_
-------- \ ~)
-----~-
- - L \~ ._