In the URL
ftp://download.depaul.edu/admissions/application.pdf
the protocol is:
ftp
ftp://download.depaul.edu
application.pdf
download.depaul.edu/admissions/application.pdf
Which of the following statements about the IP protocol is true?
It routes a single packet to a destination address .
It routes a sequence of packets to a destination address.
It determines the IP address of a destination URL.
It resends a packet if it is lost.
The <b> tag in the HTML code
<b><img src="minotaur.gif"/><b> will
Make the picture appear in bold
Make the picture larger
Make the picture brighter
Do nothing
Which tag allows you to specify a cell in a table?
<tc> </tc>
<td> </td>
<tr> </tr>
<cell> </cell>
Which of the following code samples turns the image "cube.gif
(within the sub-folder images ) into a clickable, hyperlinked picture?
<img src="images/cube.gif" href="cube.html" border="2"/>
<a href="cube.html" img="images/cube.gif" border="2"/>
<a href="cube.html"><img src="images/cube.gif" border="2"/></a>
<img src="images/cube.gif" border="2"><a href="cube.html"/></img>
You have organized your files into two folders: web_pages and
web_images . The folder web_images contains an image
"theseus.jpg" which should appear on the page main.html
in the folder web_pages . Which is the correct code:
<img src="web_images/theseus.jpg"/>
<img src="./web_images/theseus.jpg"/>
<img src="../web_images/theseus.jpg"/>
<img src=".../web_images/theseus.jpg"/>
<img src="theseus.jpg"/>
Your page myth.html contains a section header "King Arthur" ,
which you named using the following code:
<a name="arthur"><h1>King Arthur</h1></a> . How do you link to that section
in the page main.html in the same folder?
<a href="myth.html#arthur">King Arthur</a>
<a href="arthur@myth.html">King Arthur</a>
<a href="myth.html@arthur">King Arthur</a>
<a href="myth.html:arthur">King Arthur</a>
<a href="myth.html#King%20Arthur">King Arthur</a>
Which attribute of the form tag allows you to
specify the program to be performed when submitting the form?
action
program
submit
name
asp
method
How can you implement multiple selection in a form?
<select>/<option> and
<input type="checkbox"> both allow multiple selection
<select>/<option> ;
<input type="checkbox">
only allows checking a single box
<input type="checkbox"> ;
<select>/<option>
allows only one option to be selected
both <select>/<option> and
<input type="checkbox">
only allow single selection, you need the
<input type="radio"> tag for multiple selection
If you display the following web-page:
<html>
<head>
<style>
body {color:blue;}
h1, h2 {color:green}
</style>
</head>
<body>
<h1 style="color:red">The beginning </h1>
</body>
</html>
The words "The beginning" will be displayed in:
The default color (black for most browsers)
blue
green
red
turqoise
The user-centered design (UCD) process begins first by answering the question:
What is the competition doing?
Who will be using the product?
What sample scenario should be created?
What other means target users have for completing their tasks?
A low fidelity prototype is:
Close enough to a final product to be able to examine usability questions in detail
Used to make strong conclusions about how behavior will relate to use of the final product
Used to quickly produce the prototype and test broad concepts
Used to understanding relationships across a broad system and for showing the range of abilities of a system
Consider the following
JavaScript code:
<script language="JavaScript">
var x,y;
x = window.prompt("First value");
y = window.prompt("second value");
window.alert("Output: "+x+y);
</script>
If we enter
1 for the first value, and
2 for the second value, then the program will:
Bring up a pop-up box with the text "Output: 3"
Write the text "Output: 3" on the web-page
Bring up a new browser window with the text "Output: 3"
Bring up a pop-up box with the text "Output: 12"
Consider the following piece of
JavaScript code:
<script language="JavaScript">
var x;
function create_img(num){
document.write('<img src="medea'+num+'.jpg"/>');
}
x= window.prompt("Enter a number between 1 and 5:");
create_img(x);
</script>
If the user enters
3 , the following will be written to the web-page:
<img src="medea'3'.jpg"/>
<img src="medea3.jpg"/>
<img src="medea'+num+'.jpg"/>
'<img src="medea'+num+'.jpg"/>'
Which of the following buttons will change the background color to red when clicked?
<input type="radio" onClick="document.write('bgColor="red";';"/>
<input type="radio" onClick="backgroundColor='red';"/>
<input type="radio" onClick="document.bgColor='red';"/>
<input type="radio" onClick="<body background='red'></body>/>
According to the following fragment of JavaScript code
if( ( ((year % 4) == 0 ) &&
( (year % 100) != 0)) || ((year % 400) == 0) )
{
window.alert("Leap year");
}
else
{
window.alert("Not a leap year");
}
(where
year%4 is the reminder of
year
divided by
4 )
2004 is a leap year, but 1900 is not
Neither 1900 nor 2004 are leap years
Both 1900 and 2004 are leap years
All year divisible by 4 are leap years
The code
<input type="text" size="2" name="state"> IL </input>
appears in a form named
myForm . What JavaScript code will change the
state to
NY ?>
myForm.state = NY;
myForm.state.value = "NY";
state = "NY"
document.state = "NY"
Consider the following piece of JavaScript code.
<script language="JavaScript">
var counter;
for(counter = 1; counter <10; counter ++){
width = 5+2*counter * counter;
document.write('<hr width="'+width+'">');
}
Which of the following pictures is the result of this code?