Question 1)
What does a browser do when it encounters the following code in a web page? document.write( "It works!");
| A) displays It works! in a web page |
| B) displays an error message because there is an invalid tag |
| C) displays document.write( "It works!"); because there is an invalid tag |
Question 2)
Which of the following choices are names for built-in JavaScript objects?
| D) document, window, and script |
| E) document, window, and var |
Question 3
Which of the following is NOT the name of a method for the window or document objects?
| all of the above are methods for either the document or window object |
Flag this Question
Question 4)
Which of the following is NOT a JavaScript operator?
E) | all of the above are operators |
Question 5)
What is displayed when the code below is placed inside of
Question 9)
What is the value of x after this code is executed? (It is inside SCRIPT tags). var y = 2; x = 1 + 2 * y + 3;
Question 101 pts
What is displayed by the program below? (It is inside SCRIPT tags). var x = 3; var y = 4; document.write( (x + 1) ^ (y - 1) ;
E) | nothing because there is a syntax error |