About Android

Following are some of the multiple choice questions on the Android with answers that will help the students in developing their knowledge.

Android MCQ

1. Full Name of Android

  • Key Lime Pie
  • Jelly Bean
  • Android KitKat
  • Both A & B
  • None of these

2. Android Is Developed By

  • Apple
  • Microsoft
  • Google
  • Android Inc.

3. Which Programming Language Is Used For Android Application Development?

  • NodeJs
  • PHP
  • Java
  • JSX

4. Android Web Browser is based on

  • Chrome
  • Open-source Webkit
  • Safari
  • Firefox

5. ADB stands for

  • Application Debug Bridge
  • Android Debug Container
  • Android Debug Bridge
  • Android Dalvik Bridge

6. Which company developed android?

  • Apple
  • Google
  • Android Inc
  • Nokia

7. Android is based on which kernel?

  • Linux
  • Mac
  • Windows
  • Symbian

8. When did Google purchase Android?

  • 2003
  • 2004
  • 2005
  • 2006

9. What was the first phone released that ran the Android OS?

  • Google gphone
  • T-Mobile G1C
  • Motorola Droid
  • HTC Hero

10. Which among these are NOT a part of Android’s native libraries?

  • Webkit
  • Dalvik
  • OpenGL
  • SQLite

11. Android is a linux based operating system?

  • True
  • False

12. What was Google’s main business motivation for supporting Android?

  • To level the playing field for mobile devices
  • To directly compete with the iPhone
  • To corner the mobile device application market for licensing purposes
  • To allow them to advertise more

13. What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resource XML?

  • findViewByReference(int id)
  • findViewById(int id)
  • retrieveResourceById(int id)
  • findViewById(String id)

14. First fully 64 bit compatible version of android is

  • Gingerbread
  • Android 5.0 Lollipop
  • Android 1.6 Donut
  • Android Jelly Bean

15. What does the Android project folder “res/” contain?

  • Resource files
  • Java Activity classes
  • Java source code
  • Libraries

16. What method you should override to use Android menu system?

  • onCreateOptionsMenu()
  • onCreateMenu()
  • onMenuCreated()
  • onCreateContextMenu()

17. What does the following line of code achieve?

Intent intent = new Intent(FirstActivity.this, SecondActivity.class );
  • Starts an activity
  • Creates an implicit Intent.
  • Creates a hidden Intent.
  • Create an explicit Intent.

18. Select a component which is NOT part of Android architecture.

  • Android Framework
  • Libraries
  • Linux Kernel
  • Android Document

19. What is contained within the manifest xml file?

  • The permission that app requires
  • The list of string used in the app
  • The source code
  • All other choices

20. Which among the following are part of "Application" layer of Android Architecture

  • Contacts
  • Browser
  • facebook
  • All of these

21. Which of the following is NOT a valid usage for Intents?

  • Activate a SQLite DB Connection.
  • Activate a Broadcast receiver.
  • Activate a Service.
  • Activate and Activity.

22. In Which Directory XML Layout Files Are Stored

  • /assets
  • /src
  • /res/values
  • /res/layout

23. The android library that provides access to UI pre-built elements such as buttons, lists, views etc. is

  • android.text
  • android.os
  • android.view
  • android.webkit

24. What does the src folder contain?

  • Image and icon files
  • XML resource files
  • Java source code files
  • The application manifest file

25. What is the latest Android?

  • Masmallow
  • Pie
  • Q
  • Noughat

26. Android is based on Linux for the following reason.

  • Security
  • Portability
  • Networking
  • All of these

27. What is the name of the program that converts Java byte code into Dalvik byte code?

  • Android Interpretive Compiler (AIC)
  • Dalvik Converter
  • Dex compiler
  • Mobile Interpretive Compiler (MIC)

28. You can create a custom view by extending class Activity.

  • True
  • False

29. What does the .apk extension stands for

  • Application package
  • Application Program kit
  • Android Proprietary kit
  • Android Package

30. Which of the following AsyncTask methods is NOT executed on the UI thread?

  • onPreExecute()
  • onPostExecute()
  • publishProgress()
  • onProgressUpdate()

31. Which of the following is a Java call-back method invoked when a view is clicked?

  • Detector
  • OnTapListener
  • OnClickDetector
  • OnClickListener

32. Which of the following Android View sub-classes uses the WebKit rendering engine to display web pages?

  • MapView
  • PageView
  • WebView
  • HttpClient

33. If your application is throwing exception android.content.ActivityNotFoundException, which of the following could resolve the problem?

  • Add the activity to AndroidManifest.xml
  • Create the activity layout
  • Create a new sub-class of the View class
  • Create a new broadcast receiver

34. What is AAPT?

  • Android Asset Processing Tool.
  • Android Asset Providing Tool.
  • Android Asset Packaging Tool
  • Android Asset Packaging Technique.

35. What does this code do?

Intent intent = new Intent(); 
intent.setAction(Intent.ACTION_VIEW); 
intent.setData(android.net.Uri.parse("https://www.example.com")); 
startActivity(intent);
  • Starts an activity using an implicit intent.
  • Sends results to another activity
  • Starts a sub-activity.
  • Starts a service

36. What is the parent class of all Activity widgets?

  • Layout
  • ViewGroup
  • View
  • Widget

37. What is the name of the class used by Intent to store additional information?

  • Parcelable
  • DataStore
  • Extra
  • Bundle

38. While Java or Kotlin source files stored in ....

  • /res/drawable
  • /src
  • /res/values
  • /res/layout

39. What year was the Open Handset Alliance announced?

  • 2005
  • 2006
  • 2007
  • 2008

40. What is the difference between margin and padding in android layout?

  • Margin is specifying the extra space left on all four sides in layout
  • Padding is used to offset the content of a view by specific px or dp
  • Both A and B are correct
  • None of the above

41. During an activity life cycle, what is the first callback method invoked by the system?

  • onStart()
  • onCreate()
  • onPause()
  • onStop()

42. What language used in Android Studio?

  • Java
  • C#
  • HTML
  • Android Studio

43. Which Android permission you should add to allow your application to read the device’s address book?

  • READ_PHONE_STATE
  • READ_ADDRESS_DATA
  • READ_CONTACTS
  • READ_PHONE_CONTACTS

44. Which of the following is not a layer in Android Architecture?

  • Android Runtime
  • Libraries
  • Linux kernel
  • Application Framework

45. What is an interface in android?

  • Interface acts as a bridge between class and the outside world.
  • Interface is a layout file
  • The interface is a class.
  • None of these

46. What is an activity in android

  • A single screen in an application with supporting java code
  • android class
  • android package
  • Both a & b
  • None of these

47. A layout that defines the position for each view based on constraints to sibling views and the parent layout

  • TextView
  • Activity_main
  • Pick a Resource
  • ConstraintLayout

48. Consider the following code: Check Which of the following is correct about the code above?

Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setData(android.net.Uri.parse("https://www.mcqpoint.com")); 
startActivity(intent);
  • It will not compile without adding the INTERNET permission the Manifest file
  • It starts any activity in the application that has a WebView in its layout
  • When it is executed, the system starts an intent resolution process to start the right Activity.
  • It sends a result to a new Activity in a Bundle

49. Larry page and sergey brin cofounded Google in 1998.

  • True
  • False

50. Android Eclair supported HTML5.

  • True
  • False

Enjoyed the Quiz. Share this with friends

Comments

Add Your Review

Your email address will not be published.

Subscribe to Newsletter!

Subscribe to get latest updates and information.