CommerceBasic And Variables MCQs
Practice Basic And Variables MCQs for competitive exams.
Basic And Variables MCQs
Practice questions from this topic.
Which was the first browser to support JavaScript ?
- A. IE
- B. Netscape
- C. Mozilla Firefox
- D. Google Chrome
Correct Answer: B
Which attribute is used to specifies that the script is executed when the page has finished parsing (only for external scripts)
- A. parse
- B. async
- C. defer
- D. type
Correct Answer: C
It is good to include JS code inside footer section in order to speed up the Page loading time of Webpage.
- A. True
- B. False
Correct Answer: A
JS code included inside head section is loaded before loading page.
- A. True
- B. False
Correct Answer: A
We can embed JS code inside HTML directly ?
- A. True
- B. False
Correct Answer: A
Local Browser used for validations on the Web Pages uses __________.
- A. CSS
- B. JS
- C. HTML
- D. Java
Correct Answer: B
JavaScript Code is written inside file having extension __________.
- A. .javascript
- B. .jsc
- C. .jvs
- D. .js
Correct Answer: D
JavaScript is designed for following purpose
- A. To Style HTML Pages
- B. To Execute Query Related to DB on Server
- C. To add interactivity to HTML Pages.
- D. To Perform Server Side Scripting Opertion
Correct Answer: C
JavaScript is ______ Side Scripting Language.
- A. Server
- B. Browser
- C. ISP
- D. None of These
Correct Answer: B
Javascript is _________ language.
- A. Programming
- B. Application
- C. None of These
- D. Scripting
Correct Answer: D
The basic purpose of the toLocaleString() is to
- A. return a localised object representation
- B. return a parsed string
- C. return a local time in the string format
- D. return a localized string representation of the object
Correct Answer: D
Identify the process done in the below code snippet o = { x : 1 , y :{ z :[false,null, "" ]}} ; s = JSON . stringify ( o ) ; p = JSON . parse ( s ) ;
- A. Object Encapsulation
- B. Object Serialization
- C. Object Abstraction
- D. Object Encoding
Correct Answer: B