Notification texts go here Contact Us Buy Now!

android mcq

android mcq

 android mcq

Q 1 - How to kill an activity in Android?

a)     A - finish()

b)    B - finishActivity (int requestCode)

c)     C - A & B

d)    D - kill()

e)     E - None of the Above

Q 2 -How many sizes are supported by Android?

a)     A - Android supported all sizes

b)    B - Android does not support all sizes

c)     C - Android supports small, normal, large and extra-large sizes

d)    D - Size is undefined in android

Q 3 - On which thread broadcast receivers will work in android?

a)     A - Worker Thread

b)    B - Main Thread

c)     C - Activity Thread

d)    D - None of the Above

Q 4 - How to get current location in android?

a)     A - Using with GPRS

b)    B - Using location provider

c)     C - A & B

d)    D - SQlite

e)     E - Network servers

Q 5 - What is ADB in android?

a)     A - Image tool

b)    B - Development tool

c)     C - Android Debug Bridge

d)    D - None of the above.

Q 6 - What does httpclient.execute() returns in android?

a)     A - Http entity

b)    B - Http response

c)     C - Http result

d)    D - None of the above.

Q 7 During an Activity life-cycle, what is the first callback method invoked by the system?

a)     onStop()

b)    B. onStart()

c)     onCreate()

d)    onRestore()

Q 8 What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resource XML?

a)    findViewByReference(int id);

b)    findViewById(int id)

c)     retrieveResourceById(int id)

d)    findViewById(String id)

Q 9 What does the “src” folder contain?

a)    Image and icon files

b)    XML resource files

c)     The application manifest file

d)    Java source code files

Q 10 Android releases since 1.5 have been given nicknames derived from how?

a)     Adjective and strange animal

b)    Food.

c)     Something that starts w/ ‘A’ -> Something that starts w/ ‘B’…

d)    American states

Q 11 What is the name of the program that converts Java byte code into Dalvik byte code?

a)     Android Interpretive Compiler (AIC)

b)    Dalvik Converter

c)     Dex compiler

d)    Mobile Interpretive Compiler (MIC)

Q 12 Difference between android API and Google API?

a)     A The Google API includes Google Maps and other Google-specific libraries. The Android one only includes core Android libraries

b)    B. The Google API one only includes core android libraries. The Android includes Google Maps and other Google-specific libraries

c)     C. None of the above

Q 13 When developing for the Android OS, Java bytecode is compiled into what?

a)     Java source code

b)    Dalvik application code

c)     Dalvik byte code

d)    C source code

Q 14 Which Programming Language Is Used For Android Application Development?

a)     NodeJs

b)    PHP

c)     JSX

d)    Java

Q 15 Action Bar Can Be Associated To

a)     Only Fragments

b)    Only Activities

c)     Both Activities And Fragments

d)    None Of The Above

Q 16  What is Manifest.xml in android?

a)     It has information about layout in an application

b)    It has all the information about an application

c)     It has the information about activities in an application

d)    None of the above

Q 17 The R file is a(an) generated file

a)     Automatically

b)    Manually

c)     Emulated

d)    None of the above

Q 18 The------ File specifies the layout of your screen.

a)     Layout file

b)    Manifest file

c)     String XML

d)    D.R file

Q 19 What is contained within the manifest xml; file?

a)     The permissions the app requires

b)    The list of strings used in the app

c)     The source code

d)    All above choices

Q 20 Which one is not a nickname of version of Android?

a)     Cupcake

b)    Gingerbread

c)     Honeycomb

d)    Muffin

1.  A and B

2. C

3. B

4. C

5. C

6. B

7. C

8. B

9. D

10. B

11. C

12. A

13. C

14. D

15. B

16. B

17. A

18. A

19. A

20. D

 

Q 21   When contentProvider would be activated ?

a)    A        Using Intent

b)   B       Using SQLite

c)    C       Using ContentResolver

d)   D       None

Q22   An activity can be thought of as corresponding to what?

a)    A        A Java project

b)   B       A Java class

c)    C       A method call

d)   D       An object field

 

Q 23  What is the permission for using the camera?

