Quiz1 Sol
Quiz1 Sol
Quiz1
Name: ________________________
Score: _____________________
Email: ________________________
d]
2. When you are browsing the Web and viewing web pages, your computer is
acting as a:
[Answer: b]
a. telent
b. client
c. server
d. packet
3. On Internet, data is transmitted by ___________________ using the Internet
Protocol:
[Answer: a]
a. packet switching
b. circuit switching
c. virtual circuit switching
d. combination of circuit switching and packet switching
4. Basic syntax for XHTML tags and attributes is:
a. <tag attribute=value>
</tag>
b. <tag attribute=value>
<tag>
c. <tag attribute=value>
<tag>
d. <tag attribute=value>
</tag>
[Answer:
d]
6. A style sheet consists of a set of rules. Each rule consists of one or more
selectors and a declaration block. In the Example 1, there is/are
[Answer: d]
a. no rule
b. 1 rule
c. 2 rules
d. 3 rules
7. In the Example 1, .class1 is a
a. selector
b. rule
c. declaration block
d. attribute
[Answer:
a]
[Answer:
b]
[Answer:
c]
10. Given that (33)16 = (51)10, (CC)16 = (204)10, (FF)16 = (255)10, the color value
rgb(51, 204, 255) in RGB format is equal to the color value __________ in
hexadecimal format
a. #51CCFF
b. #33CCFF
c. #FFCC33
d. #FFCC51
[Answer:
b]
II True or false questions (T for true, F for false; 2 points each, total 16
points)
1. Domain Name System (DNS) is a mapping between the human-readable
name (domain name) of a host and its IP address.
[Answer: T]
2. A browser is a software program which interprets the HTML documents
and displays it on the users screen.
[Answer: T]
3. A tag is an html code that is enclosed in angel brackets (<>), and it's used to
lay out the web page.
[Answer: T]
4. In XHTML, only lowercase tags are allowed.
[Answer:
T]
T]
F]
[Answer:
8.
If
we
put
the
XHTML
code
<link href=./myStyle.css"
rel="stylesheet" type="text/css" /> in between the <head> and
</head> tags of a web page, then this will tell the web page to use the
myStyle.css as external stylesheet.
[Answer:
T]
http://
__________protocol_______________________
socrates.berkeley.edu _____________domain name___________________
/courses/history/hist181.html ______path of the document___________
__________line break______________.
In the above format, value1 is the _alternative text_ of the image we want to
insert, and value2 is the _______path_______ of the image.
padding: 20px;
border: 6px solid #9DACBF;
}_____________________________________________________________
_
}
</style>
</head>
<body>
______________________________________________________________
<h1>Mehmud Abliz</h1>
<h2>Welcome to my web page!</h2>
<h3>About Me</h3>
<p>My name is Mehmud Abliz, I am a graduate student at computer
science department of University of Pittsburgh.</p>
<h3>My Address</h3>
<address>Room 6150, Sennott Square<br />
University of Pittsburgh<br />
Pittsburgh, PA 15260
</address>
<h3>My Favorite Songs</h3>
<ul>
<li>November Rain - Guns and Roses</li>
<li>Nothing Else Matters - Metallica</li>
<li>Come As You Are - Nirvana</li>
</ul>
<h3>My Courses</h3>
<p>I'm taking <strong>Visual Languages</strong>, <strong>Network
Security</strong>, and <strong>Independent Study</strong> this
semester.</p>
<h6>© 2007 Mehmud Abliz</h6>
______________________________________________________________
</body>
</html>