ExamVeda
Login
Home
41
Which function is used to stop the time logging?
Discuss
Answer & Solution
Answer: Option A
Solution:
The function stopTimeLogging() is used to stop the time logging.
42
The lexical scooping in JavaScript is based on which of the following?
Discuss
Answer & Solution
Answer: Option C
Solution:
JavaScript has lexical scoping based on functions but not blocks.
43
What is the return data type of the property accept that belongs to the Input element?
Discuss
Answer & Solution
Answer: Option B
Solution:
When type is “file”, this property is a comma-separated list of MIME types that specify the types of files that may be selected. The strings “audio/*”, “video/*”, and “image/*” are also legal. Mirrors the accept attribute.
44
What is the purpose of the property width belonging to the ImageData element?
Discuss
Answer & Solution
Answer: Option C
Solution:
The width property is used to retrieve or store the number of pixels per row of data.
45
What is the purpose of the adoptNode() method?
Discuss
Answer & Solution
Answer: Option C
Solution:
This method removes node from whatever document it is currently part of and changes its ownerDocument property to this document, making it ready for insertion into this document.
46
What is the function of the method importNode()?
Discuss
Answer & Solution
Answer: Option A
Solution:
The method importNode() copies a node from another document without removing it.
47
How can you create a node for comment in JavaScript?
Discuss
Answer & Solution
Answer: Option B
Solution:
The comment node can be created using the method Comment createComment(string data).
48
How can you dispatch a synthetic event object?
Discuss
Answer & Solution
Answer: Option A
Solution:
When you have created and initialized an synthetic event object, you can dispatch it using the dispatchEvent() method of EventTarget.
49
How do you specifically execute a command in JavaScript?
Discuss
Answer & Solution
Answer: Option C
Solution:
The command can be executed using boolean execCommand(string commandId, [boolean showUI, [string value]]).
50
What is necessary when we need to create a new field in craft?
Discuss
Answer & Solution
Answer: Option C
Solution:
Whenever someone creates a new field in Craft, they must specify what type of field it is.