JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Javascript interview questions part 22
Javascript interview questions part 22
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. When does a memory leak happen?
A. Browser doesn’t release memory from objects unnecessary
B. Browser releases too many memories
C. All of the mentioned
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Browser doesn’t release memory from objects unnecessary
2. What will happen when the data of the jQuery.cache is read from an element?
A. Unique number is retrieved as elem[jQuery.expando]
B. Data is read from jQuery.cache[id]
C. Unique number is retrieved as elem[jQuery.expando] & Data is read from jQuery.cache[id]
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Unique number is retrieved as elem[jQuery.expando] & Data is read from jQuery.cache[id]
3. The style property belongs to while of the following object?
A. Element
B. Window
C. Location
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Element
4. Which of the following functions are referenced internally?
A. setTimeout
B. setInterval
C. both setTimeout and setInterval
D. none of the mentioned
Show Correct Answer
Correct Answer is :
both setTimeout and setInterval
5. What is the purpose of destroying the functions and objects?
A. Consume unnecessary CPU cycles
B. Prevent the dropping of reference count to 0
C. Centralize the responsibility to clean up
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
6. When does a cycle occur during memory leak?
A. No reference occurs
B. Two objects reference
C. One object gets referenced
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Two objects reference
7. Which of the following is a way to retain an object in memory?
A. Console Log
B. Closures
C. Destroy objects
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Console Log
8. How many default number methods are available in JavaScript?
A. 5
B. 6
C. 7
D. 8
Show Correct Answer
Correct Answer is :
7
9. What is an observer effect?
A. Observing influences outcome
B. Observing never influences outcome
C. Obversing and outcome are independent
D. Observing and outcome are not related
Show Correct Answer
Correct Answer is :
Observing influences outcome
10. Which of the following are ways to benchmark code?
A. Timing the code
B. Calculating the number of operations performed
C. Timing the code & Calculating the number of operations performed
D. Calculating the number of lines
Show Correct Answer
Correct Answer is :
Timing the code & Calculating the number of operations performed
11. How to calculate the run time of a code?
A. Start time – End time
B. End time – Start time
C. Start time/ End time
D. Start time * End time
Show Correct Answer
Correct Answer is :
End time – Start time
12. According to the workflow of a runtime logging, what happens after calculating the run time?
A. Display to screen
B. Log to server
C. Either Display to screen or Log to server
D. Server to log
Show Correct Answer
Correct Answer is :
Either Display to screen or Log to server
13. Which of the following object is used to post the data to an external process, say savePerfData?
A. XML
B. XBT
C. XHR
D. XTR
Show Correct Answer
Correct Answer is :
XHR
14. Where does the external process save the result of the test?
A. Normal file
B. Flat file
C. Folder
D. .exe file
Show Correct Answer
Correct Answer is :
Flat file
15. Which function is used to start the time logging?
A. startTimeLogging()
B. start()
C. Loggingstart()
D. startLogging()
Show Correct Answer
Correct Answer is :
startTimeLogging()
16. Which of the following attribute of form tag is not set by using document object in JavaScript?
A. Target
B. Enctype
C. Action
D. None of the mentioned
Show Correct Answer
Correct Answer is :
None of the mentioned
17. What will be result of following javascript function?
A. SanfoundryThe Best
B. Sanfoundry The Best
C. Object required error
D. Javascript Error
Show Correct Answer
Correct Answer is :
Sanfoundry The Best
18. What type of scope is present in JavaScript?
A. Lexical
B. Literal
C. Both Lexical and Literal
D. Local
Show Correct Answer
Correct Answer is :
Lexical
19. Which function is used to stop the time logging?
A. stopTimeLogging()
B. stop()
C. finish()
D. abort()
Show Correct Answer
Correct Answer is :
stopTimeLogging()
20. The lexical scooping in JavaScript is based on which of the following?
A. Segments
B. Blocks
C. Functions
D. Entire code
Show Correct Answer
Correct Answer is :
Functions
Similar Interview Questions
Search for latest jobs
Find Jobs