BreakInterview

1. JavaScript can be written

directly into JS file and included into HTML
directly on the server page
directly into HTML pages
All of the mentioned

2. Which of the following Attribute is used to include External JS code inside your HTML Document

link
ext
script
src

3. Which of the following is not considered as an error in JavaScript?

Syntax error
Missing of semicolons
Division by zero
None of the above

4. The escape sequence ‘\f’ stands for

Floating numbers
Representation of functions that returns a value
\f is not present in JavaScript
Form feed

5. Predict the output of following snippet code.
var string1 = ”123”;
var intvalue = 123;
alert( string1 + intvalue );

123246
246
123123
Exception

6. Which of the operator is used to test if a particular property exists or not?

in
exist
within
exists

7. The “var” and “function” are

Keywords
Declaration statements
Datatypes
Prototypes

8. In the below switch syntax, the expression is compared with the case labels using which of the following operator(s) ?
switch(expression)
{
    statements
}

==
equals
equal
===

9. What will happen if the body of a for/in loop deletes a property that has not yet been enumerated?

The property will be stored in a cache
The loop will not run
That property will not be enumerated
None of the above

10. Among the keywords below, which one is not a statement?

debugger
with
if
use strict