[go: up one dir, main page]

0% found this document useful (0 votes)
10 views14 pages

Comp setA&B GB

This document is an examination paper for a Science subject at the International Indian School, Dammam, scheduled for March 2024. It consists of 35 questions divided into five sections, with varying marks assigned to each section, and requires answers to be provided using Python language. The paper covers topics related to programming, computer science concepts, and practical coding tasks.

Uploaded by

a.muntazir7ali
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)
10 views14 pages

Comp setA&B GB

This document is an examination paper for a Science subject at the International Indian School, Dammam, scheduled for March 2024. It consists of 35 questions divided into five sections, with varying marks assigned to each section, and requires answers to be provided using Python language. The paper covers topics related to programming, computer science concepts, and practical coding tasks.

Uploaded by

a.muntazir7ali
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/ 14

NTERNATlUNA' INDIAN SCHOOL, DAMM

I . ' ,;,x MIN AM.


GULF SAI-IOll.\ '·A"-' A ATION (MARCH 2024)

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

. h f the following is not an octal number?


Wh1c o
(a). 101 (b). 181 (c). 276 (d). 154

i Which of the following is an invalid identifier in Python?

(a) per%marks (b) _for (c) While (d) true

I 3 Which is the correct form of declaration of dictionary


(a). Year= {I;'January',2; 'February' ,3; 'March'}

(b). Year={ I:'January',2:'February',3:'March'}

(c). Year=(l ;'January',2;'February',3 ;'March')

