Android multiple choice questions
- To perform inter-communication between activities or services ______ is required:
- Binder
- Intent
- AIDL
- Service
- How to set a launcher activity?
- using application node in AndroidManifest.
- using Layout node in main.xml
- using string.xml
- None of the above
- Which Intent ACTION is required to launch GPS Setting activity?
- ACTION_CAPTURE
- ACTION_GPS_ENABLE
- ACTION_VIEW
- ACTION_LOCATION_SOURCE_SETTINGS
- If user can interact with the activity, then the activity is in ______ state
- Foreground
- Background
- Suspended
- Dead
- Which method needs to be called to stop an activity
- finish()
- end()
- destroy()
- None of the above
- How to enable your application to receive a SMS?
- using action android.provider.Telephony.SMS_RECEIVED
- using action android.provider.Telephony.RECEIVE_SMS
- using BroadcastReceiver component
- using 1,2 and 3 all together
- How to define standard interface for IPC using services?
- Using ARI
- Using AIDL
- Using UUID
- Using INTENT
- ______ is the file extension for a Silverlight-based application package.
- ipa
- apk
- xap
- apx
- ______ includes a list of phone capabilities that the application needs to use, the default main page, the application's icon and background images.
- ApplicationManifesh.xml
- WMAppManifest.xml
- AppManifest.xml
- PhoneAppManifest.xml
- The tasks which launch a feature and do not return a value are called as:
- Launcher
- Choosers
- Simple Tasks
- Complex Tasks
- The tasks which launch a feature and do return a value are called as:
- Launcher
- Choosers
- Simple Tasks
- Complex Tasks
- How to pass integer value to next Activity?
- using Intent class method putExtra(String name, int value)
- using Intent class method putInt(String name, int value)
- using Bundle class method putExtra(String name, int value)
- using Bundle class method putIntExtra(String name, int value)
- In stopped state an activity can do
- Nothing
- UI Creation
- IPC
- Internet Communication
- In which year the OHA (Open Handset Alliance) is announced?
- 2001
- 2002
- 2005
- 2007
- _____ class allows to perform background operations and publish results on UI thread without having to manipulate threads or handlers.
- Service
- AsyncTask
- Thread
- None of the above
- The ____ method is called when bindService is used to start a service
- onBind()
- onStartCommand()
- onServiceBind()
- onServiceStartCommand()
- What is the use of ADT plugins
- to enable Android application debugging with Eclipse
- to enable Android application development with Eclipse
- to enable Android application packaging with Eclipse
- All of the above
- Which amongst these is not a native library?
- Dalvik
- SGL
- OpenGL
- SQLite
- When Android boot finishes _____ broadcast message is sent by System
- ACTION_BOOT_COMPLETED
- ACTION_BOOT_FINISH
- ACTION_BOOT_DONE
- BOOT_LOADING_COMPLETE
- _____ compiler compiles .class files into .dex files
- dx
- javac
- dexer
- None of the above
- _____ process is responsible for starting Android Virtual machine
- init
- zygote
- system service
- kernel
- What is a Nine Patch PNG?
- a image that takes less space
- a image that cannot be modified again
- a image with stretchable areas
- a image with collapsible areas
- _____ method is used to launch another activity
- startActivity()
- launchActivity()
- showActivity()
- displayActivity()
- When startActivityForResult() is used which of the following callback method is called
- onActivityResult()
- onActivityStartup()
- onResult()
- onStartup()
- The unbound service can be started by
- startService()
- createService()
- showService()
- None of the above
- _____ class needs to be subclasses to create database in Android
- SQLiteOpenHelper
- SQLiteHelper
- SqliteOpenHelper
- Sqlite Helper
- To register Broadcast Receiver in AndroidManifest.xml file ____ element is used
- receiver
- broadcast_receiver
- broadcastreceiver
- None of the above
- ______ Action is required to make an activity as startup activity
- android.intent.action.MAIN
- android.intent.action.Main
- Android.intent.Action.Main
- Android.Intent.Action.Main
- Which one of the following tag is used to use permission?
- <permission..>
- <uses-permission..>
- <create-permission..>
- <use-permission..>
- _____ property indicates what proportion of the free space should go with the widget?
- android:layout_width
- android:layout_height
- android:layout_weight
- android:gravity
- The weight for widget is _____ by default
- 0
- 1
- -1
- 0.5
- _____ property tells Android to slide the contents of the widget or container in a particular direction
- android:gravity
- android:layout_gravity
- android:alignment
- android:layout_alignment
- The file system used till Android 2.3 is
- YAFFSV2
- ext2
- NTFS
- FAT
- _____ gives activity specific preferences
- getSharedPreferences()
- getPreferences()
- getDefaultSharedPreferences()
- None of the above
- Implicit intent required to pass _____ to its constructor
- Class
- Name of the class
- Action
- Path to the class
- The max limit of the message sent using C2DM is ___ while that in GCM is
- 1kb and 4 kb
- 2kb and 8 kb
- 4kb and 4kb
- 1kb and 10 kb
- ____ layer in Android is responsible for memory management
- Kernel
- Libraries
- Application Frameworks
- Applications
- ____ are ways of organizing multiple widgets into some sort of structure
- Containers
- Holders
- ViewHolders
- ViewFlippers
- The first emulator starts on ____ port
- 5558
- 5556
- 5552
- 5554
- ____ handles mounting and formatting the volumes and images
- volume
- vold
- systemmanager
- keystore
- ____ action is used in intent to launch phone application with number
- ACTION_PHONE
- ACTION_DIAL
- ACTION_PHONE_NUMBER
- ACTION_MAKE_CALL
- Accelerometer gives displacement in ____ unit
- m/s
- m/s2
- mm/s
- mm/s2
- Which of the following class is required to communicate with content provider
- ContentResolverManager
- ContentProviderResolver
- ContentProviderManager
- ContentResolver
- Which of the following tag is required to register a content provider
- <provider>
- <contentprovider>
- <content_provider>
- <content-provider>
- Which one of the following utilities is used to sign an Android application
- signer
- jarsigner
- signjar
- jarsign
No comments:
Post a Comment