Commerce

Basic 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 ?

  1. A. IE
  2. B. Netscape
  3. C. Mozilla Firefox
  4. D. Google Chrome
Report Error

Which attribute is used to specifies that the script is executed when the page has finished parsing (only for external scripts)

  1. A. parse
  2. B. async
  3. C. defer
  4. D. type
Report Error

It is good to include JS code inside footer section in order to speed up the Page loading time of Webpage.

  1. A. True
  2. B. False
Report Error

JS code included inside head section is loaded before loading page.

  1. A. True
  2. B. False
Report Error

We can embed JS code inside HTML directly ?

  1. A. True
  2. B. False
Report Error

Local Browser used for validations on the Web Pages uses __________.

  1. A. CSS
  2. B. JS
  3. C. HTML
  4. D. Java
Report Error

JavaScript Code is written inside file having extension __________.

  1. A. .javascript
  2. B. .jsc
  3. C. .jvs
  4. D. .js
Report Error

JavaScript is designed for following purpose

  1. A. To Style HTML Pages
  2. B. To Execute Query Related to DB on Server
  3. C. To add interactivity to HTML Pages.
  4. D. To Perform Server Side Scripting Opertion
Report Error

JavaScript is ______ Side Scripting Language.

  1. A. Server
  2. B. Browser
  3. C. ISP
  4. D. None of These
Report Error

Javascript is _________ language.

  1. A. Programming
  2. B. Application
  3. C. None of These
  4. D. Scripting
Report Error

The basic purpose of the toLocaleString() is to

  1. A. return a localised object representation
  2. B. return a parsed string
  3. C. return a local time in the string format
  4. D. return a localized string representation of the object
Report Error

Identify the process done in the below code snippet o = { x : 1 , y :{ z :[false,null, "" ]}} ; s = JSON . stringify ( o ) ; p = JSON . parse ( s ) ;

  1. A. Object Encapsulation
  2. B. Object Serialization
  3. C. Object Abstraction
  4. D. Object Encoding
Report Error