You are on page 1of 10

QUIZ

QUIZ

Identify what is being asked in each number. Choose your answer


from the choices on the box.

A. PROMPT
B. ALERT
CONFIRM

C.

1. It returns true if the user click "OK". Otherwise it


returns false.
2. The second argument is the "default value" to be
displayed in the input textfield.
3. If the user click the "OK" button, prompt() returns
the value in the input textfield as a string.
4. Display a message in a dialog box.
5. It is often used if you want to make sure
information comes through to the user.

Enumerate what is being asked in each number.

A. Syntax for the Confirm Box


6-7 __________________________________________

B. Syntax for the Prompt Box


8-9 __________________________________

C. Syntax for the Alert Box


10.__________________________________________

ANSWER KEY

ANSWER KEY

ANSWER KEY

ANSWER KEY

Identify what is being asked in each number. Choose your answer


from the choices on the box.

A. PROMPT
B. ALERT
CONFIRM

C.

1. It returns true if the user click "OK". Otherwise it


returns false. C
2. The second argument is the "default value" to be
displayed in the input textfield. A
3. If the user click the "OK" button, prompt() returns
the value in the input textfield as a string. A
4. Display a message in a dialog box. B
5. It is often used if you want to make sure
information comes through to the user. B

Enumerate what is being asked in each number.


A. Syntax for the Confirm Box
6-7. var answer = confirm("Are you sure?");

B. Syntax for the Prompt Box


8-9. prompt("What is your student id number?");
or prompt("What is your name?, "No name");

C. Syntax for the Alert Box


10. alert("Text to be displayed");

You might also like