COMP 5322 INTERNET COMPUTING AND APPLICATIONS
INTERNET COMPUTING AND APPLICATIONS
Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
HONG KONG POLYTECHNIC UNIVERSITY
DEPARTMENT OF COMPUTING
COMP 5322 INTERNET COMPUTING AND APPLICATIONS
Instructions:
1. The time allowed is 2 hours.
2. This examination has two parts. The first part is an online examination. The
second part is an open-book examination.
a. The first part has 15 multiple-choice questions. Answer ALL the questions
via the Blackboard system.
b. The second part has 6 questions. Answer ALL the questions on the answer
sheet and finally upload answers via the Blackboard system.
3. Marks for each question are shown next to the question.
Q1-15 (30) Q16 (5) Q17 (15) Q18 (10) Q19 (10) Q20 (15) Q21 (15)
PART I: SHORT QUESTIONS (30 MARKS)
In this part, there are 15 multiple-choice questions. Answer ALL the questions directly on the
Blackboard system. You only have one chance to submit your answers. If you submit, you cannot
modify your answers anymore. You have 30 minutes to complete this part. You need to submit
your answers before the due time. You can start to answer Part II immediately after finishing all
Part I questions.
PART II: LONG QUESTIONS (70 MARKS)
In this part, there are 6 questions (Questions 16 – 21). Please answer ALL the questions on the
answer sheet. You need to submit your answers via the Blackboard by the end of the examination.
QUESTION 16 (5 MARKS)
Please write an appropriate HTML code to display different pictures for different devices or screen
sizes for achieving the responsive web design. Specifically, the following table lists the ranges of
screen width and the corresponding picture sources. For example, if the screen width is less than
400px, the image “extra-small.jpg” is shown; if the screen is equal or greater than 400px but less
than 600px, the image “small.jpg” is shown; and so on.
Screen width <400 >=400 & <600 >=600 & <800 >=800 &<1000 >=1500
Source extra-small.jpg small.jpg medium.jpg large.jpg extra-large.jpg
(Your code is here)
QUESTION 17 (15 MARKS)
You are required to design a PolyU logo, as shown in Figure 1, by using CSS. The logo is
composed of three components: the center, the right arc, and the left arc. Given the box models of
the three components as below, please fill in the remaining CSS code to construct the logo.
Particularly, the boxes for the right arc and left arc are rotated by -30 and 30 degrees respectively.
Notice it is NOT allowed to add, edit, and delete any HTML elements.