Javascript Interview Questions - 14 | Snaprecruit.com

Javascript Interview Questions - 14 | Snaprecruit.com

Javascript interview questions part 14

Javascript interview questions part 14

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. Where is the information of the userAgent property located?

Correct Answer is : appVersion

2. Each tab in the single web browser window is called as ____________

Correct Answer is : Browsing context

3. Nested documents inside the HTML documents can be created using ___________

Correct Answer is : iframe

4. How are windows, tabs, iframes, and frames treated according to client-side javascript?

Correct Answer is : They are all browsing contexts

5. How are windows, tabs, iframes, and frames treated according to javascript?

Correct Answer is : They are all Window objects

6. A new web browser window can be opened using which method of the Window object?

Correct Answer is : Window.open()

7. What will happen if the first argument of open() is omitted?

Correct Answer is : Remains in the same page

8. Which object serves as the global object at the top of the scope chain?

Correct Answer is : Window

9. Which is the property of a Window object that holds the name of the frame?

Correct Answer is : name

10. When will the fourth argument to open() useful?

Correct Answer is : When the second argument names an existing window

11. The inner frame within a top-level window can be referred to as _____________

Correct Answer is : parent.parent

12. What will be the output of the following Javascript code? var string1 = ”123”; var intvalue = 123; alert( string1 + intvalue );

Correct Answer is : 123123

13. A function definition expression can be called as __________

Correct Answer is : Function literal

14. The property of a primary expression is ____________

Correct Answer is : stand-alone expressions

15. Consider the following statements. var text = "testing: 1, 2, 3"; // Sample text var pattern = /\d+/g // Matches all instances of one or more digits In order to check if the pattern matches with the string “text”, the statement is

Correct Answer is : pattern.test(text)

16. The expression of calling ( or executing ) a function or method in JavaScript is called ________

Correct Answer is : Invocation expression

17. What kind of an expression is “new Point(2,3)”?

Correct Answer is : Object Creation Expression

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

Correct Answer is : in

19. Among the following, which one is a ternary operator?

Correct Answer is : ?:

20. “An expression that can legally appear on the left side of an assignment expression.” is a well known explanation for variables, properties of objects, and elements of arrays. They are called

Correct Answer is : Lvalue

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon