BreakInterview

1. When a user views a page containing a JavaScript program, which machine actually executes the script ?

The User's machine running a Web browser
The Web server
Google
None of the above

2. Which of the following can't be done with client-side JavaScript ?

Validating a form
Sending a form's contents by email
Storing the form's contents to a database file on the server
None of the above

3. Which of the following attribute can hold the JavaScript version ?

LANGUAGE
SCRIPT
VERSION
None of the above

4. What does the <noscript> tag do ?

Prevents scripts on the page from executing.
Enclose text to be displayed by non-JavaScript supported browsers.
Describes random property.
None of the above

5. What is the output ?

44
8
4
Error

6. A linkage of series of prototype objects is called as :

prototype stack
prototype chain
prototype class
prototypes

7. The basic purpose of the toLocaleString() is to

return a localised object representation
return a parsed string
return a local time in the string format
return a localized string representation of the object

8. A function with no return value is called

Procedures
Method
Static function
Dynamic function

9. Which is an equivalent code to invoke a function m of class o that expects two arguments x and y?

o(x,y);
o.m(x) && o.m(y);
m(x,y);
o.m(x,y);

10. What kind of scoping does JavaScript use?

Literal
Lexical
Segmental
Sequential