Basic And Variables(Computer Science > Javascript ) Questions and Answers

Question 1. The development environment offers which standard construct for data validation
  1.    Super controlled loop constructs
  2.    Case sensitivity check
  3.    Validation constructs
  4.    All of the mentioned
Explanation:-
Answer: Option D. -> All of the mentioned

Question 2. The main purpose of a “Live Wire” in NetScape is to
  1.    Create linkage between client side and server side
  2.    Permit server side, JavaScript code, to connect to RDBMS
  3.    Support only non relational database
  4.    To interpret JavaScript code
Explanation:-
Answer: Option B. -> Permit server side, JavaScript code, to connect to RDBMS

Question 3. The script tag must be placed in
  1.    head
  2.    head and body
  3.    title and head
  4.    all of the mentioned
Explanation:-
Answer: Option B. -> head and body

Question 4. JavaScript is ideal to
  1.    make computations in HTML simpler
  2.    minimize storage requirements on the web server
  3.    increase the download time for the client
  4.    none of the mentioned
Explanation:-
Answer: Option B. -> minimize storage requirements on the web server

Question 5. A JavaScript program developed on a Unix Machine
  1.    will throw errors and exceptions
  2.    must be restricted to a Unix Machine only
  3.    will work perfectly well on a Windows Machine
  4.    will be displayed as a JavaScript text on the browser
Explanation:-
Answer: Option C. -> will work perfectly well on a Windows Machine

Question 6. Which attribute is used to specify that the script is executed when the page has finished parsing ( only for external scripts )
  1.    parse
  2.    a sync
  3.    defer
  4.    type
Explanation:-
Answer: Option C. -> defer

Question 7. JavaScript Code can be called by using
  1.    RMI
  2.    Triggering Event
  3.    Preprocessor
  4.    Function/Method
Explanation:-
Answer: Option D. -> Function/Method

Question 8. JavaScript can be written
  1.    directly into JS file and included into HTML
  2.    directly on the server page
  3.    directly into HTML pages
  4.    all of the mentioned
Explanation:-
Answer: Option A. -> directly into JS file and included into HTML

Question 9. Which of the following Attribute is used to include External JS code inside your HTML Document
  1.    src
  2.    ext
  3.    script
  4.    link
Explanation:-
Answer: Option A. -> src

Question 10. A proper scripting language is a
  1.    High level programming language
  2.    Assembly level programming language
  3.    Machinen level programming language
  4.    Low level programming language
Explanation:-
Answer: Option A. -> High level programming language