JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Javascript interview questions part 2
Javascript interview questions part 2
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Math.random() returns _______________
A. random number between 0 and 1
B. random number between 1 and 10
C. random number between 1 and 100
D. random number between 0 and 10
Show Correct Answer
Correct Answer is :
random number between 0 and 1
2. How many parameters does the WebPageTest API accept?
A. 5
B. 6
C. 7
D. 8
Show Correct Answer
Correct Answer is :
8
3. What is the purpose of getting the parameter block?
A. Permission to block
B. Space separated block list
C. Comma separated block list
D. Underscore separated block list
Show Correct Answer
Correct Answer is :
Comma separated block list
4. What will happen if you set the private flag as 1?
A. Test will be run only by the administrator
B. Test will not be run
C. Test is public
D. Test is not displayed in public
Show Correct Answer
Correct Answer is :
Test is not displayed in public
5. What is the purpose of getting the parameter fvonly?
A. To repeat the view test
B. To get the first view
C. To debug the code
D. To compile the code
Show Correct Answer
Correct Answer is :
To get the first view
6. What is the purpose of the file_get_contents()?
A. To get the errors and exceptions
B. To get the client’s response
C. To get the server’s response
D. To get the data
Show Correct Answer
Correct Answer is :
To get the server’s response
7. What will the file_get_contents() return?
A. Server’s response
B. Errors
C. Exception
D. Client’s response
Show Correct Answer
Correct Answer is :
Server’s response
8. How will you convert the returned API into an XML object?
A. SimpleElement()
B. SimpleXMLElement()
C. XMLElement()
D. CovertXML()
Show Correct Answer
Correct Answer is :
SimpleXMLElement()
9. Which tag can handle mouse events in Netscape?
A. img
B. a
C. br
D. src
Show Correct Answer
Correct Answer is :
img
10. What is the tainted property of the window object?
A. Pathname
B. Protocol
C. Default status
D. Host
Show Correct Answer
Correct Answer is :
Default status
11. Which environment variable must the user enable in order to enable data tainting?
A. ENABLE_TAINT
B. MS_ENABLE_TAINT
C. NS_ENABLE_TAINT
D. ENABLE_TAINT_NS
Show Correct Answer
Correct Answer is :
NS_ENABLE_TAINT
12. Which of the following can be implemented using animation?
A. Fireworks
B. Fade Effect
C. Roll-in or Roll-out
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
13. Which is the function that calls another function after a time interval?
A. setTimeout()
B. setTime()
C. callafter()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
setTimeout()
14. Which function is used to clear the timer value?
A. clearTimervalue()
B. clearTimeout()
C. clear()
D. flush(timer)
Show Correct Answer
Correct Answer is :
clearTimeout()
15. Which is the property used to position the object in the left of the screen?
A. object.position = left
B. object = position.left
C. object.style.left
D. none of the mentioned
Show Correct Answer
Correct Answer is :
object.style.left
16. Which is the function used to call a function in every time duration?
A. callafter()
B. setInterval()
C. setTimeout()
D. setTime()
Show Correct Answer
Correct Answer is :
setInterval()
17. How do we get the DOM object in JavaScript?
A. getElementbyId()
B. getObject()
C. getElement()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
getElementbyId()
18. How to assign the image source in JavaScript?
A. image = “url”
B. source(“url”)
C. image.src = “url”
D. none of the mentioned
Show Correct Answer
Correct Answer is :
image.src = “url”
19. How do we create and preload an image object in JavaScript?
A. Use new keyword
B. Call Image()
C. Both Use new keyword and Call Image()
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Both Use new keyword and Call Image()
20. Which event handler is triggered when the user’s mouse moves onto a link?
A. onMouseOver
B. onMouseOut
C. onMouse
D. onMouseOnto
Show Correct Answer
Correct Answer is :
onMouseOver
Similar Interview Questions
Search for latest jobs
Find Jobs