Professional Documents
Culture Documents
JS Impotant Question
JS Impotant Question
JS Impotant Question
1. The development environment offers which standard construct for data validation
A) Super controlled loop constructs
B) Case sensitivity check
C) Validation constructs
D) All of the mentioned
Answer : D
______________________________________________________________________www.study2online.com
4. JavaScript is ideal to
A) make computations in HTML simpler
B) minimize storage requirements on the web server
C) increase the download time for the client
D) None of the mentioned
Answer : B
______________________________________________________________________www.study2online.com
6. Which of the following Attribute is used to include External JS code inside your HTML
Document
A) src
B) ext
C) script
D) link
Answer : A
______________________________________________________________________www.study2online.com
______________________________________________________________________www.study2online.com
15. Local Browser used for validations on the Web Pages uses __________.
A) Java
B) HTML
C) CSS
D) JS
Answer : D
______________________________________________________________________www.study2online.com
______________________________________________________________________www.study2online.com
19. Which attribute is used to specify that the script is executed when the page has finished
parsing ( only for external scripts )
A) parse
B) a sync
C) defer
D) type
Answer : C
______________________________________________________________________www.study2online.com
20. Which of the following Attribute is used to include External JS code inside your HTML
Document
A) src
B) ext
C) script
D) link
Answer : A
______________________________________________________________________www.study2online.com
24. The snippet that has to be used to check if “a― is not equal to “null― is
A) if(a!=null)
B) if (!a)
C) if(a!null)
D) if(a!==null)
Answer : D
______________________________________________________________________www.study2online.com
26. 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)
A) false.toString()
B) String(false)
C) String newvariable=―false―
D) Both false.toString() and String(false)
Answer : D
______________________________________________________________________www.study2online.com
27. Consider the following snippet code<br/> <pre>var string1 = ―123―;<br/> var intvalue
= 123;<br/> alert( string1 + intvalue );</pre><br/> The result would be
A) 123246
B) 246
C) 123123
D) Exception
Answer : C
______________________________________________________________________www.study2online.com
31. Which of the operator is used to test if a particular property exists or not?
A) in
B) exist
C) within
D) exists
Answer : A
______________________________________________________________________www.study2online.com
34. To determine whether one object is the prototype of (or is part of the prototype chain of)
another object, one should use the
A) isPrototypeOf() method
B) equals() method
C) === operator
D) none of the mentioned
Answer : A
______________________________________________________________________www.study2online.com
39. 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
Answer : C
______________________________________________________________________www.study2online.com
C) Mozilla Firefox
D) Google Chrome
Answer : B
______________________________________________________________________www.study2online.com