Vous êtes sur la page 1sur 7

Answers M150A Question (1) a) Most of our daily activities involve exchanging data or finding and using information.

Computers control (entirely or partially) most modern mechanical devices. Think about your daily life and briefly talk about three things you use that involve computers. Send emails to my friends and work. I need computer in daily base to send emails for my friends and colleagues using email software such as gmail, or hotmail. Write on Microsoft Word for my home works. I need compute in daily base in studying and writing in my home works using Microsoft Word. Withdraw money from ATM. When I need to withdraw money from ATM machine, this means I am using computers in a daily base in this function.

b) Briefly define the term Netiquette. Mention three Netiquettes that you need to follow when using the discussion forum in the LMS. If you want to use any external resources make sure to include your references. Netiquette: The word netiquette is a combination of net (from internet) and etiquette. It means respecting other users views and displaying common courtesy when posting your views to online discussion groups. There are three Netiquettes which are needed in the discussion forum in the LMS: Respect other people's time and band width. Make yourself look good online. Respect other people's privacy.

Reference: RFC 1855: Netiquette Guidelines". http://tools.ietf.org/html/rfc1855.


Retrieved 2011-12-5.

c) Communication with humans or computers relies on shared conventions. What is your understanding from the term convention? Give two examples on conventions. A convention is a set of agreed, stipulated or generally accepted standards, norms, social norms or criteria, often taking the form of a custom. Examples on conventions: Strangers being introduced shake hands, Click heels together, in past eras of Western history, A woman's curtsey, in some societies, In the Mideast, never displaying the sole of the foot toward another, as this would be seen as a grave insult.

d) Each file saved in your computer should have an extension, why? Since a disk drive, or indeed any computer storage, can store only bits, the computer must have some way of converting information to 0s and 1s and vice versa. There are different kinds of formats for different kinds of information.

e) What type of information might be included in the following files: message.wav, me.png, graduation.mpeg. Message.wav : a video. Me.png: a picture of extension png. Graduation.mpeg: an image of extension mpeg.

Question (2) a) Any feature of the analogue world can be taken inside the boundary of the computer using two-steps process. Mentions the two steps with brief explanation giving an example that illustrates them. An Analog to Digital Converter (ADC) takes an analog input signal and converts the input, through a mathematical function, into a digital output signal. While there are many ways of implementing an ADC, there are three conceptual steps that occur:

1. The signal is sampled. 2. The sampled signal is quantized. 3. The quantized signal is digitally coded.

b) Show all the steps required to convert the binary value 111001101 to its decimal representation. (111001101 ) = (12 )+ (02)+(12 )+(12 )+ (02 )+(02 )+(12)+(12 )+(12 )(111001101 ) = (11 )+ (02)+(14 )+(18 )+ (016 )+(032 )+(164)+(1128)+(1256 )

(111001101 ) =1+0+4+8+0+0+64+128+256=461 (111001101 ) =(461)

c) Show all the steps required to convert the octal value 4402 to its binary representation.
2=10 0=0 4=100 4=100 2=010 0=000 4=100 4=100 2(100100000010) (4402) 8 equals (100100000010)2

d) Consider an image of size 700 X 800 pixels. Find the number of bits used to represent each pixel, the pixel amplitude and the coloring system used for the following two cases: a. If the image requires 70000 bytes to be stored inside the computer. 800X700

b. If the image requires 1680000 bytes to be stored inside the computer. 900X1200

Question (3) 1) What is the function of the following: a. Cache memory. Cache Memory is a high speed memory device which stores high speed data from the processor before sending it to RAm since RAM works at a slower rate than the rate, which processor sends the data. b. ALU. The work of an ALU is that it supplies the information and results for computation to the outside world. Thus it links the computer with the external environment. As computers work with binary code. c. Assembler. In simple way u can say assembler converts the assembly language into machine language. the main function of an assembler is assign addresses to labels. 2) Complete the following truth table for the Boolean expression: (A AND B) OR (NOT A) A T T F F T F T F B A AND B= C T F F F NOT A= D F F T T T F T T C OR D

3) The following flowchart diagram shows a loop structure program. a. How many times will the loop be executed? - 5 times. b. What is the exact output after these instructions have been executed? You need to draw a simple tracing table that shows how you got your answer. - 2, 4, 6, 8, 10. Start x = 2 X=4 X =6 X=8 X=10 X=12 Check x<=10 (TRUE) Check x<=10 (TRUE) Check x<=10 (TRUE) Check x<=10 (TRUE) Check x<=10 (TRUE) Check x<=10 (FALSE) Add 2, x = 4 Add 2, x = 6 Add 2, x=8 Add 2, x=10 Add 2,x =12 OUT

c. What is the value of x when the loop stops? - The exact value of x after execution = 12. d. Make a unique change in the above flowchart so that the odd numbers from 1 to 9 are printed.

Question (4) 1) The first question


a)

Enter name, family name and title name


<form name=myform> <input type=button value="Enter your data" onClick=" s=prompt('Enter your name','Name'); alert('Your Name '+s+'!')"> </form> <form fname=myform1> <input type=button value="Enter your data" onClick=" x=prompt('Enter your family name','fname'); alert('Your Family Name '+x+'!')"> </form> <form tname=myform2> <input type=button value="Enter your data" onClick=" z=prompt('Enter your Title','tname'); alert('Your Title is '+z+'!')"> </form>

Prompt for Albert Einstein


<html> <head> <title>The Greeting Message</title> <script type="text/javascript" src="soyutils.js"></script> <script type="text/javascript" src="simple.js"></script> </head> <body> <script type="text/javascript"> Name ( Albert Einstein); document.write(examples.simple.Name()); </script> </body> </html>

2) Book Flight

a)
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf8" />

b)
<title>AOU flight order</title> <meta name="keywords" content="" /> <meta name="description" content="" /> <link href="style.css" rel="stylesheet" type="text/css" media="screen" />

<input type="hidden" name="on0" value="Order Menu"/><span class="style8">Order<br /> <br /> </span><br /> <select name="os0" style="font-weight: 700; font-size: large"> <option value="Fine">$300</option> <option value="Normal">$150</option> <option value="Economic">$130</option> </select>

c)
<input type="hidden" name="currency_code" value="KWD"/> <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"/> <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"/>

Vous aimerez peut-être aussi