MCQ Chapter 4
Chapter
4
Mobile
Application Functionality- Beyond UI
1)      A type of service provided by
android that shows messages and alerts to user is
- Content Providers
 - View System
 - Notifications Manager
 - Activity Manager
 
Ans: C:Notifications Manager
2) Broadcast that
includes information about battery state, level, etc. is
- android.intent.action.BATTERY_CHANGED
 - android.intent.action.BATTERY_LOW
 - android.intent.action.BATTERY_OKAY
 - android.intent.action.CALL_BUTTON
 
Ans:A:
android.intent.action.BATTERY_CHANGED
3) One of
application component, that manages application's background services is called
- Activities
 - Broadcast Receivers
 - Services
 - Content Providers
 
Ans:C: Services
4) In android
studio, callback that is called when activity interaction with user is started
is
- onStart
 - onStop
 - onResume
 - onDestroy
 
Ans:C: onResume
5) Tab that can be
used to do any task that can be done from DOS window is
- TODO
 - messages
 - terminal
 - comments
 
Ans:C: terminal
6) Android content
provider architecture, component that does not resides on data layer is
- Internet
 - SQLite
 - Files
 - content provider
 
Ans:D: content provider
7) In android
studio, a service that is started and cannot be stopped even calling activity is
destroyed is
- startService()
 - onStop()
 - onDestroy()
 - bindService()
 
Ans:D: bindService()
8) Broadcast of
showing a bug activity is
- android.intent.action.BATTERY_CHANGED
 - android.intent.action.BATTERY_OKAY
 - android.intent.action.REBOOT
 - android.intent.action.BUG_REPORT
 
Ans:D:
android.intent.action.BUG_REPORT
9) Broadcast that
displays information of OK battery state is
- android.intent.action.BOOT_COMPLETED
 - android.intent.action.BATTERY_OKAY
 - android.intent.action.BATTERY_CHANGED
 - android.intent.action.BUG_REPORT
 
Ans:B:
android.intent.action.BATTERY_OKAY
10) Broadcast of
pressing call button to call someone is
- android.intent.action.CALL_BUTTON
 - android.intent.action.BATTERY_CHANGED
 - android.intent.action.CALL
 - android.intent.action.REBOOT
 
Ans:A: android.intent.action.CALL_BUTTON
11) Broadcast of
changed date is
- android.intent.action.DATE_CHANGED
 - android.intent.action.BATTERY_CHANGED
 - android.intent.action.CALL
 - android.intent.action.REBOOT
 
Ans:A:
android.intent.action.DATE_CHANGED
12) In android
studio, service that provides client-server interface is
- bindService()
 - onStart()
 - startService()
 - onCreate()
 
Ans:C: startService()
13) To generate
custom intents in android, method is used is
- broadcastCreate()
 - broadcastReceive()
 - broadcastIntent()
 - broadcastStart()
 
Ans:C: broadcastIntent()
14 Android library
that provides access to content, its publishing and messaging among app
components is
- android.app
 - android.database
 - android.opengl
 - android.content
 
Ans:D: android.content
15) Broadcast that
displays information of low battery
- android.intent.action.REBOOT
 - android.intent.action.BATTERY_CHANGED
 - android.intent.action.BATTERY_OKAY
 - android.intent.action.BATTERY_LOW
 
Ans:D:
android.intent.action.BATTERY_LOW
16) A type of
service provided by android that allows sharing and publishing of data to other
applications is
- View System
 - Content Providers
 - Activity Manager
 - Notifications Manager
 
Ans:B: Content Providers
17) Android
library that provides access to UI pre-built elements such as buttons, lists,
views etc. is
- android.text
 - android.os
 - android.view
 - android.webkit
 
Ans:D: android.webkit
18) In android,
right way to declare a package is
- package com-newspeak
 - package com+newpak
 - package com/newpak
 - package com.newpak
 
Ans:D: package com.newpak
19) Android
library that provides text manipulation and rendering of application is
- android.view
 - android.webkit
 - android.text
 - android.os
 
Ans:C: android.text
20) One of
application component, that manages interaction between operating system and
android os is called
- Broadcast Receivers
 - Content Providers
 - Activities
 - Services
 
Ans:A: Broadcast Receivers
Comments
Post a Comment