Assignment 2 1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

ASSIGNMENT2( Onl

ine)
Cour
se:200I
E3Dat aInputs&Manipul at
ion
Sect
ion:69/329
I
SSUEDAY&DATE&TI ME Monday ,
22May2023at06PM
SUBMISSI
ONDAY&DATE&TI ME Thursday01June2023on/ befor
e11PM
MAXIMUM MARKS 15(On-Time)/0(Late)
NUMBEROFQUESTIONS 5
TOPI
CS Chapter2:Pyt
honPr ogrammi ng
Chapter3&4:HTML&CSS
Chapter5:MySQL
Chapter6:Commer cialSof
tware&Appl
icat
ions

NOTE:HOW TOSUBMI
TANASSI
GNMENT?

1.Wr
it
eYourNameandStudentI
DinaTablefor
m.
DanyaHadiAMutared
Name St
udentI
D 442809615
(
Engl
ish)

================================================================================

Questi
on1.Wri
tethePyt
honpr
ogr
am usi
ngpy
thonf
unct
iont
oconv
ertt
het
emper
atur
efr heoCt
om t o
o
F.Gi
v nputoC=40oC.
enuserI

ANSWER:

defcel
sius_to_f
ahrenhei
t(
cel
sius)
:
f
ahrenheit=celsi
us*(9/5)+32
r
eturnfahrenhei
t

celsius=40
fahrenhei t=celsi
us_
to_f
ahrenhei
t(
celsi
us)
pri
nt( f
"{celsi
us}oCisequal
t o{f
ahrenhei
t}oF"
)

#Out
put
:40oCi
sequal
to104.
0oF
Quest
ion2.Wr
it
eaHTMLcodet
odi
spl
ayt
hef
oll
owi
ngont
hewebpage.

ANSWER:

<!
DOCTYPEht ml>
<html>
<head>
<tit
le>WELCOME</ t
it
le>
<style>
l
i{
font-size:20px;
mar gin-bott
om:10px;
}
</style>
</head>
<body >

<oltype="1:
">
<li
>HTML:Hy perTextMarkupl
anguage</
li
>
<li
>CSS:CascadingStyl
eSheet
s</l
i>
<li
>JS:JavaScri
pts</l
i>
</ol>
</body>
</html>
Quest
ion3:
Wri
tet
heOut
putoft
hef
oll
owi
ngCSSCode.

<!DOCTYPEht ml
>
<html>
<head>
<styl
e>
body
{
background-
col
or:
green;
}

h1
{
color:r
ed;
text-
ali
gn:
lef
t;
}

p
{
font-
famil
y:ver
dana;
font-
size:
20px;
}
</sty
le>
</head>
<body>

<h1>DataInputs&Mani pul
ati
ons</
h1>
<p>Col
legeofEngi neer
ing.
</p>
WaterH<sub>2</ sub>O<br>
Power=I <sup>2</sup>R

</
body
>
</
html
>

ANSWER:
Quest
ion4:
Wri
tet
heout
putoft
hef
oll
owi
ngMy
SQLQuer
ies.
A.my
sql
>sel
ectpower(
2,3)

ANSWER:
8

B.my
sql
>2+10;
ANSWER:
12
C.my
sql
>CREATETABLEst
udent(
-
>nameVARCHAR(
30)
,
-
>cour
seVARCHAR(
20)
,
-
>genderCHAR(
1),
-
>bi
rt
hDATE)
;

ANSWER:

Theoutputofthequeryi
saconfi
rmat
ionmessagethatt
hetable"
student"hasbeencr
eat
ed
successf
ull
y,wit
hcolumnsf
or"name"(VARCHAR),
"cour
se"(VARCHAR) ,
"gender"(
CHAR)
,and"
bir
th"
(DATE).
Quest
ion5:Wr
it
ethenamesofFI
VEOpenSour
ceSof
twar
eandFI
VECl
osedSour
ce(
Commer
cial
)
Sof
tware.

S.No. OpenSour
ceSof
twar
e Cl
osedSource(Commer
cial
)
Soft
ware
1 MYSQLdat
abase Mi
crosof
tWi
ndows
2 Li
breOf
fi
ce AdobePhot
oshop
3 Apachwebser
ver Mi
crosof
tOf
fi
ce
4 VLCmedi
apl
ayer Aut
oCAD
5 Li
nuxos Or
acl
edat
abase

You might also like