Sie sind auf Seite 1von 9

Android Objective type Question and Answers

Android Objective type Question and Answers

1) Once installed on a device, each Android application lives in_______?


a)device memory
b)external memory
c) security sandbox
d)None of the above
Ans) c

2)Parent class of Activity?


a)Object
b)Context
c)ActivityGroup
d)ContextThemeWrapper
Ans) d

3)What are the Direct subclasses of Activity?


a)AccountAuthenticatorActivity
b) ActivityGroup
c) ExpandableListActivity

d) all the aove

Ans) d

4)What are the indirect Direct subclasses of Activity?


a)LauncherActivity
b)PreferenceActivity
c) TabActivity
d)All the above
Ans) d

5)Parent class of Service?


a)Object
b)Context
c) ContextWrapper
d)ContextThemeWrapper
Ans) c

6)What are the indirect Direct subclasses of Services?


a) RecognitionService
b) RemoteViewsService
c)SpellCheckerService
d)InputMethodService
Ans) d
7)Which component is not activated by an Intent?
a)Activity
b)Services
c)ContentProvider
d)BroadcastReceiver
Ans) c
8)When contentProvider would be activated?
a)Using Intent
b)Using SQLite
c)Using ContentResolver
d)None of the above
Ans) c
9)Which of the important device characteristics that you should consider as you design and develop your
application?
a)Screen size and density
b)Input configurations
c)Device features

d)All of the above


Ans) d
10)Which are the screen sizes in Android?
a)small
b)normal
c)large
d)All of the above
Ans) d

11)Which are the screen densities in Android?


a)low density
b)medium density
c)high density
d)extra high density
Ans) e

12)You can shut down an activity by calling its _______ method


a)onDestory()
b)finishActivity()
c)finish()
d)None of the above
Ans) c

13)What is the difference between Activity context and Application Context?


a) The Activity instance is tied to the lifecycle of an Activity.
while the application instance is tied to the lifecycle of the application,
b) The Activity instance is tied to the lifecycle of the application,
while the application instance is tied to the lifecycle of an Activity.
c) The Activity instance is tied to the lifecycle of the Activity,
while the application instance is tied to the lifecycle of an application.
d) None of the above
Ans) a
14)Which one is NOT related to fragment class?
a)DialogFragment
b)ListFragment
c)PreferenceFragment
d)CursorFragment
Ans)d
15)Definition of Loader?
a) loaders make it easy to asynchronously load data in an activity or fragment.
b) loaders make it easy to synchronously load data in an activity or fragment.
c) loaders does not make it easy to asynchronously load data in an activity or fragment.
d) None of the above.
Ans) a
16)Characteristics of the Loaders?
a)They are available to every Activity and Fragment.
b)They provide asynchronous loading of data.
c)They monitor the source of their data and deliver new results when the content changes.

d)All of the above.


Ans) d

17)How many ways to start services?


a)Started
b)Bound
c)a & b
d)None of the above.
Ans) c

18)If your service is private to your own application and runs in the same process as the client (which is
common), you should create your interface by extending the ________class?
a) Messenger
b) Binder
c) AIDL
d)None of the above
Ans) b

19)If you need your interface to work across different processes, you can create an interface for the service with
a ________?
a)Binder
b)Messenger
c)AIDL
d) b or c
Ans) d

20)AsyncTask allows you to perform asynchronous work on your user interface. It performs the blocking
operations in a worker thread and then publishes the results on the UI thread.
a)true
b)false
Ans) a

21)Layouts in android?
a)Frame Layout
b)Linear Layout
c)Relative Layout
d)All of the above
Ans) d

22) Dialog classes in android?


a)AlertDialog
b)ProgressDialog
c)DatePickerDialog
d)All of the above
Ans) d

23)If you want share the data accross the all applications ,you should go for?
a)Shared Preferences
b)Internal Storage
c)SQLite Databases
d)content provider
Ans) d

24)Difference between android api and google api?


a)The google API includes Google Maps and other Google-specific libraries. The Android one only includes
core android libraries.
b)The google API one only includes core android libraries. The Android includes Google Maps and other
Google-specific libraries.
c)None of the above.
Ans) a

25)what is an activity?
a)A single screen is an Application
b)Supporting Java Code
c)both a&b
d)None of these.

Ans:c

26)What A Single screen is an Application?


a)Activity
b)Intent
c)resource
d)None Of these
Ans :A

27)what is Intent?
a)A class which describes what a caller desires to do.
b)The caller will send this intent to android’s intent resolver.
c)both
d)None of these.

Ans :c

28)what is Sticky Intent?


a)sendIntentcast()
b)sendStickyBroadcast()
c)sendBroadcast(Intent)
d)Both B&C

ans : D
29)A User Defined JSON, XML,bitmap,or other file,injected into the application build process,which can later
be loaded from code.
a)Resource
b)Intent
c)Sticky Intent
d)Activity

ans:A

30)What is Resource?
a)A use define JSON
b)XML
c)bitmap
d)All of the above

ans d

31)Permission.PROCESS_OUTGOING_CALLS is
a)Allow to permission for an application monitor
b)Modify
c)abort outgoing calls
d)All of Above
ans : d

32)Android support the bluetooth serial port profile?


a)yes
b)no
c)it’s depend on conditon
d)both A&B.

Ans a

34)what are the features of Android?


a)Components can be reused and replaced by the application framework.
b)Optimized DVM for mobile devices
c)SQLite enables to store the data in a structured manner.
d)All of the Above.
Ans D

37)How is nine-patch image different from a regular bitmap?


