JavaScript Code can be called by using……….
a) RMI
b) Triggering Event
c) Preprocessor
d) Function/Method
Explanation: JavaScript code can be called by making a function call to the element on which JavaScript has to be run. There are many other methods like onclick, onload, and onsubmit etc.
JavaScript can be written………..
a) directly into JS file and included into HTML
b) directly on the server page
c) directly into HTML pages
d) directly into the css file
Explanation: JavaScript files can be saved by .JS extension and can be included in the HTML files. Script tag along with src attribute is used to include the js files.
Which of the following Attribute is used to include External JS
code inside your HTML Document?
a) src
b) ext
c) script
d) link
Explanation: Script “tag” is used to include the JavaScript code. To include external JavaScript files “src” attribute is used inside the script tag.
A proper scripting language is a……….
a) High level programming language
b) Assembly level programming language
c) Machine level programming language
d) Low level programming language
The type of a variable that is volatile is……….
a) Volatile variable
b) Mutable variable
c) Immutable variable
d) Dynamic variable
Explanation: The variables whose values can be changed are called mutable variable types. In JavaScript, only objects and arrays are mutable, not primitive values.
A hexadecimal literal begins with……….
a) 00
b) 0x
c) 0X
d) Both 0x and 0X
Explanation: Generally, X or x denotes hexadecimal values. So, any integer literal that begins with 0X or 0x denotes a hexadecimal number.