a)    A        android.permission.USE_CAMERA

b)   B       android.permission.CAMERA

c)    C       android.permission.hardware.CAMERA

d)   D       None of the above.

 

Q 24  What Does AAPT Stands For?

a)    A        Android Asset Processing Tool

b)   B       Android Asset Providing Tool

c)    C       Android Asset Packaging Tool

d)   D       Android Asset Packaging Technique

 

Q25   What Is JNI In Android?

a)    A        Java Interface

b)   B       Java Native Interface

c)    C       Java Network Interface

d)   D       Image Editable Tool

 

Q 26  In which technique, we can refresh the dynamic content in android?

a)    A        Ajax

b)   B       Java

c)    C       Android

d)   D       None of These

 

Q 27  What is an interface in android?

a)    A        Interface is a class

b)   B       Interface acts as a bridge between class and the outside world.

c)    C       Interface is a layout file

d)   D       All of the above

 

Q 28 The Android Software Development Kit (SDK) is all you need to develop applications for Android.

a)     True

b)    False

Q 29 What runs in the background and doesn't have any UI components?

a)     Intents

b)    Content Providers

c)     Services

d)    Applications

 

Q 30. Following is not the Method used in Intent.

a)     Action_Main

b)    Action_Dial

c)     Action_Message

d)    Action_SendTo

 

21. C

22 .B

23. B

24. C

25. B

26. A

27. B

28. A

29. C

30. C

 

Q 31.What was the first phone released that ran the Android OS?

a)    Google gPhone

b)   T-Mobile G1

c)    Motorola Droid

d)   HTC Hero

Q32. Which one is NOT related to fragment class?

a)    DialogFragment

b)   ListFragment

c)    PreferenceFragment

d)   CursorFragment

 

Q 33. A ___________ makes a specific set of the application data available to other applications

a.     Content provider

b.    Broadcast receivers

c.     Intent

d.    None of these

Q 34. Which among these are NOT a part of Android’s native libraries?

a.     Webkit

b.    Dalvik

c.     OpenGL

d.    SQLite

Q 35. What was Google’s main business motivation for supporting Android?

a)    To level the playing field for mobile devices

b)   To directly compete with the iPhone

c)    To corner the mobile device application market for licensing purposes

d)   To allow them to advertise more

Q 36 What year was the Open Handset Alliance announced?

a)    2005

b)   2006

c)    2007

d)   2008

Q 37. The android library that provides access to UI pre-built elements such as buttons, lists, views etc. is

a)     android.text

b)    android.os

c)     android.view

d)    android.webkit

Q 38. Android is based on Linux for the following reason.

a)     Security

b)    Portability

c)     Networking

d)    All of these

Q39. Which among the following are part of "Application" layer of Android Architecture

a)     Contacts

b)    Browser

c)     Phone

d)    All of these

Q 40. Which company developed android?

a)     Apple

b)    Google

c)     Android Inc

d)    Nokia

Q41. Version code of Android 6.0 is?

a)     LOLLIPOP_MR1

b)    Oreo

c)     MARSHMALLOW

d)    Nugget

Q 42. Which of the following is not a Features of Android?

a)     Connectivity

b)    Storage

c)     Slide Mobango

d)    Multi-touch

 

Q 43. Which are the screen sizes in Android?

a)     )   small 

b)    )   normal

c)     )   large 

d)    )   all of the above

Q 44. Definition of Loader?

a)     A )   loaders make it easy to synchronously load data in an activity or fragment.

b)    B )   loaders make it easy to asynchronously load data in an activity or fragment. 

c)     C )   loaders does not make it easy to asynchronously load data in an activity or fragment.

d)    D )   none of the above.

Q 45. What are the indirect Direct subclasses of Activity?

a)     A )   launcherActivity

b)    B )   preferenceActivity

c)     C )   tabActivity

d)    D )   all the above

Q 46. What are the Direct subclasses of Activity?

a)     A )   ListActivity

b)    B )   ActivityGroup

c)     C )   FragmentActivity

d)    D )   all the above

Q 47. What is the difference between Activity context and Application Context?

