Quiz 4 -- CS 290W -- Feb 11, 99

(1) Suppose that the Date Class in a programming language has only the Constructor:
Date day = new Date (String);
Which of the following is a valid declaration of a Date object?
(1) Date thursday = new Date ();
(2) Date friday = new Date ("February 26, 1999");
(3) Date saturday = new Date (02, 27, 1999);
(4) Date february = new Date (02, 1999);
(2)

(2) What values can be used in JavaScript?
(1) integers and float, but no logical values or strings
(2) numbers and strings, but no logical values
(3) logical values and strings, but no numbers
(4) numbers, logical values, strings
(4)

(3) Which tag ends a group of JavaScript statements?
(1) </JS>
(2) </JAVA>
(3) </SCRIPT>
(4) </JAVASCRIPT>
(3)