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
  1. Content Providers
  2. View System
  3. Notifications Manager
  4. Activity Manager
Ans: C:Notifications Manager

2) Broadcast that includes information about battery state, level, etc. is
  1. android.intent.action.BATTERY_CHANGED
  2. android.intent.action.BATTERY_LOW
  3. android.intent.action.BATTERY_OKAY
  4. 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
  1. Activities
  2. Broadcast Receivers
  3. Services
  4. Content Providers
Ans:C: Services

4) In android studio, callback that is called when activity interaction with user is started is
  1. onStart
  2. onStop
  3. onResume
  4. onDestroy
Ans:C: onResume

5) Tab that can be used to do any task that can be done from DOS window is
  1. TODO
  2. messages
  3. terminal
  4. comments
Ans:C: terminal

6) Android content provider architecture, component that does not resides on data layer is
  1. Internet
  2. SQLite
  3. Files
  4. 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
  1. startService()
  2. onStop()
  3. onDestroy()
  4. bindService()
Ans:D: bindService()
8) Broadcast of showing a bug activity is
  1. android.intent.action.BATTERY_CHANGED
  2. android.intent.action.BATTERY_OKAY
  3. android.intent.action.REBOOT
  4. android.intent.action.BUG_REPORT
Ans:D: android.intent.action.BUG_REPORT
9) Broadcast that displays information of OK battery state is
  1. android.intent.action.BOOT_COMPLETED
  2. android.intent.action.BATTERY_OKAY
  3. android.intent.action.BATTERY_CHANGED
  4. android.intent.action.BUG_REPORT
Ans:B: android.intent.action.BATTERY_OKAY
10) Broadcast of pressing call button to call someone is
  1. android.intent.action.CALL_BUTTON
  2. android.intent.action.BATTERY_CHANGED
  3. android.intent.action.CALL
  4. android.intent.action.REBOOT
Ans:A: android.intent.action.CALL_BUTTON
11) Broadcast of changed date is
  1. android.intent.action.DATE_CHANGED
  2. android.intent.action.BATTERY_CHANGED
  3. android.intent.action.CALL
  4. android.intent.action.REBOOT
Ans:A: android.intent.action.DATE_CHANGED
12) In android studio, service that provides client-server interface is
  1. bindService()
  2. onStart()
  3. startService()
  4. onCreate()
Ans:C: startService()

13) To generate custom intents in android, method is used is
  1. broadcastCreate()
  2. broadcastReceive()
  3. broadcastIntent()
  4. broadcastStart()
Ans:C: broadcastIntent()

14 Android library that provides access to content, its publishing and messaging among app components is
  1. android.app
  2. android.database
  3. android.opengl
  4. android.content
Ans:D: android.content

15) Broadcast that displays information of low battery
  1. android.intent.action.REBOOT
  2. android.intent.action.BATTERY_CHANGED
  3. android.intent.action.BATTERY_OKAY
  4. 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
  1. View System
  2. Content Providers
  3. Activity Manager
  4. Notifications Manager
Ans:B: Content Providers
17) Android library that provides access to UI pre-built elements such as buttons, lists, views etc. is
  1. android.text
  2. android.os
  3. android.view
  4. android.webkit
Ans:D: android.webkit

18) In android, right way to declare a package is
  1. package com-newspeak
  2. package com+newpak
  3. package com/newpak
  4. package com.newpak
Ans:D: package com.newpak

19) Android library that provides text manipulation and rendering of application is
  1. android.view
  2. android.webkit
  3. android.text
  4. android.os
Ans:C: android.text
20) One of application component, that manages interaction between operating system and android os is called
  1. Broadcast Receivers
  2. Content Providers
  3. Activities
  4. Services
Ans:A: Broadcast Receivers


Comments