a)     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)    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)     C )   The Activity instance is tied to the lifecycle of the application, while the application instance is tied to the lifecycle of an application. 

d)    D )   none of the above

Q 48. What are the indirect Direct subclasses of Services?

a)     A )   recognitionService

b)    B )   remoteViewsService

c)     C )   spellCheckerService

d)    D )   inputMethodService

Q 49. Parent class of Service?

a)     A )   Object

b)    B )   Context 

c)     C )   ContextWrapper

d)    D )   ContextThemeWrapper

Q 50. Which one is NOT related to fragment class?

a)     A )   dialogFragment

b)    B )   listFragment

c)     C )   preferenceFragment

d)    D )   cursorFragment

 

31       B

32      D

33      A

34      B

35      D

36      C

37      D

38      D

39      D

40      C

41       C

42      C

43      D

44      B

45      D

46      D

47      A

48      D

49      C

50      D

 

Q51. Once installed on a device, each Android application lives in_______?

a)     A )   device memory

b)    B )   external memory

c)     C )   security sandbox

d)    D )   None of the above

Q52. You can shut down an activity by calling its _______ method

a)     A )   onDestory() 

b)    B )   finishActivity() 

c)     C )   finish() 

d)    D )   None of the above

Q53. Which component is not activated by an Intent?

a)     A )   activity 

b)    B )   services 

c)     C )   ContentProvider

d)    D )   broadcastReceiver

Q54. Parent class of Activity?

a)     A )   object 

b)    B )   context 

c)     C )   activityGroup

d)    D )   contextThemeWrapper

Q55. Layouts in android?

a)     A )   Frame Layout 

b)    B )   Linear Layout 

c)     C )   Relative Layout 

d)    D )   All of the above

Q56. Android tries hard to _____low-level components, such as the software stack, with interfaces so that vendor-specific code can be managed easily.

a)     A )   confound 

b)    B )   absract

c)     C )   modularize

d)    D )   compound

Q57. What will services be used for in the Yamba project?

a)     A )   Recompile the source code

b)    B )   It will update tweets periodically in the background

c)     C )   The services will pause the app

d)    D )   Configures the user interface

Q58. Which among these are NOT a part of Android’s native libraries?

a)     A )   Webkit

b)    B )   Dalvik

c)     C )   OpenGL

d)    D )   SQLite

Q59. What file is responsible for gluing everything together, explaining what the application consists of, what its main building blocks are, ext.…?

a)     A )   Layout file

b)    B )   Strings XML

c)     C )   R file 

d)    D )   Manifest file

Q60. The XML file that contains all the text that your application uses.

a)     A )   stack.xml 

b)    B )   text.xml

c)     C )   strings.xml 

d)    D )   string.java

Q61. The Emulator is identical to running a real phone EXCEPT when emulating/simulating what?

a)     A )   Telephony 

b)    B )   Applications 

c)     C )   Sensors 

d)    D )   The emulator can emulate/simulate all aspects of a smart phone.

Q62. Creating a UI (User Interface) in Android requires careful use of…

a)     A )   Java and SQL 

b)    B )   XML and Java

c)     C )   XML and C++

d)    D )   Dream weaver

Q63. If the UI begins to behave crash while making network calls, this is likely due to…

a)     A )   Network latency 

b)    B )   Hardware malfunctions 

c)     C )   Virus on the Server

d)    D )   Activity manager contains too much.

Q64. While developing Android applications, developers can test their apps on…

a)     A )   Emulator included in Android SDK 

b)    B )   Physical Android phone 

c)     C )   Third-party Emulators (Youwave, etc.)

d)    D )   All three options will work

Q65. Which of these are not one of the three main components of the

APK?

a)     A )   Dalvik Executable 

b)    B )   Resources 

c)     C )   Native Libraries

d)    D )   Webkit

Q66. If you want share the data across the all applications ,you should go for?

a)     A )   Shared Preferences 

b)    B )   Content provider

c)     C )   Internal Storage 

d)    D )   SQLite Databases

Q67. What was the main reason for replacing the Java VM with the Dalvik VM when the project began?

a)     A )   There was not enough memory capability 