a)No
b)The NinePatch class permits drawing a bitmap in nine sections.
c)It is a resizable bitmap resource that can be used for backgrounds or other images on the device.
d)Both b&c
ans d

38)what is exceptions of Android?


a) InflateException
b) Surface.OutOfResourceException
c) SurfaceHolder.BadSurfaceTypeException
d)All of the above.
Ans d
39)Surface.OutOfResourceException is a
a)When an error conditions are occurred, this exception is thrown
b)When a surface is not created or resized, this exception is thrown
c)This exception is thrown from the lockCanvas() method, when invoked on a Surface whose is
SURFACE_TYPE_PUSH_BUFFERS
d)This exception is thrown at the time of trying to add view an invalid WindowManager.LayoutParamstoken.

ans b
40)Inflate Exception is a
a)When an error conditions are occurred, this exception is thrown
b)When a surface is not created or resized, this exception is thrown
c)This exception is thrown from the lockCanvas() method, when invoked on a Surface whose is
SURFACE_TYPE_PUSH_BUFFERS
d)This exception is thrown at the time of trying to add view an invalid WindowManager.LayoutParamstoken.

Ans a

42)WindowManager.BadTokenException is a
a)When an error conditions are occurred, this exception is thrown
b)When a surface is not created or resized, this exception is thrown
c)This exception is thrown from the lockCanvas() method, when invoked on a Surface whose is
SURFACE_TYPE_PUSH_BUFFERS
d)This exception is thrown at the time of trying to add view an invalid WindowManager.LayoutParamstoken.
Ans dS

43)what is adb?
a)Android Debug Bridge
b)A command-line debugging application shipped with the SDK
c)It provides tools to browse the device.
d)All of above
ans bS

44)The Android releases available in a ROM?


a)yes
b)No
c)Android is not yet available in a ROM format
d)Both B&C
ans b

45)What is the future scope of Mobile Application developers?


a)When an error conditions are occurred, this exception is thrown
b)When a surface is not created or resized, this exception is thrown
c)This exception is thrown from the lockCanvas() method, when invoked on a Surface whose is
SURFACE_TYPE_PUSH_BUFFERS
d)Future of the mobile application development is bright
ans d

46)How do I create a new homescreen?


a)It is a resizable bitmap resource that can be used for backgrounds or other images on the device.
b)The NinePatch class permits drawing a bitmap in nine sections.
c)I have used up all the space on one of my homescreens and I want to add some more widgets to a new
homescreen. I can’t figure out how to add a new homescreen
d)A command-line debugging application shipped with the SDK
ans c

47)Is GSensor working?


a)yes
b)No
c)It’s depend on Condition
d)with the help of Intent
ans a

48)What is .apk extension?


a)In Android in Stable for Android package file
b)In this Package file containing all of the files to related for a single Android application.
c)In this file itself is a compressed collection of an AndroidManifest.xml file.
d)All of Above
ans d

49)What is Dalvik?
a)In Android in Stable for Android package file
b)In this Package file containing all of the files to related for a single Android application.
c)The Dalvik VM is an interpreter-only virtual machine that executes files in the Dalvik Executable (.dex)
format, a format that is optimized for efficient storage and memory-mappable execution.
d)The NinePatch class permits drawing a bitmap in nine sections.
Ans c

50)(.dex) format is a
a)GSensor extension
b)Dalvik extension
c)Anroid extension
d)Intent extension
ans b

51)Android Arhtecture
a)Intent
b)Resource externization
c)Notification signal certification
d)All of these
ans d

52)who is booted by running a special application called ‘Haret.exe’ residing on your SD Card which will
terminate the Windows kernel and boot into Linux/Android.
a)RAM
b)ROM
c)Cache Memory
d)Hard-disk
ans b

53)Android is using in real senario is


a)imagine a situation that you are in a country where no one understands the language you speak and you can
not read or write. However, you have mobile phone with you.
b)With a mobile phone with android, the Google translator translates the data of one language into another
language by using XMPP to transmit data.
c)You can type the message in English and select the language which is understood by the citizens of the
country in order to reach the message to the citizens.
d)All of these
ans d

54)What innovations the OHA members strive to achieve?


a)The OHA members have endeavoured to develop Android.
b)The open source mobile platform consisting of an OS and web browser and key applications.
c)None of these
d)Both A&B
ans d

55. Which of the following statements are correct?

A. The AndroidManifest.xml is optional and a default will be supplied if your app doesn’t provide one.
B. The AndroidManifest.xml must supply a unique Application package name for your App.
C. All Android applications must provide an Activity specified in AndroidManifest.xml.
D. You can specify your Apps target API in the AndroidManifest.xml.
E. The App name you specify in AndroidManifest.xml must be unique.

The correct answers are B and D.

56. Which of the following statements describe the Android SDK Emulator?

A. The Emulator does not actually run Android but is a software component which accurately interprets
and actions the whole Android API.
B. Apps deployed with the debug certificate on the Emulator must be re-signed to be deployed in the
Android Market
C. Only one Emulator can run at once.
D. The Emulators local IP address is the same as the host computer it runs on.
E. The Emulator does not need to be restarted each time an app is deployed to it.

The correct answers are B and E.

57. Which of the following statements correctly describe the signing process?

A. All applications must be signed in order to be deployed.


B. For local & non-Google Play development a self-signed certificate will work.
C. There are 3 signing modes: debug, test and release.
D. To distribute a test app to more than 100 targets a test certificate from Google must be issued for that
App.
E. A release mode certificate will be issued by Google for a one off fee when you register as an Android
developer and it will be valid for all apps you sign with.

The correct answers are A, B and E.

Das könnte Ihnen auch gefallen