Você está na página 1de 3

<question type="shortanswer">

<name>
<text>Convert this binary number 00110110 into decimal!</text>
</name>
<questiontext format="html">
<text><![CDATA[<p>Convert this binary number 00110110 into decimal!</p>]]></te
xt>
</questiontext>
<defaultgrade>1</defaultgrade>
<answer fraction="100" format="moodle_auto_format">
<text>54</text>
<feedback format="html">
<text><![CDATA[<p>(0*2^7)+(0*2^6)+(1*2^5)+(1*2^4)+(0*2^3)+(1*2^2)+(1*2^1)+(0
*2^0) =
32+16+4+2 = 54</p>]]></text>
</feedback>
</answer>
</question>
<question type="multichoice">
<name>
<text>Please convert the decimal number of 185 into binary</text>
</name>
<questiontext format="html">
<text><![CDATA[<p>Please transform the decimal number of 185 into binary</p>]]
></text>
</questiontext>
<defaultgrade>1</defaultgrade>
<single>false</single>
<shuffleanswers>true</shuffleanswers>
<answernumbering>abc</answernumbering>
<answer fraction="100" format="html">
<text><![CDATA[<p>b. 10111001</p>]]></text>
<feedback format="html">
<text><![CDATA[<p>(1x2^7)+(0x2^6)+(1x2^5)+(1x2^4)+(1x2^3)+(0x2^2)+(0x2^1)+(1x2^0
)=1
28+32+16+8+1=185</p>]]></text>
</feedback>
</answer>
<answer fraction="100" format="html">
<text><![CDATA[<p>a. 10101011</p>]]></text>
<feedback format="html">
<text><![CDATA[<p>karena hasilnya 171</p>]]></text>
</feedback>
</answer>
<answer fraction="100" format="html">
<text><![CDATA[<p>c. 11010110</p>]]></text>
<feedback format="html">
<text><![CDATA[<p>karena hasilnya 214</p>]]></text>
</feedback>
</answer>
<answer fraction="100" format="html">
<text><![CDATA[<p>d. 11001101</p>]]></text>
<feedback format="html">
<text><![CDATA[<p>karena hasilnya 205</p>]]></text>
</feedback>
</answer>
</question>
<question type="essay">

<name>
<text>why do we need ASCII? and what is alternative?</text>
</name>
<questiontext format="html">
<text><![CDATA[<p>why do we need ASCII? and what is alternative?</p>]]></text>
</questiontext>
<defaultgrade>1</defaultgrade>
<responseformat>plain</responseformat>
<graderinfo format="html">
<text><![CDATA[<p>ASCII (american standard code for information interchange) is
a
mapping between character and binary code. we use ASCII as a reference to encode
our
information. alternative of ASCII is EBCDIC.
[ref: T101, page 166,167]</p>]]></text>
</graderinfo>
</question>
<question type="essay">
<name>
<text>why do we need start & stop bits?</text>
</name>
<questiontext format="html">
<text><![CDATA[<p>why do we need start & stop bits?</p>]]></text>
</questiontext>
<defaultgrade>1</defaultgrade>
<responseformat>plain</responseformat>
<graderinfo format="html">
<text><![CDATA[<p>when transmitter send data, the data is chopped into several p
ieces.
each piece will be added an information block (header) which formed segment, pac
ket, and
then frame. we need start and stop bits as indication of where the frame is begi
n or ended,
receiver doesnt have any eyes so the the transmitter needs to have a way to indi
cate a
frame.
[ref: T101, page 168]</p>]]></text>
</graderinfo>
</question>
<question type="essay">
<name>
<text>Why do we need error detection? give 2 examples of error detection?
</text>
</name>
<questiontext format="html">
<text><![CDATA[<p>Why do we need error detection? give 2 examples of error dete
ction?
</p>]]></text>
</questiontext>
<defaultgrade>1</defaultgrade>
<responseformat>plain</responseformat>
<graderinfo format="html">
<text><![CDATA[<p>We need error detection to ensure the data is retrieved by rec
eiver is
similar to what it was sent by sender. error detection will detect if there is a
bit flipped or not.
error detection techniques: Parity bits and CRC
[ref: T101, page 166]</p>]]></text>
</graderinfo>
</question>

<question type="essay">
<name>
<text>why do we need header for communication?</text>
</name>
<questiontext format="html">
<text><![CDATA[<p>why do we need header for communication?</p>]]></text>
</questiontext>
<defaultgrade>1</defaultgrade>
<responseformat>plain</responseformat>
<graderinfo format="html">
<text><![CDATA[<p>because it is not enough if we just sent the data only, additi
onal
information is need so that router/CO/other devices understands to where we send
the
packet. it is similar to sending a letter via post office. we need to add more i
nformation like
source and destination address to that the post office knows where to send the l
etter.
[ref: T101, page 166]</p>]]></text>
</graderinfo>
</question>

Você também pode gostar