The following Android Programming MCQs have been compiled by our experts through research, in order to test your knowledge of the subject of Android Programming. We encourage you to answer these multiple-choice questions to assess your proficiency.
Please continue by scrolling down.
A. ListPreference
B. MultiSelectListPreference
C. None of these
D. Both of these
A. Broadcast receiver
B. Content-provider
C. Activity
D. Service
A. onBegin()
B. onResume()
C. onInit()
D. onCreate()
E. onStart()
A. Erlang
B. VMLite
C. Dalvik
D. KVM
A. Galaxy
B. Nexus
C. Optimus
D. Desire
E. Xperia
A. declare the level of user permissions required.
B. declare the minimum API level required
C. all of these
A. Mach Kernel
B. XNA
C. NT Kernel
D. Linux Kernel
A. myApp.xml file.
B. AndroidManifest.xml file.
C. AndroidManifest.pkg file.
A. Density-independent pixels
B. Pixels
A. Eclair
B. Gingerbread
C. All of these
D. Froyo
A. textLabel.setText("Your Text");
B. textLabel = "Your Text";
C. textLabel.text = "Your Text";
D. textLabel.text("Your Text");
A. .jar
B. .apk
C. .java
D. .xml
A. No
B. Yes
A. all of these
B. services
C. activities
D. none of these
A. False
B. True
A. OnTapListener
B. OnTouchListener
C. OnClickDetecter
D. OnClickListener
A. Label
B. TextBox
C. EditText
D. TextView
A. Anyone and everyone
B. Registered Android Market developers
C. Only Google employees
D. Only device manufacturers and their employees
A. Android Studio
B. IntelliJ IDEA
C. Netbeans
D. Eclipse ADT
A. android.content.Resources
B. android.content.SharedPreferences
C. android.content.Cookies
A. LENGTH_SMALL
B. LENGTH_LONG
C. LENGTH_SHORT
A. contains all the information needed to install the application on an Android device.
B. then has to be formatted for installation through the Android installer.
C. contains information needed by the Universal Mobile Installer to create the install package for Android devices.
A. onActivityResult(int requestCode, int resultCode, Intent data) on Activity A
B. onResultedActivity(int requestCode, int resultCode, Intent data) on Activity B onResultedActivity(int requestCode, int resultCode, Intent data) on Activity A none of the above
A. None of these
B. MIPS
C. x86
D. ARM architecture
A. true
B. false
A. <uses-feature android:name="android.hardware.camera" />
B. <uses-feature="android.hardware.camera" />
C. <uses-feature name="camera" />
A. onStart(), onResume, onCreate()
B. onCreate(), onRestart(), onResume()
C. onCreate(), onResume(), onStart()
D. onCreate(), onStart(), onResume()
E. onStart(), onCreate(), onResume()
A. drawable
B. raw
C. anim
D. animation
E. values
A. Both of these
B. Override the onConfigurationChanged event
C. Request changes via the android:configChanges="orientation" attribute for activities in your manifest file
A. False
B. True
A. all of these
B. <WebView android:layout_height="wrap_content" />
C. <WebView android:scrollbars="none" />
D. <WebView android:layout_width="wrap_content" />
A. Yes
B. No
A. android.permission.INTERNET
B. android.permission.NETWORK
C. android.security.NETWORK
D. The network features do not require a permission
E. android.security.INTERNET
A. Working Thread
B. Main Thread
C. UI thread
A. Stars
B. RatingWidget
C. RatingBar
D. Rating
A. Frame Layout
B. Absolute Layout
C. Table Layout
D. Relative Layout
A. within a shared system wide instance of the Dalvik Virtual Machine.
B. with its own instance of the Dalvik Virtual Machine.
C. with its own instance of the Java Virtual Machine.
A. The Activity called finish().
B. The Activity is paused or stopped and it's resources were needed by the operating system.
C. All of these reasons.
D. The Activity that launched this Activity called finishActivity()
A. Holo
B. Classic
C. Flat Design
D. Material Design
A. True
B. False
A. ProgressBar
B. ViewGroup
C. Neither of these
D. Both of these
A. Android InterProcess Definition Language
B. Android Interface Definition Language
C. Android InterProcess Dynamic Language
D. Android Interface Dynamic Language
A. Hugo Barra
B. Sandar Pichai
C. Sergey Brin
D. Andy Rubin
E. Larry Page
A. RelativeLayout
B. AbsoluteLayout
C. LinearLayout
D. ListViewLayout
A. Bundle args = getExtras().getActivity();
B. Bundle args = new Bundle(getActivity().getIntent().getExtras());
C. Bundle args = getActivity().getIntent().getExtras();
D. Bundle args = getIntent().getActivity.getExtras();
E. Bundle args = getActivity().getExtras().getIntent();
A. In code: mTextViem.setTypeface(Typeface myfont);
B. In styles xml: <item name="android:typeface|>"myfont"</item>
C. In layout xml: android:typeface="myfont"
A. SimpleAdapter
B. CursorAdapter
C. ArrayAdapter
D. HeaderViewListAdapter
A. True
B. False
A. intent objects
B. content Provider system
C. application lifecyle methods
A. Hardware malfunction
B. Activity Manager contains too much
C. Virus on the server
D. Network Latency
A. LocationManager lm = (LocationManager)Runtime.getSystemServiceInstance(Context.LOCATION_SERVICE);
B. LocationManager lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
C. LocationManager lm = new LocationManager(Context.LOCATION_SERVICE);
D. LocationManager lm = (LocationManager)SystemServiceFactory.createSystemService(Context.LOCATION_SERVICE);
E. LocationManager lm = (LocationManager)getSystem().getService(Context.LOCATION_SERVICE);
A. No
B. Yes,at any point in time
C. Yes but not always
A. not possible
B. add <user-feature android:name="android.permission.BLUETOOTH" /> feature to the manifest.xml
C. none of the above
D. add <user-permission android:name="android.permission.BLUETOOTH_ADMIN" /> permission to the manifest.xml
A. Application(import both android.app.Activity and anroid.app.Application)
B. Activity(import android.app.Activity)
C. ApplicationInfo(import android.app.*)
D. Class(import android.app.Activity and android.app.Application)
A. add
B. add
A. Button
B. Radio Button
C. EditText
D. Image Button
A. <item name="ActionBar:Overlay">true</item>
B. <item name="ActionBarOverlay">true</item>
C. <item name="android:ActionBarOverlay">true</item>
D. <item name="android:windowActionBarOverlay">true</item>
A. canvas(int color)
B. canvas(Context context)
C. canvas(Bitmap bitmap)
D. canvas(AttributeSet set)
A. permission:hardwareAccelerated="true"
B. android:hardwareAccelerated="true"
C. android:permission:hardwareAccelerated="true"
D. use:permission:hardwareAccelerated="true"
E. use:hardwareAccelerated="true"
A. bindService()
B. activity.bindService()
C. application.bindService()
D. service.application.bindService()
A. False
B. True
A. True
B. False
A. android.hardware.permission.VIBRATE
B. android.permission.hardware.VIBRATE
C. android.hardware.VIBRATE
D. android.permission.VIBRATE
E. android.security.VIBRATE
A. moving your components up in the process lifecycle hierarchy.
B. both of these
C. using the android:process attribute on the specific component defined in the manifest.
D. neither of these
A. getSupportActionBar().setDisplayBackButton(true);
B. getActionBar().setDisplayHomeAsUpEnabled(true);
C. all of the above
D. getSupportActionBar().setDisplayHomeAsUpEnabled(true);
E. none of the above
A. Intent
B. Service
C. Activity
D. BroadcastReceiver
E. AppWidgetHost
A. MediaPlayerToolKit
B. AndroidMediaPlayer
C. Object
D. Activity
E. MediaPlayerStream
A. MediaPool
B. Music
C. SoundPlayer
D. SoundPool
A. activity.isTaskRoot()
B. (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE).isTaskRoot() both
A. CASE_INSENSITIVE
B. INSENSITIVE_CASE_ORDER
C. CASE_ORDER
D. CASE_INSENSITIVE_ORDER
A. finish()
B. finishActivity()
C. onDestroy()
D. close()
A. IntentService
B. None of them
C. Both of them
D. Service
A. a textview aligned to the right in the layout and the text is centered
B. a textview center in the layout and the text aligned to the right in his own container
C. a textview aligned to the right in the layout
D. a textview center in the layout
A. a function
B. a message
C. a process
D. an action
A. do nothing
B. call startActivity() from Activity A
C. call onActivityResult() from Activity A
D. call onActivityResult() from Activity B
A. Android Support Library v14
B. Android Support Library v21
C. Android Support Library v4
D. Android Support Library v7
A. protected void onCreate();
B. protected void onCreate(Parcelable parcelable);
C. protected void onCreate(Intent intent);
D. protected void onCreate(Bundle savedInstanceState);
A. ImageButton
B. CheckBoxButton
C. EditText
D. TextView
E. ImageView
A. Ice Cream Sandwich
B. Lollipop
C. Honeycomb
D. KitKat
E. Jelly Bean
A. onPrepareOptionsMenu()
B. onCreateOptionsMenu()
A. Yes, it is possible and it's recommended to use its own thread to update views
B. No, because system throws a Fatal Exception: "Only the original thread that created a view hierarchy can touch its views"
A. View.getContext()
B. Activity.this
C. Activity.getApplicationContext()
D. ContextWrapper.getBaseContext()
A. onPreExecute()
B. publishProgress()
C. doInBackground()
D. onPostExecute()
A. GridLayout
B. RelativeLayout
C. LinearLayout
D. DrawerLayout
E. FrameLayout
A. Time's Up!
B. res
C. xml
D. xaml
E. txt
A. Neither security nor network stack
B. Security
C. Network stack
D. Both security and network stack
A. No
B. Yes, it can support devices from level api 2.1
A. Java
B. JavaScripts
C. VB-Script
D. C++
A. myApp.xml file
B. AndroidManifest.pkg file
C. AndroidManifest.xml file
A. Pixels
B. Density-independent pixels
A. 7
B. 10
C. 14
D. 12
E. 8
A. SQL Server
B. NoSQL
C. SQLite
D. Oracle
E. There is no available database
A. src
B. anim
C. res
A. .jar
B. .xml
C. .apk
D. .java
A. intent.putString(key,value);
B. intent.putKey(key,value);
C. intent.putExtra(key,value);
D. intent.putValue(key,value);
A. WebView
B. WebBrowser
C. BrowserView
D. Browser
A. Start()
B. onCreate()
C. Resume()
D. onStart()
E. onResume()
A. android.app.LoaderManager
B. android.app.ListActivity
C. android.app.LocalActivityManager
A. Network Latency
B. Virus on the server
C. Hardware malfunction
D. Activity Manager contains too much
A. Application lifecyle methods
B. Intent objects
C. Content Provider system