(d). Year={ I:'January',2;'February\3 :'March'}


4 Which of the following functions will always return a string into 3 parts?
(a) find() (b) index() (c) partition() (d) split()
5
Slate True or False

"Pyth0 n is a case sensitive language True or False?."


In Which I ct· ,
year n 1a s IT Act came into existence?
(a)
20
oo (b) 2001 (c) 2002 ( d) 2003

1 of 7
Ill

. another Person's work. withl)\.lt Pe .


m~
..an s us ing \d l'rniss·
. fit tS \)C•l 0gso • IQn t
7 , t pa) 1t , I ~
or ,~,th<>U Co py rig
, f · ti~
h' hing (c) ht m nn gemtn, (d) Al\
. (b) p is
p\a~ansm .c . - af th
(a) .
. wi\\ g,ve outp ut as (23,2,9,75). lf h.J. -(6,23,3 I! a¾v
2
g Wluc
. h of the fo\\ow,ng
(b) print(list I (0:7:2 , ,0,9,g ~-
1) 11
(a) print{listI[I:7:i\) •1
(d) print(\ist I (0: 8:21
\I . \(\ ·8·
(c) pnntQ1st • •21)
\
'

hwhich contrO s1.gna\s are sent to a compute-r are tenn


1 -n. devices throug
' "c dev,c. es. ect as
- - - - -(b)mem ( d)output
or)' (c) in_
put_ _ _ _
(a)CPU _ _ _ _ __
bit encoding schema.
\o ,sell uses an - -
- () 7
(b) 8 (d)l6
-
_.l-(-a)__~=
31 c
Fo\\owing set of commands are executed in she\\, w
\\ hat will be the
1
output?
>>>str-"computer II

>>>str.isupperO

a. 1 rue b. Fa\se c. COMPUTER


d• N
\2 Which of the fo\\ow one of these
ing is not a component of
the math module in
Python?
ILJ_a._ce_H_O_b_._m
e_an_o--:-_ _c._fa-;-b
-s()~---;--,---d-:.:- -- p i7
13 is a program that appear -~ -- -- = -: -- -- -
-
functi-
s harmless, but actually
performs malicious
ons such as deleting or da
maging files.
(a) Ma\ware (b) Adwa
re (c) TrojanHorse
(d) A\\ of the Above
I \4 What wi\\ the fo\\owi
ng expression be evalua
ted to in Python? \
print(\ 5.0 / 4t (8 + 3.0
))
(a) 14•75 (b)l4.0
\s (c) 15 (d) 15.5
. d . th
is e trai\ of data we lea
m ata or perform any tra ve behind when we
nsaction. visit any website to fill-
'
(a) Digita\ footprint
(b) J\ • .
t ag1ansm
(c) Phishing (d) di
gital Society
\ 6 Obsef\ ethe g iv
a='hel\o' e n ~ c ;- ;o
n select andap~preop-;riaa ~ d ~ :: -= -: -- -- :- -- --
te output: -- -- ~
b==str(30)
\
\ print(a+b)

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\

• s' B,,th A anbut R is False


\., rrue
==~=------
. ·,. . T
:l ~ ~, but R 1s rue -~tio· naries are unordered. - - -
, 15 false
• n (A) : 1te111s •m ~J1c
;~rrioo(A): Asser tio
h'
data in the same order·in w •ch we had
(R) • We ma y no t ge t ba ck the
• • . .. .
ReJ.500 • m1t1ally m the dictionary.
entered the data
th
• (A)·• The input statemen
t is used to get the output on e screen.
_ustrt1on a"" "'
user while executing a proor.:
va lue inp utted by the e• ~" are 1etched

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('' Sum of series" sum)

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

•• Write the output of the


following Python code
t = (l ,2,3,4,5,3,2,3,4,5
,2,1)
print(tcount(2))
print(tindex(2))
OR
giv en below:
,i.-:::e t:ie ourput of the code
'"C:u='green "egetabJes'
; ~-·, ·.;. c.ra. find(' g' ,2)) --- --- --~ =" '~
~- ~f i~ nd ~( '~ ta ~b ~' ,2 :,~ 15 ~) )~ --- ---
_: :~ -~ -'. "~ .:t ~w ~o rd
__
-- ::. C-:::,en the following:
. , ~:_, '25J.: = l ?):
logical circuit:
,) \\ r.:.: e~uarjon for following

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

Write the output of b following code


t e :
L = (25,8,75, 121
for i in range(4):
if L(i1%5 = O:
L(i]//=S
if L(i}%3 = 0:
L(i)//=3
for i in L:
print(i,end=''#")

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

What are the different types of memory?


I

3
£~plain the different cyber crimes? (any 3)

Find the output of given


)~ jfind the output of given below code. 3
below code. s="welcome2C"
I

L==[l3, 12,21, 16,35, 7,4] n = len(s)

S==5 m='"'

S1=3 for i in range(0, n):


for i in L: if (s[i] >= 'a' and s[i] <= 'm'):
if(i%4=0):
OR m =m +s[i]. upperQ
S=S+i elif (s[i] >= 'n' and s[i] <= 'z'):
continue m = m +s[i-1]
if(i%7=0): elif (s[i].isupperQ):
SI =S 1+i m = m + s[i].lowerO
~nnt(S 'sI, L.mdex(
• 35)) else:
m =m +'&'
print(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

h terms of a Fibonacci s~, ies.


to display t e
a) Write a program
• h any 2 rules.
ntifiers wit
b) Defime Ide

. ~
f list different from the remove function?• explain
32 a) How •ts the pop function leo
by giving asuitable examp •

b) Consider the following tuples, tuple I and tuple2:


tuple 1= (23, 1,45,67,45,9,55,45)
tuple2 = (100,200)
Find the output of the following statements:
i. print(tuplel.index(45))
ii. print(tuplel.count(45))
iii. print(tuple 1 + tuple2)
iv. print(len(tuple2))
v. print(sum(tuple2))
vi. print(sorted(tuple I))
OR

b) Write the function name for the following task:


i) Function to add a list element at the end of the existing list.
ii) Function to remove all the elements of the dictionary.
iii) Function to count the number of characters in a string.

33 a) Write a python program that reads a string and checks whether it is a


palindrome.

b)Write a program Input a list of numbers and swap elements at the even
location with the elements at the odd location.

c) R~:r~~ the following code fragment using for loop.


while(i>O):
print(i)
i-==3

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

