JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Javascript interview questions part 18
Javascript interview questions part 18
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which method is used to obtain the “drawing context” object ?
A. getContext()
B. getObject()
C. get()
D. getDrawing()
Show Correct Answer
Correct Answer is :
getContext()
2. What is the returning value of the getContext() method?
A. Drawing model
B. CanvasRenderingContext2D object
C. Context2D object
D. Container
Show Correct Answer
Correct Answer is :
CanvasRenderingContext2D object
3. Which is the method invoked to begin a path?
A. begin()
B. path()
C. createPath()
D. beginPath()
Show Correct Answer
Correct Answer is :
beginPath()
4. Which is the method invoked to connect the last vertex back to the first?
A. closePath()
B. close()
C. connectlast(first)
D. connect()
Show Correct Answer
Correct Answer is :
closePath()
5. Which of the following are not the properties of a canvas object?
A. fillStyle
B. strokeStyle
C. lineWidth
D. lineSize
Show Correct Answer
Correct Answer is :
lineSize
6. Which of the following is a property used to check how crisp or fuzzy shadows are?
A. shadowColor
B. shadowBlur
C. strokeStyle
D. stroke
Show Correct Answer
Correct Answer is :
shadowBlur
7. How do you restore a saved coordinate system?
A. restore()
B. getback()
C. set()
D. back()
Show Correct Answer
Correct Answer is :
restore()
8. The type that specifies what kind of event occurred is ____________
A. event type
B. even target
C. both event type and even target
D. interface
Show Correct Answer
Correct Answer is :
event type
9. Which is the object on which the event occurred or with which the event is associated?
A. event type
B. event target
C. both event type and even target
D. interface
Show Correct Answer
Correct Answer is :
event target
10. In general, event handler is nothing but ____________
A. function
B. interface
C. event
D. handler
Show Correct Answer
Correct Answer is :
function
11. When will the browser invoke the handler?
A. Program begins
B. Any event occurs
C. Specified event occurs
D. Webpage loads
Show Correct Answer
Correct Answer is :
Specified event occurs
12. Which property specifies the property of the event?
A. Type
B. Target
C. Manner
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Type
13. The process by which the browser decides which objects to trigger event handlers on is ____________
A. Event Triggering
B. Event Listening
C. Event Handling
D. Event propagation
Show Correct Answer
Correct Answer is :
Event propagation
14. Which form of event propagation handles the registered container elements?
A. Event Propagation
B. Event Registration
C. Event Capturing
D. Default Actions
Show Correct Answer
Correct Answer is :
Event Capturing
15. The events that are directly tied to a specific input device are ____________
A. Device-independent input events
B. Device-dependent input events
C. User interface events
D. State change events
Show Correct Answer
Correct Answer is :
Device-dependent input events
16. The high-level events among the following events are ____________
A. User interface events
B. Device-independent events
C. Device-dependent events
D. Stage event change
Show Correct Answer
Correct Answer is :
User interface events
17. The events that are not directly tied to a specific input device are _____________
A. User interface events
B. Device-independent events
C. Device-dependent events
D. Stage event change
Show Correct Answer
Correct Answer is :
Device-independent events
18. What does an History object contain?
A. URL
B. Parameters
C. Attribute values
D. Property
Show Correct Answer
Correct Answer is :
URL
19. The history object is a part of which object?
A. Property
B. Window
C. Location
D. Screen
Show Correct Answer
Correct Answer is :
Window
20. How many methods are there in the History object?
A. 3
B. 4
C. 5
D. 6
Show Correct Answer
Correct Answer is :
3
Similar Interview Questions
Search for latest jobs
Find Jobs