Thursday, December 17, 2015

Android (Developer) test answers of 2016.

Find Complete and recently updated Correct Question and answers of Android (Developer). All Answers updated regularly with new questions. Upwork Android (Developer) test answers of 2016.



Question:* Android layouts are read from which type of file?

Answer: • xml

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

Answer: • Both of these

Question:* A layout that organizes its children into a horizontal or vertical stack

Answer: • LinearLayout

Question:* Do you need to buy an android developer account to start developing and testing applications on Android ?

Answer: • No

Question:* What database is available for developers in Android?

Answer: • SQLite

Question:* Which of the following are versions of Android?

Answer: • All of these

Question:* What kernel is Android based on?

Answer: • Linux Kernel

Question:* Which programming language is used to develop application for the Android platform?

Answer: • Java

Question:* Android's main programming language is:

Answer: • Java

Question:* Which of the following are a function of the manifest file?

Answer: • all of these

Question:* Your Android application components are defined in the...

Answer: • AndroidManifest.xml file.

Question:* What is the official website for Android programmers?

Answer: • developer.android.com

Question:* The Android Manifest file has what extension?

Answer: • .xml

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

Answer: • Dalvik

Question:* If I set min sdk version to be 8 for an app , on what version(s) will I NOT be able to run the app?

Answer: • 7

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

Answer: • textLabel.setText("Your Text");

Question:* What is the name of component used to display web pages in the application?

Answer: • WebView

Question:* Android relies on the Linux kernel for which of the following system services?

Answer: • Both security and network stack

Question:* Which of the following are different types of Android application components?

Answer: • all of these

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

Answer: • LENGTH_SMALL

Question:* Where would we specify which activity should launch first in our app

Answer: • Manifest file

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

Answer: • OnClickListener

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

Answer: • Service

Question:* How do you request permissions for your application?

Answer: • <uses-permission> in the Android Manifest

Question:* What is the main hardware platform of Android?

Answer: • ARM architecture

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

Answer: • <uses-feature android:name="android.hardware.camera" />

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

Answer: • EditText

Question:* Who can submit applications to the Marketplace?

Answer: • Registered Android Market developers

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

Answer: • contains all the information needed to install the application on an Android device.

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

Answer: • android.content.SharedPreferences

Question:* If your application needs to access information about the devices wi-fi networks, you need to specify:

Answer: • <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />.

Question:* If your application needs to access information about the devices wi-fi networks, you need to specify:

Answer: • <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />.

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

Answer: • onCreate(), onStart(), onResume()

Question:* Which of the following was NOT a name used in any previous versions of Android (3.2)?

Answer: • Cannoli

Question:* C2DM is deprecated and it was replaced by

Answer: • GCM

Question:* Which of the following isn't a valid stage in an Activity's lifecycle?

Answer: • onFinish

Question:* Which layout is deprecated since version 2.3?

Answer: • Absolute Layout

Question:* In which resource folder do we create an animation file ?

Answer: • anim

Question:* You can retrieve the resources for your applications by using:

Answer: • android.content.getResources()

Question:* What causes an Activity's onDestroy() method to be called.

Answer: • All of these reasons.

Question:* A layout that organizes its children into a horizontal or vertical stack

Answer: • LinearLayout

Question:* In which resource folder do we create an animation file ?

Answer: • anim

Question:* Android uses what class to communicate a request for an action to be performed?

Answer: • Intent

Question:* How do you disable the scrollbars for a webview?

Answer: • <WebView android:scrollbars="none" />

Question:* Android version 2.2 is better known as what?

Answer: • Froyo

Question:* What is the official name of the Android 3.0 SDK?

Answer: • Honeycomb

Question:* The correct way to get pass string in an Intent is (where key and value are both string variables):

Answer: • intent.putExtra(key,value);

Question:* Every Android application runs in its own process...

Answer: • with its own instance of the Dalvik Virtual Machine.

Question:* True or False: The Android operating system is a multi-user Linux system in which each application is a different user.

Answer: • True

Question:* Fragments were added in what version of Android (not including the compatibility pack)?

Answer: • Version 3.0

Question:* Which event listener is used to handle when an Android device has changed orientation?

Answer: • OrientationEventListener

Question:* Relative layout has two types of orientations: vertical and horizontal.

Answer: • False

Question:* How do you request permissions for your application?

Answer: • <uses-permission> in the Android Manifest

Question:* What is the key used for an bundle extra parameter on a PendingIntent holding a location?

Answer: • public static final String KEY_LOCATION_CHANGED

