Sail E0 Webinar

MCQs

Total Questions : 82 | Page 2 of 9 pages
Question 11. JavaScript Code can be called by using
  1.    RMI
  2.    Triggering Event
  3.    Preprocessor
  4.    Function/Method
 Discuss Question
Answer: Option D. -> Function/Method
Question 12. The type of a variable that is volatile is
  1.    Volatile variable
  2.    Mutable variable
  3.    Immutable variable
  4.    Dynamic variable
 Discuss Question
Answer: Option B. -> Mutable variable
Question 13. The generalised syntax for a real number representation is
  1.    [digits][.digits][(E|e)[(+|-)]digits]
  2.    [digits][+digits][(E|e)[(+|-)]digits]
  3.    [digits][(E|e)[(+|-)]digits]
  4.    [.digits][digits][(E|e)[(+|-)]digits]
 Discuss Question
Answer: Option A. -> [digits][.digits][(E|e)[(+|-)]digits]
Question 14. When there is an indefinite or an infinity value during an arithmetic value computation, javascript
  1.    Prints an exception error
  2.    Prints an overflow error
  3.    Displays “Infinity”
  4.    Prints the value as such
 Discuss Question
Answer: Option C. -> Displays “Infinity”
Question 15. Which of the following is not considered as an error in JavaScript?
  1.    Syntax error
  2.    Missing of semicolons
  3.    Division by zero
  4.    All of the mentioned
 Discuss Question
Answer: Option C. -> Division by zero
Question 16. The escape sequence ‘f’ stands for
  1.    Floating numbers
  2.    Representation of functions that returns a value
  3.    f is not present in JavaScript
  4.    Form feed
 Discuss Question
Answer: Option D. -> Form feed
Question 17. The snippet that has to be used to check if “a” is not equal to “null” is
  1.    if(a!=null)
  2.    if (!a)
  3.    if(a!null)
  4.    if(a!==null)
 Discuss Question
Answer: Option D. -> if(a!==null)
Question 18. Assume that we have to convert “false” that is a non-string to string. The command that we use is (without invoking the “new” operator)
  1.    false.toString()
  2.    String(false)
  3.    String newvariable=”false”
  4.    Both false.toString() and String(false)
 Discuss Question
Answer: Option D. -> Both false.toString() and String(false)
Question 19. The statement a===b refers to
  1.    Both a and b are equal in value, type and reference address
  2.    Both a and b are equal in value
  3.    Both a and b are equal in value and type
  4.    There is no such statement
 Discuss Question
Answer: Option C. -> Both a and b are equal in value and type
Question 20. Consider the following snippet code
var string1 = ”123”;
var intvalue = 123;
alert( string1 + intvalue )
  1.    123246
  2.    246
  3.    123123
  4.    Exception
 Discuss Question
Answer: Option C. -> 123123

Latest Videos

Latest Test Papers