b)    B )   Java virtual machine was not free

c)     C )   Java VM was too complicated to configure 

d)    D )   Java VM ran too slow

Q68. Dialog classes in android?

a)     A )   AlertDialog

b)    B )   ProgressDialog

c)     C )   DatePickerDialog

d)    D )   All of the above

Q69. How is a simulator different from an emulator?

a)     A )   Emulators are only used to play old SNES games, simulators are used for software development 

b)    B )   The emulator is shipped with the Android SDK and third party simulators are not

c)     C )   The emulator can virtualize sensors and other hardware features, while the simulator cannot 

d)    D )   The emulator imitates the machine executing the binary code, rather than simulating the behavior of the code at a higher level

Q70. Which piece of code used in Android is not open source?

a)     A )   Keypad driver

b)    B )   Wifi? driver 

c)     C )   Audio driver

d)    D )   Power management

51       C

52      C

53      C

54      D

55      D

56      B

57      B

58      B

59      D

60      C

61       C

62      B

63      A

64      D

65      D

66      B

67      B

68      D

69      D

70      B

 

 

Q71. When the activity is not in focus, but still visible on the screen it is in?

a)     A )   running state 

b)    B )   stopped state

c)     C )   paused state

d)    D )   destroyed state

Q72. What is the driving force behind an Android application and that ultimately gets converted into a Dalvik executable?

a)     A )   Java source code.

b)    B )   R-file. 

c)     C )   The emulator 

d)    D )   The SDK

Q73. The emulated device for android

a)     A )   Runs the same code base as the actual device, all the way down to the machine layer

b)    B )   Is more of a simulator, and acts as a virtual machine for the Android device 

c)     C )   Runs the same code base as the actual device, however at a higher level 

d)    D )   An imaginary machine built on the hopes and dreams of baby elephants

Q74. Status data will be exposed to the rest of the Android system via:

a)     A )   Intents

b)    B )   A content provider

c)     C )   Network receivers

d)    D )   Altering permissions

Q75. What is a funny fact about the start of Android?

a)     A )   It was originally going to be called UFO 

b)    B )   The first version of Android was released without an actual phone on the market

c)     C )   Androids main purpose was to unlock your car door when you left the keys inside of it

d)    D )   Was going to be a closed source application to make more money for its company

Q76. Which of the following is NOT a state in the lifecycle of a service?

a)     A )   Starting

b)    B )   Running

c)     C )   Destroyed 

d)    D )   Paused

Q77. When an activity doesn’t exist in memory it is in

a)     A )   Starting state 

b)    B )   Running state

c)     C )   Loading state

d)    D )   Inexistent state

Q78. What was Google’s main business motivation for supporting Android?

a)     A )   To level the playing field for mobile devices 

b)    B )   To directly compete with the iPhone

c)     C )   To corner the mobile device application market for licensing purposes 

d)    D )   To allow them to advertise more

Q79. What built-in database is Android shipped with?

a)     A )   SQLite

b)    B )   Apache

c)     C )   MySQL 

d)    D )   Oracle

Q80. What does the .apk extension stand for?

a)     A )   Application Package

b)    B )   Application Program Kit

c)     C )   Android Proprietary Kit 

d)    D )   Android Package

Q81. Which of the following can you use to display a progress bar in an Android application?

a)     A )   ProgressBar

b)    B )   ProgressDialog

c)     C )   ProgressView

d)    D )   Both a&b

Q82. Which of the following would you have to include in your project to use the APIs and classes required to access the camera on the mobile device?

a)     A )   Import android drivers 

b)    B )   Import android hardware camera

c)     C )   Import android camera 

d)    D )   Import android util

Q83. Which of the following can be accomplished by using the TelephoneNumberUtil class?

a)   A )   Save a phone number to the contacts in the phone device

b)    B )   Retrieve a phone number from the contacts in the phone device 

c)     C )   Delete a phone number from the contacts in the phone device

d)    D )   Format an international telephone number

Q84. Which of the following are UI elements that you can use in a window in an Android application?

a)     A )   TextBox

b)    B )   TextView

c)     C )   EditText

