Who Wants to be a Web Engineer?
Questions
Answers
Marks
Which of the following would
not
generate a valid link (assuming that the target page exists)?
A)
Boohoo
B)
First Page
C)
Road Map
A
B
C
D
Which code will cause "line b" to appear on the line that follows "line a"?
A)
line a
line b
B)
line a
line b
C)
line a
line b
D)
line a<\n>line b
A
B
C
D
Which exercise
must
use a style sheet in order to function?
A) The Quiz
B) The menu where the description appears with a mouseover (the "fancy menu")
C) The form registration ("cookies")
D) The search box
A
B
C
D
Which of the following can
not
be accomplished using a style sheet?
A) Validate that a user has filled in a required field on a form.
B) Put a border around a block of text.
C) Assign a background image to a block of text.
D) Make the font size half the usual size.
A
B
C
D
How many rows and how many columns will there be in the table specified here?
hi
how are
you?
I
am
fine
A) one row, two columns
B) two rows, two columns
C) three rows, two columns
D) two rows, three columns
A
B
C
D
If you want to create a quiz where someone is forced to choose only one answer (they cannot pick multiple answers), which input type should you use?
A) Text
B) Checkbox
C) Radio
D) Picklist
A
B
C
D
Assuming that you had a text field called "firstname" on a form, which would be a proper expression to test whether or not someone had entered any information into the box?
A)
if (firstname == "")
B)
if (form.firstname.value = "")
C)
if (form.firstname.value == "")
D)
if form.firstname.value = ""
A
B
C
D
In JavaScript, if you have an array called
messages
then the expression
messages.length
means
A)The length of the first word of a message
B) The length of the longest message
C) The length of the first message
D) The number of elements in the array
A
B
C
D
Assuming that we have an array called
messages
, the JavaScript code to generate the alerts that you see when you click and unclick boxes would be
A)
alert(messages[parseInt(Math.round((messages.length -1)*Math.random()))]);
B)
for (i = 0; i < messages.length; i ++){alert(messages[i])};
C)
if (form.a2.checked) alert(messages[a2]);
D)
if (form.a2.checked || form.a3.checked) alert (messages[i]);
A
B
C
D
Your overall grade:
Page created by Arnold Kling. Last Modified December 18, 2001.