JavaScript/Javascript Multiple Choice Questions Sample Test,Sample questions

Question:
  JavaScript is interpreted by _________

1.Client

2.Server

3.Object

4.None of the above

Posted Date:-2022-04-17 07:35:41


Question:
 Inside which HTML element do we put the JavaScript?

1.<js>

2.<scripting>

3.<script>

4.<javascript>

Posted Date:-2022-04-17 07:19:27


Question:
 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

Posted Date:-2022-04-17 07:08:43


Question:
 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

Posted Date:-2022-04-17 07:07:38


Question:
 ______ tag is an extension to HTML that can enclose any number of JavaScript statements.

1.<SCRIPT>

2.<BODY>

3.<HEAD>

4. <TITLE>

Posted Date:-2022-04-17 07:14:13


Question:
Choose the client-side JavaScript object?

1.Database

2.Cursor

3.Client

4.file upload

Posted Date:-2022-04-17 07:27:59


Question:
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

Posted Date:-2022-04-17 07:15:07


Question:
JavaScript entities start with _______ and end with _________.

1. Semicolon, colon

2.Semicolon, Ampersand

3.Ampersand, colon

4.Ampersand, semicolon

Posted Date:-2022-04-17 07:26:34


Question:
The syntax of Eval is ________________

1. [objectName.]eval(numeriC.

2.[objectName.]eval(string)

3. [EvalName.]eval(string)

4. [EvalName.]eval(numeriC.

Posted Date:-2022-04-17 07:34:03


Question:
Using _______ statement is how you test for a specific condition.

1.Select

2. If

3.Switch

4.For

Posted Date:-2022-04-17 07:36:41


Question:
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

Posted Date:-2022-04-17 07:04:05


Question:
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

Posted Date:-2022-04-17 07:25:28


Question:
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”)

Posted Date:-2022-04-17 07:17:17


Question:
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

Posted Date:-2022-04-17 07:06:40


Question:
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”

Posted Date:-2022-04-17 07:24:54


Question:
Which of the following attribute can hold the JavaScript version?

1.LANGUAGE

2.SCRIPT

3.VERSION

4.None of the above

Posted Date:-2022-04-17 07:15:47


Question:
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.

Posted Date:-2022-04-17 07:27:12


Question:
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

Posted Date:-2022-04-17 07:32:59


Question:
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

Posted Date:-2022-04-17 07:22:54


Question:
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>

Posted Date:-2022-04-17 07:18:19


Question:
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

Posted Date:-2022-04-17 07:21:11


Question:
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

Posted Date:-2022-04-17 07:00:55


Question:
____ 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

Posted Date:-2022-04-17 07:05:36


Question:
_____method evaluates a string of JavaScript code in the context of the specified object.

1.Eval

2.ParseInt

3.ParseFloat

4.Efloat

Posted Date:-2022-04-17 07:28:45


Question:
______ JavaScript is also called client-side JavaScript.

1.Microsoft

2.Navigator

3.LiveWire

4.Native

Posted Date:-2022-04-17 07:01:59


More MCQS

  1. JavaScript MCQ Questions And Answers
  2. JavaScript MCQ Questions And Answers Set 2
  3. JavaScript MCQ Set 1
  4. JavaScript MCQ Set 2
  5. Javascript MCQ Questions Set 1
  6. Javascript Multiple Choice Questions
  7. JAVASCRIPT MCQ
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!