Question:* What permission does your application need to use the network?

Answer: • android.permission.INTERNET

Question:* What is the primary license of Android?

Answer: • Apache License

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

Answer: • Both of these

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

Answer: • ListViewLayout

Question:* Which tag is used to add "Star Rating" in XML layout file

Answer: • RatingBar

Question:* Externalizing resources is an important part of application development because different resources are needed for:

Answer: • All of these

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

Answer: • HeaderViewListAdapter

Question:* What package encompasses the interactive UI components of Android such as buttons and text fields?

Answer: • android.widget

Question:* When an asynchronous task is executed, the task goes through several steps, what option isn't a step of an asynchronous task.

Answer: • onBackground()

Question:* What is the first method called in the Activity Lifecycle?

Answer: • onCreate()

Question:* Android applications can "borrow" functionality from other applications by using...

Answer: • intent objects

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

Answer: • LocationManager lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE);

Question:* Which callbacks in AsyncTask gets executed on main thread

Answer: • both onPostExecute and onProgressUpdate

Question:* Which of the following is a public constructor for canvas?

Answer: • canvas(Bitmap bitmap)

Question:* What is the API version code for the Android 3.2 SDK?

Answer: • 13

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

Answer: • Density-independent pixels

Question:* Fragments are independent from Activities

Answer: • False

Question:* If you have a fragment which displays a ListViewContaining query results, which API would you use to bring the data over to the device asynchronously?

Answer: • android.app.LoaderManager

Question:* Maximum size of an android app?

Answer: • 4 gb

Question:* What manifest uses-configuration should your application use if your application requires a finger activated touch screen on the device.

Answer: • <uses-configuration android:reqTouchScreen="finger" /> must be in your manifest.

Question:* You should extend which class when using/creating a database?

Answer: • SQLiteOpenHelper

Question:* Which of the following is NOT a subclass of TextView?

Answer: • Image Button

Question:* Android library functions are written of ...?

Answer: • C/C++

Question:* Which of these Activity lifecycle events is called when the activity is about to become visible to the user from a hidden state.

Answer: • onStart()

Question:* You can control process usage in your Android application by...

Answer: • using the android:process attribute on the specific component defined in the manifest.

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

Answer: • android.permission.VIBRATE

Question:* AppWidgetProvider is a subclass of

Answer: • BroadcastReceiver

Question:* Android's main programming language is:

Answer: • Java

Question:* What is a benefit of deodexing?

Answer: • Custom themes

Question:* What is a benefit of deodexing?

Answer: • Custom themes

Question:* AppWidgetProvider is a subclass of

Answer: • BroadcastReceiver

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

Answer: • android.permission.VIBRATE

Question:* You should extend which class when using/creating a database?

Answer: • SQLiteOpenHelper

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

Answer: • Both of these

Question:* C2DM is deprecated and it was replaced by

Answer: • GCM

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

Answer: • textLabel.setText("Your Text");

Question:* what function is used to send value from one activity to another?

Answer: • intent.putextra()

Question:* If your application needs to access information about the devices wi-fi networks, you need to specify:

Answer: • <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />.

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

Answer: • <uses-feature android:name="android.hardware.camera" />

Question:* How do you disable the scrollbars for a webview?

Answer: • <WebView android:scrollbars="none" />

Question:* What causes an Activity's onDestroy() method to be called.

Answer: • All of these reasons.

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

Answer: • Both of these

Question:* What manifest uses-configuration should your application use if your application requires a finger activated touch screen on the device.

Answer: • <uses-configuration android:reqTouchScreen="finger" /> must be in your manifest.

Question:* How do you enable hardware acceleration in android?

Answer: • android:hardwareAccelerated="true"

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

Answer: • <item name="android:windowActionBarOverlay">true</item>

Question:* You should extend which class when using/creating a database?

Answer: • SQLiteOpenHelper

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

Answer: • bindService()

Question:* Which of the following is used for passing data from one activity to another ?

Answer: • Bundle

Question:* Which class MediaPlayer extends in android?

Answer: • Object

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

Answer: • RatingBar

Question:* What is the recommended IDE for Android by Google

Answer: • Android Studio

Question:* True or false? Fragments are independent from Activities.

Answer: • False

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

Answer: • Network Latency



No comments:

HTML5 Upwork (oDesk) TEST ANSWERS 2022

HTML5 Upwork (oDesk) TEST ANSWERS 2022 Question: Which of the following is the best method to detect HTML5 Canvas support in web br...

Disqus for upwork test answers