JavaScript is interpreted by _________
1.Client
2.Server
3.Object
4.None of the above
Inside which HTML element do we put the JavaScript?
1.<js>
2.<scripting>
3.<script>
4.<javascript>
Which of the following are capabilities of functions in JavaScript?
1.Return a value
2.Accept parameters and Return a value
3. Accept parameters
4.None of the above
Which of the following can’t be done with client-side JavaScript?
1. Validating a form
2.Sending a form’s contents by email
3.Storing the form’s contents to a database file on the server
4. None of the above
______ tag is an extension to HTML that can enclose any number of JavaScript statements.
1.<SCRIPT>
2.<BODY>
3.<HEAD>
4. <TITLE>
Choose the client-side JavaScript object?
1.Database
2.Cursor
3.Client
4.file upload
How does JavaScript store dates in a date object?
1.The number of milliseconds since January 1st, 1970
2.The number of days since January 1st, 1900
3.The number of seconds since Netscape’s public stock offering.
4.None of the above
JavaScript entities start with _______ and end with _________.
1. Semicolon, colon
2.Semicolon, Ampersand
3.Ampersand, colon
4.Ampersand, semicolon
The syntax of Eval is ________________
1. [objectName.]eval(numeriC.
2.[objectName.]eval(string)
3. [EvalName.]eval(string)
4. [EvalName.]eval(numeriC.
Using _______ statement is how you test for a specific condition.
1.Select
2. If
3.Switch
4.For
What are variables used for in JavaScript Programs?
1.Storing numbers, dates, or other values
2. Varying randomly
3.Causing high-school algebra flashbacks
4.None of the above
What does the <noscript> tag do?
1.Enclose text to be displayed by non-JavaScript browsers.
2.Prevents scripts on the page from executing.
3. Describes certain low-budget movies.
4.None of the above
What is the correct JavaScript syntax to write “Hello World�
1.System.out.println(“Hello Worldâ€)
2.println (“Hello Worldâ€)
3.document.write(“Hello Worldâ€)
4.response.write(“Hello Worldâ€)
What should appear at the very end of your JavaScript? The <script LANGUAGE=â€JavaScriptâ€>tag
1.The </script>
2. The <script>
3.The END statement
4.None of above
Which is the correct way to write a JavaScript array?
1.var txt = new Array(1:†Timâ€,2:†Kimâ€,3:†Jimâ€)
2. var txt = new Array_1=(“Timâ€)2=(“Kimâ€)3=(“Jimâ€)
3.var txt = new Array(“Timâ€,†Kimâ€,†Jimâ€)
4.var txt = new Array=†Timâ€,†Kimâ€,†Jimâ€
Which of the following attribute can hold the JavaScript version?
1.LANGUAGE
2.SCRIPT
3.VERSION
4.None of the above
Which of the following best describes JavaScript?
1.a low-level programming language.
2.a scripting language precompiled in the browser.
3. a compiled scripting language.
4.an object-oriented scripting language.
Which of the following event fires when the form element loses the focus: <button>, <input>, <label>, <select>, <textarea>?
1.onfocus
2.onblur
3.onclick
4.ondblclick
Which of the following navigator object properties is the same in both Netscape and IE?
1. navigator.appCodeName
2. navigator.appName
3.navigator.appVersion
4.None of the above
Which of the following way can be used to indicate the LANGUAGE attribute?
1.<LANGUAGE=â€JavaScriptVersionâ€>
2. <SCRIPT LANGUAGE=â€JavaScriptVersionâ€>
3.<SCRIPT LANGUAGE=â€JavaScriptVersionâ€> JavaScript statements…</SCRIPT>
4.<SCRIPT LANGUAGE=â€JavaScriptVersionâ€!> JavaScript statements…</SCRIPT>
Which types of image maps can be used with JavaScript?
1.Server-side image maps
2.Client-side image maps
3.Server-side image maps and Client-side image maps
4.None of the above
Why so JavaScript and Java have a similar name?
1.JavaScript is a stripped-down version of Java
2.JavaScript’s syntax is loosely based on Java’s
3. They both originated on the island of Java
4.None of the above
____ JavaScript statements embedded in an HTML page can respond to user events such as mouse clicks, form input, and page navigation.
1.Client-side
2.Server-side
3.Local
4.Native
_____method evaluates a string of JavaScript code in the context of the specified object.
1.Eval
2.ParseInt
3.ParseFloat
4.Efloat
______ JavaScript is also called client-side JavaScript.
1.Microsoft
2.Navigator
3.LiveWire
4.Native