Web Application Quiz 4 JavaScript 1
questions with correct answers.
Which of the following is an example of a composite or complex data type? ANS -Array
JavaScript code in an HTML document goes within which HTML element? ANS -<script> </script>
JavaScript is a ____ programming language. ANS -loosely typed
If a variable is declared and does not include the var keyword, the variable is automatically considered a
global variable in JavaScript. ANS -True
The ____ method displays a dialog box with a message, a text box, an OK button, and a Cancel button.
ANS -window.prompt()
This data type is used to store numbers that contain decimal places or that are written in exponential
notation. ANS -floating-point number
This is used to locate and view any error messages that a browser might generate when processing your
JavaScript code. ANS -Browser console
You can place <script> elements in either the document head or in the document body. ANS -True
In JavaScript programming, you can only use the words yes and no to indicate Boolean values. ANS -
False
____ can turn static documents into applications such as games or calculators. ANS -Javascript
JavaScript, unlike most full programming languages, does not require declaring a data type. ANS -True
questions with correct answers.
Which of the following is an example of a composite or complex data type? ANS -Array
JavaScript code in an HTML document goes within which HTML element? ANS -<script> </script>
JavaScript is a ____ programming language. ANS -loosely typed
If a variable is declared and does not include the var keyword, the variable is automatically considered a
global variable in JavaScript. ANS -True
The ____ method displays a dialog box with a message, a text box, an OK button, and a Cancel button.
ANS -window.prompt()
This data type is used to store numbers that contain decimal places or that are written in exponential
notation. ANS -floating-point number
This is used to locate and view any error messages that a browser might generate when processing your
JavaScript code. ANS -Browser console
You can place <script> elements in either the document head or in the document body. ANS -True
In JavaScript programming, you can only use the words yes and no to indicate Boolean values. ANS -
False
____ can turn static documents into applications such as games or calculators. ANS -Javascript
JavaScript, unlike most full programming languages, does not require declaring a data type. ANS -True