JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Javascript interview questions part 6
Javascript interview questions part 6
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Arrange the TCP/IP model layers in the order from farthest to closest to the end user.
A. Network Access Layer, Internet Layer, Application Layer, Transport Layer
B. Network Access Layer, Transport Layer, Internet Layer, Application Layer
C. Network Access Layer, Internet Layer, Transport Layer, Application Layer
D. Network Access Layer, Application Layer, Internet Layer, Transport Layer
Show Correct Answer
Correct Answer is :
Network Access Layer, Internet Layer, Transport Layer, Application Layer
2. What does the interpreter do when you reference variables in other scopes?
A. Traverses the queue
B. Traverses the stack
C. Finds the bugs
D. Traverse the array
Show Correct Answer
Correct Answer is :
Traverses the stack
3. The attribute location belongs to which element?
A. document
B. html
C. image
D. pre
Show Correct Answer
Correct Answer is :
document
4. What will happen if you reference document.location from within an object?
A. Traverses the queue
B. Finds the bugs
C. Traverses the stack
D. Traverses the array
Show Correct Answer
Correct Answer is :
Traverses the stack
5. Why do we need to create locally scoped variables to hold value?
A. To optimize the testing process
B. To increase the speed
C. To minimize memory usage
D. To cache the reference document.location
Show Correct Answer
Correct Answer is :
To cache the reference document.location
6. What is the next step after calling the startTimeLogging()?
A. Interpret the code
B. Compile the code
C. Run the code
D. Debug the code
Show Correct Answer
Correct Answer is :
Run the code
7. During the traversing through the stack, where does it go after it goes to the namespace?
A. Window
B. Function
C. Document
D. Location
Show Correct Answer
Correct Answer is :
Window
8. During the traversing through the stack, where does it go after it goes to the window?
A. Namespace
B. Function
C. Document
D. Nowhere
Show Correct Answer
Correct Answer is :
Nowhere
9. During the traversing of the stack when you create a locally scoped variable, where does it go after it goes to the namespace?
A. Window
B. Function
C. Document
D. Location
Show Correct Answer
Correct Answer is :
Function
10. What is the function used to stop capturing the ad hoc timing ?
A. stopadhoc()
B. stopTimer()
C. stopTimeLogging()
D. stophoc()
Show Correct Answer
Correct Answer is :
stopTimeLogging()
11. During the traversing of the stack when you create a locally scoped variable, where does it go after it goes to the location?
A. Window
B. Function
C. Document
D. Nowhere
Show Correct Answer
Correct Answer is :
Nowhere
12. The behaviour of the instances present of a class inside a method is defined by __________
A. Method
B. Classes
C. Interfaces
D. Classes and Interfaces
Show Correct Answer
Correct Answer is :
Classes
13. The keyword or the property that you use to refer to an object through which they were invoked is _________
A. from
B. to
C. this
D. object
Show Correct Answer
Correct Answer is :
this
14. Consider the following code snippet: var o = new F(); o.constructor === F The output would be:
A. FALSE
B. TRUE
C. 0
D. 1
Show Correct Answer
Correct Answer is :
TRUE
15. The basic difference between JavaScript and Java is _________
A. There is no difference
B. Functions are considered as fields
C. Variables are specific
D. Functions are values, and there is no hard distinction between methods and fields
Show Correct Answer
Correct Answer is :
Functions are values, and there is no hard distinction between methods and fields
16. The meaning for Augmenting classes is that:
A. objects inherit prototype properties even in dynamic state
B. objects inherit prototype properties only in dynamic state
C. objects inherit prototype properties in static state
D. object doesn’t inherit prototype properties in static state
Show Correct Answer
Correct Answer is :
objects inherit prototype properties even in dynamic state
17. The property of JSON() method is:
A. it can be invoked manually as object.JSON()
B. it will be automatically invoked by the compiler
C. it is invoked automatically by the JSON.stringify() method
D. it cannot be invoked in any form
Show Correct Answer
Correct Answer is :
it is invoked automatically by the JSON.stringify() method
18. When a class B can extend another class A, we say that:
A. A is the superclass and B is the subclass
B. B is the superclass and A is the subclass
C. Both A and B are the superclass
D. Both A and B are the subclass
Show Correct Answer
Correct Answer is :
A is the superclass and B is the subclass
19. If A is the superclass and B is the subclass, then subclass inheriting the superclass can be represented as _________
A. B=inherit(A);
B. B=A.inherit();
C. B.prototype=inherit(A);
D. B.prototype=inherit(A.prototype);
Show Correct Answer
Correct Answer is :
B.prototype=inherit(A);
20. The snippet that filters the filtered set is:
A. var t=new FilteredSet(s, {function(s) {return !(x instanceof Set);});
B. var t=new FilteredSet{function(s) {return !(x instanceof Set);});
C. var t=new FilteredSet(s, {function(s) {return (x instanceof Set);});
D. var t=new FilteredSet(s, {function(s) {return x;});
Show Correct Answer
Correct Answer is :
var t=new FilteredSet(s, {function(s) {return !(x instanceof Set);});
Similar Interview Questions
Search for latest jobs
Find Jobs