Android Programming Free MCQs




            Android Programming MCQs


MCQss.com is a Free Multiple Choice Questions Answers platform related to Android programming. The site is designed for individuals who want to test their knowledge of Android programming concepts and assess their understanding of the subject. The mcqs cover a wide range of topics, including Android architecture, activities, fragments, layouts, services, and more. Each question is accompanied by four options, and users can select the correct answer by clicking on the option that they think is correct. This site can be useful for students, job seekers, and professionals who want to improve their skills and knowledge of Android programming.





Android Programming Free multiple choice questions with Answers(MCQs)


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

A. LENGTH_SMALL B. LENGTH_LONG C. LENGTH_SHORT

correct answer : LENGTH_SMALL


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

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.

correct answer : contains all the information needed to install the application on an Android device.


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

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 correct answer : onActivityResult(int requestCode, int resultCode, Intent data) on Activity A


4: What is the main hardware platform of Android?

A. None of these B. MIPS C. x86 D. ARM architecture

correct answer : None of these


5: True or False? It is possible to give the preferred install location, internal or external memory, in the manifest.xml

A. true B. false

correct answer : true


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

A. <uses-feature android:name="android.hardware.camera" /> B. <uses-feature="android.hardware.camera" /> C. <uses-feature name="camera" />

correct answer : <uses-feature android:name="android.hardware.camera" />


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

A. onStart(), onResume, onCreate() B. onCreate(), onRestart(), onResume() C. onCreate(), onResume(), onStart() D. onCreate(), onStart(), onResume() E. onStart(), onCreate(), onResume()

correct answer : onCreate(), onStart(), onResume()


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

A. drawable B. raw C. anim D. animation E. values

correct answer : drawable


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

A. Both of these B. Override the onConfigurationChanged event C. Request changes via the android:configChanges="orientation" attribute for activities in your manifest file

correct answer : Both of these


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


A. False B. True

correct answer : True


11: How do you disable the scrollbars for a webview?


A. all of these B. <WebView android:layout_height="wrap_content" /> C. <WebView android:scrollbars="none" /> D. <WebView android:layout_width="wrap_content" />

correct answer : all of these


12: Is it possible to include code written in C?

A. Yes B. No

correct answer : Yes


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

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

correct answer : android.permission.INTERNET


14: What is the name of the main thread in Android

A. Working Thread B. Main Thread C. UI thread

correct answer : UI thread


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


A. Stars B. RatingWidget C. RatingBar D. Rating

correct answer : RatingBar


16: Which layout is deprecated since version 2.3?

A. Frame Layout B. Absolute Layout C. Table Layout D. Relative Layout

correct answer : Frame Layout


17: Every Android application runs in its own process...

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.

correct answer : within a shared system wide instance of the Dalvik Virtual Machine.


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


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()

correct answer : All of these reasons.


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

A. Holo B. Classic C. Flat Design D. Material Design

correct answer : Material Design


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


A. True B. False

correct answer : True


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


A. ProgressBar B. ViewGroup C. Neither of these D. Both of these

correct answer : Both of these


22: What AIDL is?

A. Android InterProcess Definition Language B. Android Interface Definition Language C. Android InterProcess Dynamic Language D. Android Interface Dynamic Language

correct answer : Android InterProcess Definition Language


23: Who is known as the 'Father' of Android?

A. Hugo Barra

B. Sandar Pichai C. Sergey Brin D. Andy Rubin E. Larry Page

correct answer : Andy Rubin


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

A. RelativeLayout B. AbsoluteLayout C. LinearLayout D. ListViewLayout

correct answer : ListViewLayout


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

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();


correct answer : Bundle args = getExtras().getActivity();


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

A. In code: mTextViem.setTypeface(Typeface myfont); B. In styles xml: <item name="android:typeface|>"myfont"</item> C. In layout xml: android:typeface="myfont"

correct answer : In code: mTextViem.setTypeface(Typeface myfont);


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

A. SimpleAdapter B. CursorAdapter C. ArrayAdapter D. HeaderViewListAdapter

correct answer : HeaderViewListAdapter


28: True or false? Fragments are independent from Activities.

A. True B. False

correct answer : False


29: Android applications can "borrow" functionality from other applications by using...?

A. intent objects B. content Provider system C. application lifecyle methods

correct answer : intent objects


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

A. Hardware malfunction B. Activity Manager contains too much C. Virus on the server D. Network Latency

correct answer : Network Latency


Practice these 300+ FREE Android Programming MCQs and boost your skill.



Comments

Popular posts from this blog

React js multiple choice questions with answers

800+ FREE JAVA PROGRAMMING MCQs

1100+ PHP Free Exam Questions And Answers