a) What are the responsibilities of netizen? 2


ng
b) What are the common disability issues faced while teaching/usi
2
computers?
no
-write the Missing Code in the program to create a dictionary with the roll 4
35 '
name, marks of number of students in a class and display the names of
students who have scored marks above 75.
no of students= int(input(" Enter number of students: "))
- -
result = _ _ __ # Statement I
for i in range(.____ _ __,): # Statement 2
print("Enter Details of student No.", i+l)
roll_no = int(input("Roll No: "))
std_name = input("Student Name: ")
marks= int(input("Marks: "))
# Statement 3
result[roll_no] = _ _ _ _ _ __
print(result)
for student in result:
# Statement 4
if __ __ _ > 75:
k5 • ; e" (result[student][O]))
print("Student's who got more than 75 mar is ar '
rERNATIONAL INDIAN scttoo1,, 1,,; \l vi A q
fN F SAffODAYA EXAMINATION ~~t "t'' , 1 , 11 . _
GVL ' • • .. 4 >
SETB
science (083)
uter i\laximum Marks: 70
Coftl P ~I ime allowed· 3 H
~itI'':
• ,, .~I
• ours
'

~ 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()

.,-In which year India's IT Act came into existence? I


(a) 2000 (b) 2001 (c) 2002 ( d) 2003

] State True or False I


"Python is a case sensitive language True or False?."

~ 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'}

(b). Year= {1:, January',2: ,February ' ,3'•'March' }

(c). Year=(l ;' January' ,2; 'February ' '3·'Ma


' rch')
(d). Year={ 1:' January' ,2: 'February' ,3;'March'}

12 Which of the following is an invalid identifier in Python?


(a) print (b) _for (c) While (d) true
13 ASCII uses a _ _ _ _bit encoding schema.

(a) 32 (b) 8 (c) 7 (d)l6


14 _ _ Following set of commands are executed
in shell, what will be the output?
>>>str=" computer"
>>>str.islowerQ

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

~rt ion (A ): Assertion (A) : Items in dict


ionaries are unordered.
the same order in which we had
Reason (R): We may not get back the data in
entered the data initially in the dictionary.
--- --- -__ JL __ _j
;:: ::: T:: ;;1 -:: :-0 N: :-= -B
t... --'" --- --- --- --; :;S ~E C:
2
What is confidentiality of information? How
do you ensure confidentiality of
information?
2
uit:
(a) Write equation for following logical circ

1, • I

(b) Convert the following:


(i) (25)10 = ( ?)2
2
Write the output of the following Python code
:

t = (1,2,3,4,5,3,2,3,4,5,2,1)
!
i
print(t.count(2))
print(t.index(2))
OR

Write the output of the code given below:


F
word="green vegetables"
print(word.find("g" ,2))
print(word.find("tab" ,2, 15)) 2
h Table.
22 State De-Morgan First law using Trut
OR
h Table
Define NANO gate with symbol and Trut 2
ying and cyber trolls?
123 Write difference between cyber bull
OR
ts to computer security?
· threat? What are the different types of threa
What 1s a •

3 of7
q;; a>

It
11I
1111111 1111111111111/''l'ul~! ",1111 wi I

ll1I Iii t,1rlij_.f I )11J111 I

~,11,1 1I

11111111 '1 ~UIII I11 ~~"~~" .~ I


11
Id ll1tl '11lulltlt ~'1111 J

I~ j, 1111 I I1111 1111 I11111 ii I l,tl11 Ii ,1,~~lf NIii ..

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(

\V 111(~ (I te lllHtHJf of' lhu foll i11 1

11111 jf ~ 'j() r/ . OW Mt 0tfli I


~I I ~,~(),

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

Find the output of given below code.


s="WELcome2"
n= len(s)

m="''

for i in range(0, n):

if (s(i) >= 'a' and s(i} <= 'm'):


m =m +s(i).upper()
elif (sli) >= 'n' and s(i1 <= 'z'):

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 \~ ._

You might also like