Android MCQ Quiz Hub

Android Programming MCQ Set 1

Choose a topic to test your knowledge and improve your Android skills

The _____ is a possible media type value for the media attribute.





✅ Correct Answer: 2

Which subclass of a Preference class displays a list of entries as a dialog?





✅ Correct Answer: 4

What is an application component that can perform long-running operations in the background and does not provide a user interface?





✅ Correct Answer: 4

What is the first method called in the Activity Lifecycle?





✅ Correct Answer: 4

Which Virtual Machine (VM) does the android system use?





✅ Correct Answer: 3

What is the brand name of Google's own line of Android smartphones?





✅ Correct Answer: 2

Which of the following are a function of the manifest file?





✅ Correct Answer: 3

Your Android application components are defined in the...





✅ Correct Answer: 2

In order to specify layouts so that they adapt to any screen size, specify dimensions in:





✅ Correct Answer: 1

Which of the following are versions of Android?





✅ Correct Answer: 4

Which statement correctly changes content of a TextView named textLabel to show "Your Text"?





✅ Correct Answer: 1

The Android Manifest file has what extension?





✅ Correct Answer: 4

Which of the following are different types of Android application components?





✅ Correct Answer: 1

Which of the following is used to detect when a user clicks or taps on a button?





✅ Correct Answer: 4

Which of these widgets is an input box for a user to enter text?





✅ Correct Answer: 3

Who can submit applications to the Marketplace?





✅ Correct Answer: 2

What is the recommended IDE for Android by Google





✅ Correct Answer: 1

If you wanted to store a name/value string pair for your Android application, which class would you use?





✅ Correct Answer: 2

Which is NOT a default value used for a Toast length parameter?





✅ Correct Answer: 1

The Android SDK tools compile your application into an Android application (.apk file) which...





✅ Correct Answer: 1

In activity A if you start Activity B with result you should override





✅ Correct Answer: 1

What is the main hardware platform of Android?





✅ Correct Answer: 3

If your application uses the camera on an Android powered device, the following line should be in your manifest file





✅ Correct Answer: 1

What is the proper order of life cycle methods called when an Activity is first run?





✅ Correct Answer: 4

In which resource folder do we create an animation file ?





✅ Correct Answer: 3

In order to be notified of a device switching from landscape to portrait view, you should:





✅ Correct Answer: 3

How do you disable the scrollbars for a webview?





✅ Correct Answer: 2

What permission does your application need to use the network?





✅ Correct Answer: 1

What is the name of the main thread in Android





✅ Correct Answer: 3

Which tag is used to add "Star Rating" in XML layout file?





✅ Correct Answer: 3

Which layout is deprecated since version 2.3?





✅ Correct Answer: 2

Every Android application runs in its own process...





✅ Correct Answer: 2

What is the name of the new design guidelines given by Google ?





✅ Correct Answer: 4

What are some examples of direct descendants of the android.view object?





✅ Correct Answer: 4

What AIDL is?





✅ Correct Answer: 2

Who is known as the 'Father' of Android?





✅ Correct Answer: 4

Which of these is NOT a Layout derived from the ViewGroup class?





✅ Correct Answer: 4

How do you get an intent data inside a fragment basically?





✅ Correct Answer: 3

How can you assign a custom (NOT BUILT IN ANDROID) font typeface to a TextView?





✅ Correct Answer: 1

Which of these ListAdapter subclasses is not a direct subclass of BaseAdapter?





✅ Correct Answer: 4

Android applications can "borrow" functionality from other applications by using...





✅ Correct Answer: 1

If the UI begins to behave sluggishly or crash while making network calls this is likely due to ....





✅ Correct Answer: 4

Which of the following allows you to instantinate a LocationManager class?





✅ Correct Answer: 2

Is it possible to reverse engineer an android application using the apk file alone without external app resources?





✅ Correct Answer: 3

In order to get paired Bluetooth device list you need to :





✅ Correct Answer: 4

What should you extend in case you need to apply a portion of code to your entire application?





✅ Correct Answer: 1

if you want to access list of paired Bluetooth devices on Android, what should you do ?





✅ Correct Answer: 1

Which of the following is NOT a subclass of TextView?





✅ Correct Answer: 4

How to enable overlay mode On API level 11 or higher, to create a custom theme for your activity.





✅ Correct Answer: 4

Which of the following is a public constructor for canvas?





✅ Correct Answer: 3

How do you enable hardware acceleration in android?





✅ Correct Answer: 2

Which service is used to perform IPC, when bind application to a service?





✅ Correct Answer: 1

What permission is required for your application to use the device's vibrate hardware?





✅ Correct Answer: 4

You can control process usage in your Android application by...





✅ Correct Answer: 3

How do you display the Action Bar back button on all Android versions?





✅ Correct Answer: 3

AppWidgetProvider is a subclass of





✅ Correct Answer: 4

Which class MediaPlayer extends in android?





✅ Correct Answer: 3

Which of the following is an Android class for the playback of sound?





✅ Correct Answer: 4

how can you check if your activity is first on stack ?





✅ Correct Answer: 1

What is the correct argument passed in the Array.sort() function





✅ Correct Answer: 4

Which method can be called to destroy an activity?





✅ Correct Answer: 4

Which of these run in a separate thread?





✅ Correct Answer: 1

What does this layout show?





✅ Correct Answer: 2

What is an Intent ?





✅ Correct Answer: 2

What will be the result of this intent? Intent intent = new Intent(A.this, B.class); startActivityForResult(intent , -1);





✅ Correct Answer: 2

Where is navigation drawer support available?





✅ Correct Answer: 4

According to the Activity's lifecycle, how is named the first method callback of an Activity?





✅ Correct Answer: 4

Which component does not exist in the android sdk ?





✅ Correct Answer: 1