d)    D )   Both b&c

Q85. The R file is a(an) generated file

a)     A )   Automatically

b)    B )   Manually

c)     C )   Emulated

d)    D )   none of the above

Q86. Which of the following can be used to bind data from an SQL database to a ListView in an Android application?

a)     A )   SimpleCursor

b)    B )   SimpleCursorAdapter

c)     C )   SimpleAdapter

d)    D )   SQLiteCursor

Q87. What is the purpose of the ContentProvider class?

a)     A )   To play rich media content files 

b)    B )   To create and publish rich media files

c)     C )   To share data between Android applications

d)    D )   To access the global information about an application environment

Q88. Immediate base class for activity and services

a)     A )   CONTEXT 

b)    B )   APPLICATIONCONTEXT

c)     C )   CONTEXTAPP

d)    D )   ONCREATE

Q89. Which of the following should be used to save the unsaved data and release resources being used by an Android application?

a)     A )   Activity.onStop() 

b)    B )   Activity.onPause()

c)     C )   Activity.onDestroy() 

d)    D )   Activity.onShutdown()

Q90. Which of the following are valid features that you can request using requestWindowFeature?

a)     A )   FEATURE_NO_TITLE 

b)    FEATURE_NO_ICON 

c)     C )   FEATURE_RIGHT_ICON 

d)    D )   Both a& c

71                                                                            C

72                                                                            A

73                                                                            A

74                                                                            B

75                                                                            B

76                                                                            D

77                                                                            A

78                                                                            D

79                                                                            A

80                                                                            A

81                                                                            D

82                                                                            B

83                                                                            D

84                                                                            D

85                                                                            A

86                                                                            B

87                                                                            C

88                                                                            A

89                                                                            C

90      D

Q91. Android Applications must be signed

a)     After they are installed

b)    Before they are installed

c)     Never

d)    Within two weeks of installation

Q92. Select a component which is NOT part of Android architecture.

a)     Android Framework

b)    Libraries

c)     Linux Kernel

d)    Android Document

Q93. A type of service provided by android that controls application lifespan and activity pile is

a)     Activity Manager

b)    View System

c)     Notifications Manager

d)    Content Providers

Q94. Which of the following is NOT a valid usage for Intents?

a)     Activate and Activity

b)    Activate a Service

c)     Activate a Broadcast receiver

d)    Activate a SQLite DB Connection

Q95. What part of the Android platform is open source?

a)     low-level Linux modules

b)    all of these answers #The entire stack is an open source platformcorrect

c)     native libraries

d)    application frame work

Q96. 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 the above

Q97. What is the use of content provider in android?

a)     To send the data from an application to another application

b)    To store the data in a database

c)     To share the data between applications

d)    None of the above

Q98. Although most people’s first thought when they think of Android is Google, Android is not actually owned by Google. Who owns the Android platform?

a)               A. Oracle Technology

b)    Dalvik

c)     Open Handset Alliance

d)    The above statement is and Android is owned by Google

Q99. Which file specifies the minimum required Android SDK version your application supports?

a)     main.xml

b)    R.java

c)     strings.xml

d)    AndroidManifest.xml

Q100. The XML file that contains all the text that your application uses

a)     stack.xml

b)    text.xml

c)     strings.xml

d)    string.java

91       B

92      D

93      D

94      D

95      B

96      D

97      C

98      C

99      D

100     C

 

Q101. What are the popular types and categories of apps ?

a)     Native apps

b)    Hybrid apps

c)     Web apps

d)    All of above

Q 102. Artificial Intelligence will be the Smartphone futures?

a)     True

b)    False

Q 103. Following is not the mobile OS.

a)     BADA OS

b)    MeeGo OS

c)     Palm OS

d)    Black OS

Q 104. Accelerometer, Gyroscope, Magnetometer, GPS  is not available for PC’s but available in Android phone.

a)     True

b)    False

Q 105. Android Runtime is not the part of Android Architecture

a)     True

b)    False

Q 106. CDATA means?

a)     Character Data

b)    Code Data

c)     Complier Data

d)    Connection Data

إرسال تعليق

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.