Professional Documents
Culture Documents
IT)
STUDENT NAME
STUDENT ID # SECTION #
QUESTION # 1 2 3 4 5 6 7 TOTAL
COMMENTS
6. What can you do with the Internet? (a) Exchange information with friends and colleagues (b) Access pictures, sounds, video clips and other media elements (c) Find diverse perspective on issues from a global audience (d) Post and respond to inquiries on a variety of subjects (e) All of the above
7. What does the abbreviation http stand for? (a) Hypertext Transfer Protocol (b) High Task Termination Procedure (c) Harvard Teletext Proof (d) High Tec Transmission Policy
8. The Uniform Resource Locator (URL): (a) Is the standard protocol by which World Wide Web information is served (b) Is the standard coding language used to create Web pages (c) Is the name of a Web browser (d) Is the standard addressing system used to locate World Wide Web resources 9. Which of the following shows the correct form of an email address? (a) mohd@uob.edu.bh (b) mohd.edu@gopher (c) http:mohd.uob.edu (d) mohd@uob@edu 10. The opening page for a particular Web site normally is the: (a) opener page (b) home page (c) office page (d) master page 11. The presentation of the results of processing is called: (a) Play (b) Outcome (c) Output (d) Printout 12. Mail sent electronically is called: (a) snail mail (b) e-mail (c) super mail (d) quick mail 13. A scanner is an example of which of the four computer system components: (a) input (b) output (c) processor (d) storage 14. Which component of a computer system executes the program: (a) input (b) output (c) processor (d) storage 15. The name of the applications that combine text, sound, graphics, motion video, and/or animation is: (a) videoscapes (b) motionware (c) multimedia (d) dvd Page 3 PDF created with FinePrint pdfFactory trial version http://www.pdffactory.com
(a) Write the declaration needed to define and initialize the array X.
(b) Show the output of the following C program segment in the Output Box below assuming that the array X is as defined above. Use the values given above for X to produce your output. for (int row=0; row<4; row++) { for (int col=0; col<4; col++) { if (row == col) continue; if ((X[row][col] % 3) == 0) break; printf("%4d%4d%4d\n",row,col, X[row][col]); } } Output
Question 4 (6 Points)
. Convert the following while loop into an equivalent do-while loop. int count=0, num; scanf("%d",&num); while (num != -1) { count++; scanf("%d",&num); } printf("count=%d\n",count);