Sail E0 Webinar

MCQs

Total Questions : 10
Question 1. What is the purpose of the parameter $name ?
  1.    Document Name
  2.    Input Name
  3.    Output Name
  4.    ID
 Discuss Question
Answer: Option B. -> Input Name


The parameter $name is the name you should assign your HTML input's name= attribute.


Question 2. Which of the following are ways to benchmark code?
  1.    Timing the code
  2.    Calculating the number of operations performed
  3.    Both a and b
  4.    None of the mentioned
 Discuss Question
Answer: Option C. -> Both a and b


There are a couple of ways to benchmark code”either by timing it or by calculating the number of operations performed during execution.


Question 3. How many reserved words are there in JavaScript?
  1.    63
  2.    54
  3.    68
  4.    90
 Discuss Question
Answer: Option A. -> 63


There are a total of 63 reserved words in JavaScript.


Question 4. How can you create a node for comment in JavaScript?
  1.    comment()
  2.    createComment()
  3.    Comm()
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> createComment()


The comment node can be created using the method Comment createComment(string data).


Question 5. According to the workflow of a runtime logging, what happens after calculating the run time?
  1.    Display to screen
  2.    Log to server
  3.    Either a or b
  4.    None of the mentioned
 Discuss Question
Answer: Option C. -> Either a or b


According to the workflow of a runtime logging, after calculating the run time, decision boxes are kept that will check to either display to the debug screen or log to the server.


Question 6. What will be the radix value if the string begins with 0x?
  1.    13
  2.    14
  3.    15
  4.    16
 Discuss Question
Answer: Option D. -> 16


If the string begins with 0x, then the radix value will be 16.


Question 7. What is the purpose of the UgilifyJS?
  1.    Exposes a simple API
  2.    Minification
  3.    Both a and b
  4.    None of the mentioned
 Discuss Question
Answer: Option C. -> Both a and b


UglifyJS2 is an excellent tool to help you minify your JavaScript! It's a tried and tested tool, used by libraries such as jQuery.


Question 8. What will be the radix value of the parseInt() method when the string begins with any other value other than 0x and 0?
  1.    8
  2.    9
  3.    10
  4.    11
 Discuss Question
Answer: Option C. -> 10


The radix value will be 10 when the string of the method parseInt() begins with any other value other than 0x and 0.


Question 9. What is the parameter of the method Date.parse()?
  1.    date
  2.    string
  3.    datestring
  4.    string
 Discuss Question
Answer: Option C. -> datestring


The parse method is defined as Date.parse(datestring).


Question 10. Which of the following JavaScript logging tool is also a debugging tool?
  1.    Blackbird
  2.    Log Hound
  3.    jsTracer
  4.    fvlogger
 Discuss Question
Answer: Option C. -> jsTracer


jsTracer is a simple yet feature rich JavaScript logging and debugging tool. It is especially useful for debugging what has been coined "Web 2.0 code.


Latest Videos

Latest Test Papers