JavaScript and Ajax Interview Questions 3
21. What does the <noscript> tag do?
A. Enclose text to be displayed by non-JavaScript browsers.
B.  Prevents scripts on the page from executing.
C. Describes certain low-budget movies.
D. None of the above
22. If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?
A. “New Text”?
B. para1.value=”New Text”;
C. para1.firstChild.nodeValue= “New Text”;
D. para1.nodeValue=”New Text”;
23. JavaScript entities start with _______ and end with _________.
A. Semicolon, colon
B.  Semicolon, Ampersand
C. Ampersand, colon
D. Ampersand, semicolon
24. Which of the following best describes JavaScript?
A. a low-level programming language.
B.  a scripting language precompiled in the browser.
C. a compiled scripting language.
D. an object-oriented scripting language.
25. Choose the server-side JavaScript object?
A. FileUpLoad
B.  Function
C. File
D. Date
26. Choose the client-side JavaScript object?
A. Database
B.  Cursor
C. Client
D. FileUpLoad
27. Which of the following is not considered a JavaScript operator?
A. new
B. this
C. delete
D. typeof
28. ______method evaluates a string of JavaScript code in the context of the specified object.
A. Eval
B.  ParseInt
C. ParseFloat
D. Efloat
29. Which of the following event fires when the form element loses the focus: <button>, <input>, <label>, <select>, <textarea>?
A. onfocus
B. onblur
C. onclick
D. ondblclick
30. The syntax of Eval is ________________
A. [objectName.]eval(numeric)
B. [objectName.]eval(string)
C. [EvalName.]eval(string)
D. [EvalName.]eval(numeric)























