MCQ Chapter 6
Chapter
6
Sprucing up mobile apps
1) - What is
Pending Intent in android?
C -
It will fire at a future point of time.
Ans:
C: It will fire at a future point of time.
2) - WHich of the
following is/are are the subclasses in Android?
D - All of above
Ans:D:
All of above
3. Which permissions
are required to get a location in android?
A -
ACCESS_FINE and ACCESS_COARSE
Ans:A:
ACCESS_FINE and ACCESS_COARSE
4) 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
a) Fireworks
b) Fade Effect
c) Roll-in or Roll-out
d) All of the mentioned
Ans:D: All of the mentioned
5) Which is the function that calls another function
after a time interval?
a) setTimeout()
b) setTime()
c) callafter()
d) timeSet()
a) setTimeout()
b) setTime()
c) callafter()
d) timeSet()
Ans:A: setTimeout()
6) Which function is used to clear the timer value?
a) clearTimervalue()
b) clearTimeout()
c) clear()
d) flush(timer)
a) clearTimervalue()
b) clearTimeout()
c) clear()
d) flush(timer)
Ans:B: clearTimeout()
7) 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) object.shiftleft
a) object.position = left
b) object = position.left
c) object.style.left
d) object.shiftleft
Ans:C: object.style.left
8) Which is the function used to call a function in
every time duration?
a) callafter()
b) setInterval()
c) setTimeout()
d) setTime()
a) callafter()
b) setInterval()
c) setTimeout()
d) setTime()
Ans:B: setInterval()
9) How do we get the DOM object in JavaScript?
a) getElementbyId()
b) getObject()
c) getElement()
d) getNodeobject()
a) getElementbyId()
b) getObject()
c) getElement()
d) getNodeobject()
Ans:A: getElementbyId()
10) How to assign the image source in JavaScript?
a) image = “url”
b) source(“url”)
c) image.src = “url”
d) img.src=”url”
a) image = “url”
b) source(“url”)
c) image.src = “url”
d) img.src=”url”
Ans:C: image.src =
“url”
11) 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) Set image()
a) Use new keyword
b) Call Image()
c) Both Use new keyword and Call Image()
d) Set image()
Ans:C: Both Use new keyword and Call Image()
12) Which event handler is triggered when the user’s
mouse moves onto a link?
a) onMouseOver
b) onMouseOut
c) onMouse
d) onMouseOnto
a) onMouseOver
b) onMouseOut
c) onMouse
d) onMouseOnto
Ans:A: onMouseOver
13) Which event handler is triggered when the user’s mouse
moves away from a link?
a) onMouseOver
b) onMouseOut
c) onMouse
d) onMouseOnto
a) onMouseOver
b) onMouseOut
c) onMouse
d) onMouseOnto
Ans:B: onMouseOut
14) In which part does the form validation occur?
a) Client
b) Server
c) Both Client and Server
d) User side
a) Client
b) Server
c) Both Client and Server
d) User side
Ans:B: Server
15) How do you focus a particular part of the HTML
page in JavaScript?
a) hover()
b) focus()
c) on()
d) focuson()
a) hover()
b) focus()
c) on()
d) focuson()
Ans:B: focus()
16) Which of the following is the child object of the
JavaScript navigator?
a) Navicat
b) Plugins
c) NetRight
d) Plugs
a) Navicat
b) Plugins
c) NetRight
d) Plugs
Ans:B: Plugins
17) Which of the following is not the properties of a
plug-in entry?
a) name
b) filename
c) mimeTypes
d) value
a) name
b) filename
c) mimeTypes
d) value
Ans:D: value
18) What is the purpose of the mimeTypes property of a plug-in entry?
a) Contains MIME properties
b) Contains MIME sizes
c) Contains MIME types
d) Contains MIME methods
a) Contains MIME properties
b) Contains MIME sizes
c) Contains MIME types
d) Contains MIME methods
Ans:C: Contains MIME types
19) Which side of the image map can be created using
JavaScript?
a) Server side
b) Client side
c) Both Server and Client side
d) User side
a) Server side
b) Client side
c) Both Server and Client side
d) User side
Ans:B: Client side
20) Which is the attribute used to enable the Client-side
image map?
a) map
b) area
c) usemap
d) areamap
a) map
b) area
c) usemap
d) areamap
Ans:C: usemap
Comments
Post a Comment