a. No; this element can only appear in a form, it sets up a field
that lets the user enter data on the HTML page.
b. No; this element can only appear in a form, it sets up a drop
down menu.
c. Yes; This tag sets up links on an image according to their location,
and can occur anywhere a normal hyperlink tag can.
d. No; this element can only appear in a form, it sets up a text
entry box.
a. No; they can occur in the head or in the body.
b. No; they can occur in the head or in the body.
c. No; they can occur in the head or in the body.
d. Yes; The placement of a script tag is only dependent on when you
want the code executed: before all other tags are read, or
somewhere during the rendering of the HTML page.
a. Yes; This only defines the function, and does not execute it.
b. No; this will invoke the function.
c. No; this will invoke the function.
d. No; this will invoke the function.
a. No; the same rules apply to locals and globals.
b. No; the same rules apply to locals and globals.
c. Yes; Scope defines whether a variable only applies inside a
single function definition, or everywhere in the program (or
HTML page, as the case may be).
d. No; the same rules apply to locals and globals.
a. No; this is not even true.
b. Yes; for example, the same variable can hold different types of data, such as
strings, integers, etc.
c. No; variables must be declared before they are used.
d. No; No can do, unless the variable has an array as its value.
a. No; alert returns no value, just opens an alert window.
b. Yes; Since a confirm window has a yes or no choice, it must
return the choice made when one of these buttons is
clicked.
c. No; eval returns a numeric value.
d. No; prompt returns a string value (or null).
a. No; how about: for (i=0; i>10; i--) {}
b. Yes; if the control variable starts off
with an unfinishable loop condition,
there won't be anything the for command can
do to stop it.
c. No;
d. No;
a. No; this is an array of links.
b. No; this is an array of elements.
c. No; this is an array of option items.
d. Yes; this is a pointer to the current window.
a. No; this is a builtin object.
b. Yes; you would have to construct a function that writes a line
to the appropriate place.
c. No; this is a builtin object.
d. No; this is a builtin object.
a. Yes; writing software is abstract enough.
b. No; this is an important part of the software life cycle, where
the features of the software are determined.
c. No; this is an important part of the software life cycle, where
the internal code structure is defined.
d. No; this is an important part of the software life cycle, where
the kinks are worked out.