Web
Analytics

Android Programming
Android Programming Test
Can you answer 25 questions in 10 minutes?



Android Programming Test |

Which of the following programming languages can be used to develop software applications for the Android platform?
C# with .NET Compact Framework for mobile devices.
Java
C programming language.
Call setCurrentView(mView) in the startApp() of the main application class.
Android programming language.

Which of the following can be used to handle commands from menu items in an Android application?
CommandAction
OnMenuItem
OnMenuItemClicked
OnMenuItemSelected
ProgressDialog

Suppose MyView is a class derived from View and mView is a variable of type MyView. Which of the following should be used to display mView when the Android application is started?
Call setContentView(mView) in the onStart() of the main application class.
Call setContentView(mView) in the onCreate() of the main application class.
Call setContentView(mView) in the startApp() of the main application class.
Intent.action = Intent.DIAL_ACTION is used when a phone number is to be dialled without showing a UI on the device.
Call setCurrentView(mView) in the startApp() of the main application class.

Which of the following would you have to include in your project to use the SimpleAdapter class?
Import android.content/p>


Import android.database.sqlite;
Import android.widget/span>
Import android.database;
The android:versionCode attribute in the manifest file must be same and the APK file must be signed with the same private key.


What is Android?
30MB
A software stack for mobile devices that includes an operating system - middleware and key applications.
A new programming language that can be used to develop applications for mobile devices.
A new IDE that can be used to develop applications for mobile devices.
A new mobile device developed by Google.

Which of the following tools can be used to reduce apk package size?
Lint
A framework to create unit tests for Android projects.
Etc1tool
ProGuard
Zipalign

Which of the following statements are correct with regards to Content Providers? A) A content provider allows applications to access data. B) A content provider must be declared in the AndroidManifest.xml file.
Statement B is true - while Statement A is false.
Both statements are false.
Both statements are true.
Delete a phone number from the contacts in the phone device.
Statement A is true - while Statement B is false.

What is "Android-activityCreator"?
Import android.drivers/p>


A resource editor to create user interface for Android applications.
A framework to create unit tests for Android projects.
A tool to generate Android byte code from .class files.
A command line tool to create Android project files.


Which of the following is/are appropriate for saving the state of an Android application?
Activity.onFreeze()
The android:versionCode attribute in the manifest file must be same and the APK file must be signed with the same private key.
Activity.onStop()
Activity.onPause()
Activity.onDestroy()

What is the interface Spannable used for?
Manipulate text that can span across multiple pages.
Constructor of the Activity class.
String parsing.
This is the interface for text to which markup objects can be attached and detached.
Manipulate text that can span across multiple TextView windows.

Which of the following procedures will get the package name of an APK file?
Looking for the package attribute's value of the <manifest> element in the manifest file.
Programmatically - using PackageManager in an installed Android app.
Executing the command - "pm list packages -f" - in the ADB shell.
Using the AAPT platform tool - "aapt dump badging apkName.apk".
Constructor of the Activity class.

Which of the following are true about Intent.CALL_ACTION and Intent.DIAL_ACTION?
Intent.action == Intent.CALL_ACTION is true when a phone call is received on the device.
Both of them are used to dial a phone number on the device.
Intent.action = Intent.DIAL_ACTION is used when a phone number is to be dialled without showing a UI on the device.
Android:targetSdkVersion
Intent.action = Intent.CALL_ACTION is used when a phone number is to be dialled without showing a UI on the device.

What is correct regarding GCM - Google Cloud Messaging service?
It does device to server communication and vice versa.
It does device to device communication.
It does server to device communication.
Constructor of the Activity class.
It does device to server communication.

What is the maximum supported file size for a single APK file (excluding expansion packages) in the Google Play Store?
2GB
Unlimited
50MB
30MB
Looking for the package attribute's value of the <manifest> element in the manifest file.

Which of the following is not Content Provider?
Contacts
MediaStore
Shared Preferences
Request permission for INSTALL_LOCATION_PROVIDER

Which of the following sensors is only hardware-based?
Accelerometer sensor
Rotation vector sensor
Gravity sensor
<uses-permission android:name="android.permission.CAMERA"/>
Linear acceleration sensor

Which of the following can be accomplished by using the TelephoneNumberUtil class?
SQLiteCursor
Delete a phone number from the contacts in the phone device.
Retrieve a phone number from the contacts in the phone device.
Save a phone number to the contacts in the phone device.
Format an international telephone number.


250 Top Work & Personal Skills Made Easy

The First & Only Encyclopedia of Self Help,
Self Improvement & Career Advice

250+ Easy-to-Follow Guides
5000+ Proven Tips

13 Types of Essential Skills Covered
Get The Value of 100+ Best Books in 1 Book.

502 Pages | $3.99 | PDF / EPub, Kindle Ready


 
 
 




Please report any error in fatskills quizzes and questions to 'simpleversity at gmail.com'.

Without work one finishes nothing. - Ralph Waldo Emerson

© The Simple Project 2020