Google News
logo
Android - Quiz(MCQ)
A)
Is a Web Server
B)
Is a Mobile Phone
C)
Is an Operating System
D)
Is a Web Browser

Correct Answer :   Is an operating system


Explanation : Android is a software package and linux based operating system for mobile devices such as tablet computers and smartphones.

A)
IBM
B)
Google
C)
Samsung
D)
Microsoft

Correct Answer :   Google


Explanation : The first commercial version, Android 1.0, was released on September 23, 2008. Android is continually developed by Google and the Open Handset Alliance (OHA), and it has seen several updates to its base operating system since the initial release.

A)
September 23, 2005
B)
September 23, 2006
C)
September 23, 2007
D)
September 23, 2008

Correct Answer :   September 23, 2008


Explanation : Android is a mobile operating system based on a modified version of the Linux kernel and other open source software, designed primarily for touchscreen mobile devices such as smartphones and tablets.

Android is developed by a consortium of developers known as the Open Handset Alliance and commercially sponsored by Google. It was unveiled in November 2007, with the first commercial Android device, the HTC Dream, being launched in 23rd September 2008.

A)
OSS
B)
Apache/MIT
C)
Sourceforge
D)
None of the above

Correct Answer :   Apache/MIT


Explanation : The Android platform was released under the Apache 2.0 license, and it is responsible for the copyright of the Android Open Source project. The Apache Foundation permits and grants licenses for software uses and distribution by the copyright under the Android Open Source Project.

A)
Facebook
B)
AT & T labs
C)
Sun Microsystem
D)
Open Handset Alliance

Correct Answer :   Open Handset Alliance


Explanation : Android was developed by the Open Handset Alliance, led by Google, and other companies.

A)
Android Class
B)
Android Package
C)
A single screen in an application with supporting java code
D)
None of the Above

Correct Answer :   A single screen in an application with supporting java code

A)
Mobile devices
B)
Servers
C)
Laptops
D)
Desktops

Correct Answer :   Mobile devices


Explanation : Android is a software package and a Linux-based operating system specially designed for touch-screen mobile devices like smartphones and tablets.

A)
functionality
B)
performance
C)
user interface
D)
All of the above

Correct Answer :   All of the above


Explanation : Jelly Bean is an incremental update, with the primary aim of improving the user interface, both in terms of functionality and performance.

A)
C Language
B)
Java
C)
Ruby
D)
Python

Correct Answer :   Java


Explanation : Android applications are usually developed in the Java language using the Android Software Development Kit.

A)
HTC Hero
B)
Google gPhone
C)
T - Mobile G1
D)
None of the above

Correct Answer :   T - Mobile G1


Explanation : The first Android mobile was publicly released with Android 1.0 of the T-Mobile G1 (aka HTC Dream) in October 2008.

A)
Networking
B)
Security
C)
Portability
D)
All of the above

Correct Answer :   All of the above


Explanation : All of the above are reasons for which Android is based on Linux.

A)
Dalvik virtual machine
B)
Java Virtual Machine
C)
Simple virtual machine
D)
None of the above

Correct Answer :   Dalvik virtual machine


Explanation : The Dalvik Virtual Machine (DVM) is an android virtual machine optimized for mobile devices. It optimizes the virtual machine for memory, battery life, and performance. Dalvik is a name of a town in Iceland. The Dalvik VM was written by Dan Bornstein.

A)
Android Page Kit
B)
Android Phone Kit
C)
Android Package Kit
D)
None of the above

Correct Answer :   Android Package Kit


Explanation : An APK is a short form of the Android Package Kit. An APK file is the file format used to install the applications on the android operating system.

A)
Android Page Interface
B)
Application Page Interface
C)
Android Programming Interface
D)
Application Programming Interface

Correct Answer :   Application Programming Interface


Explanation : API stands for application program interface. It is a set of routines, protocols, and tools for building software and applications. It may be any type of system like a web-based system, operating system, or database system.

A)
Dalvik converter
B)
Dex compiler
C)
Mobile interpretive compiler (MIC)
D)
None of the above

Correct Answer :   Dex compiler


Explanation : The Dex compiler converts the class files into a .dex file that runs on the Dalvik VM. Multiple class files are converted into one dex file.

A)
20
B)
21
C)
22
D)
23

Correct Answer :   21


Explanation : API level of Android 5.0 is 21 and VERSION_CODE is LOLLIPOP.

A)
MARSHMALLOW
B)
Oreo
C)
Nugget
D)
LOLLIPOP_MR1

Correct Answer :   MARSHMALLOW


Explanation : Version code of Android 6.0 is MARSHMALLOW.

A)
SMS
B)
MMS
C)
GCM
D)
CAM

Correct Answer :   GCM


Explanation : Google Cloud Messaging (GCM) is a service that lets developers send short message data to their users on Android devices, without needing a proprietary sync solution.

A)
39326
B)
39661
C)
39692
D)
39295

Correct Answer :   39692


Explanation : Android 1.0, was released in September 2008.

A)
Storage
B)
Multi-touch
C)
Connectivity
D)
Slide Mobango

Correct Answer :   Slide Mobango


Explanation : Slide Mobango is not a Features of Android.

A)
By using the finish() method
B)
By using the stopSelf() and stopService() method
C)
By using system.exit() method
D)
None of the above

Correct Answer :   By using the stopSelf() and stopService() method


Explanation : A service is started when a component (like activity) calls the startService() method; now, it runs in the background indefinitely. It is stopped by the stopService() method. The service can stop itself by calling the stopSelf() method.

A)
Using finish() method
B)
Using finishActivity(int requestCode)
C)
Both (A) and (B)
D)
Neither (A) nor (B)

Correct Answer :   Both (a) and (b)


Explanation : The finish() method is used to close the activity. Whereas the finishActivity(int requestCode) also closes the activity with requestCode.

A)
Android debug bridge
B)
Android delete bridge
C)
Android destroy bridge
D)
None of the above

Correct Answer :   Android debug bridge


Explanation : ADB stands for Android Debug Bridge. It is a command-line tool that is used to communicate with the emulator instance.

A)
Third-party emulators
B)
Physical android phone
C)
Emulator included in Android SDK
D)
All of the above

Correct Answer :   All of the above


Explanation : We can use the Android emulator, physical android phone, or third-party emulator as a target device to execute and test our Android application.

A)
MAC
B)
Linux
C)
Redhat
D)
Windows

Correct Answer :   Linux


Explanation : Android is a customized Linux 3.6 kernel. It is the heart of android architecture that exists at the root of android architecture. Linux kernel is responsible for device drivers, power management, memory management, device management, and resource access.

A)
onStart() method
B)
onClick() method
C)
onRestart() method
D)
onCreate() method

Correct Answer :   onCreate() method


Explanation : onCreate() method is called when activity is first created. The onCreate() and onDestroy() methods are called only once throughout the activity lifecycle.

A)
onStart() method
B)
onClick() method
C)
onBackPressed() method
D)
onCreate() method

Correct Answer :   onBackPressed() method

A)
Android Virtual device
B)
Active Virtual device
C)
Active Virtual display
D)
Android Virtual display

Correct Answer :   Android Virtual device


Explanation : An Android Virtual Device (AVD) is an emulator configuration that represents a specific Android device. We can use the Android emulator as a target device to execute and test our Android application on our PC.

A)
Yes
B)
No
C)
May be
D)
Can't say

Correct Answer :   Yes


Explanation : Yes, an android app can be developed in C/C++ also using android NDK (Native Development Kit). It makes the performance faster. It should be used with Android SDK.

A)
For storing the data in the database
B)
For sharing the data between applications
C)
For sending the data from an application to another application
D)
None of the above

Correct Answer :   For sending the data from an application to another application


Explanation : A content provider is used to share information between Android applications.

A)
3
B)
4
C)
5
D)
6

Correct Answer :   4


Explanation : Android operating system is a stack of software components which is roughly divided into five sections and four main layers.

A)
Libraries
B)
Applications
C)
Application Framework
D)
Linux kernel

Correct Answer :   Linux kernel


Explanation : At the bottom of the layers is Linux - Linux 3.6 with approximately 115 patches

A)
Libraries
B)
Applications
C)
Android Runtime
D)
Application Framework

Correct Answer :   Applications


Explanation : Android application at the top layer. You will write your application to be installed on this layer only.

A)
android.app
B)
android.widget
C)
android.content
D)
android.database

Correct Answer :   android.app


Explanation : android.app − Provides access to the application model and is the cornerstone of all Android applications

A)
Used to render and manipulate text on a device display.
B)
The fundamental building blocks of application user interfaces.
C)
A Java interface to the OpenGL ES 3D graphics rendering API.
D)
A set of classes intended to allow web-browsing capabilities to be built into applications.

Correct Answer :   A set of classes intended to allow web-browsing capabilities to be built into applications.


Explanation : android.webkit : A set of classes intended to allow web-browsing capabilities to be built into applications.

A)
Libraries
B)
Linux kernel
C)
Android Runtime
D)
Application Framework

Correct Answer :   Android Runtime


Explanation : Android Runtime is not a layer in Android Architecture.

A)
Controls all aspects of the application lifecycle and activity stack.
B)
Allows applications to display alerts and notifications to the user.
C)
Allows applications to publish and share data with other applications.
D)
Provides access to non-code embedded resources such as strings, color settings and user interface layouts.

Correct Answer :   Provides access to non-code embedded resources such as strings, color settings and user interface layouts.


Explanation : Resource Manager : Provides access to non-code embedded resources such as strings, color settings and user interface layouts.

A)
android.widget
B)
android.opengl
C)
android.os
D)
android.database

Correct Answer :   android.opengl


Explanation : android.opengl : A Java interface to the OpenGL ES 3D graphics rendering API

A)
Allows applications to display alerts and notifications to the user.
B)
Allows applications to publish and share data with other applications.
C)
Controls all aspects of the application lifecycle and activity stack.
D)
Provides access to non-code embedded resources such as strings, color settings and user interface layouts.

Correct Answer :   Controls all aspects of the application lifecycle and activity stack.


Explanation : Activity Manager :Controls all aspects of the application lifecycle and activity stack.

A)
Android Runtime
B)
Libraries
C)
Applications
D)
Application Framework

Correct Answer :   Android Runtime


Explanation : This is the third section of the architecture and available on the second layer from the bottom. This section provides a key component called Dalvik Virtual Machine which is a kind of Java Virtual Machine specially designed and optimized for Android.

A)
Android Asset Packaging Tool
B)
Android Action Packaging Tool
C)
Android Activity Packaging Tool
D)
None of the above

Correct Answer :   Android Asset Packaging Tool


Explanation : AAPT is an acronym for "Android Asset Packaging Tool". It handles the packaging process.

A)
Native Design Kit
B)
Native Development Kit
C)
New Development kit
D)
None of the above

Correct Answer :   Native Development Kit


Explanation : NDK stands for Native Development Kit. By using NDK, you can develop a part of an app using a native language such as C/C++ to boost performance.

A)
XML
B)
Manifest
C)
HTML Source
D)
Java source code

Correct Answer :   Java source code

A)
onSelect
B)
onCreate
C)
onClick
D)
None of the above

Correct Answer :   onClick

A)
View
B)
Intent
C)
Manifest
D)
Fragment

Correct Answer :   Fragment


Explanation : Android Fragment is the part of activity; it is also known as sub-activity. There can be more than one fragment in an activity. Fragments represent multiple screens inside one activity.

A)
contextThemeWrapper
B)
object
C)
context
D)
None of the above

Correct Answer :   contextThemeWrapper


Explanation : The android Activity is the subclass of ContextThemeWrapper class. Android Activity Lifecycle is controlled by 7 methods of android.app.Activity class. An activity is a single screen in android. It is like a window or frame of Java.

A)
object
B)
contextWrapper
C)
context
D)
contextThemeWrapper

Correct Answer :   contextWrapper


Explanation : The android.app.Service is subclass of ContextWrapper class. Android service is a component used to perform operations on the background, such as playing music, handling network transactions, interacting content providers, etc.

A)
Open Health Academy
B)
Open Handset Alliance
C)
Open Handset Application
D)
Open Handset Association

Correct Answer :   Open Handset Alliance


Explanation : OHA stands for "Open Handset Alliance". It's a consortium of 84 companies such as google, samsung, AKM, synaptics, KDDI, Garmin, Teleca, eBay, Intel, etc.

A)
CPU
B)
Memory
C)
Logcat
D)
ADB Logs

Correct Answer :   Logcat


Explanation : Logcat is a command-line tool that dumps a log of system messages. It includes the messages that you have written from your app with the Log class and also includes the stack traces when the devices throw an error. Logcat helps to analyze the problems and also helps to display the log messages of our android device.

A)
2005
B)
2006
C)
2007
D)
None of the Above

Correct Answer :   2007


Explanation : OHA (Open Handset Alliance) was established on 5th November 2007, led by Google. It is committed to advance open standards, provide services and deploy handsets using the Android Platform.

A)
Services
B)
Activities
C)
Content Providers
D)
Broadcast Receivers

Correct Answer :   Services


Explanation : Services : They handle background processing associated with an application.

A)
They handle communication between Android OS and applications
B)
They handle background processing associated with an application.
C)
They dictate the UI and handle the user interaction to the smart phone screen
D)
They handle data and database management issues

Correct Answer :   They handle data and database management issues


Explanation : Content Providers : They handle data and database management issues.

A)
An activity is implemented as a subclass of Activity class
B)
An activity represents a single screen with a user interface,in-short Activity performs actions on the screen.
C)
application has more than one activity, then one of them should be marked as the activity that is presented when the application is launched.
D)
All of the above

Correct Answer :   An activity represents a single screen with a user interface,in-short Activity performs actions on the screen.

A)
A broadcast receiver is implemented as a subclass of Activity class
B)
A broadcast receiver is implemented as a subclass of Service class
C)
A broadcast receiver is implemented as a subclass of ContentProvider class
D)
A broadcast receiver is implemented as a subclass of BroadcastReceiver class

Correct Answer :   A broadcast receiver is implemented as a subclass of BroadcastReceiver class


Explanation : A broadcast receiver is implemented as a subclass of BroadcastReceiver class and each message is broadcaster as an Intent object.

A)
Messages wiring components together
B)
UI elements that are drawn on-screen including buttons, lists forms etc.
C)
Represents a portion of user interface in an Activity.
D)
View hierarchies that control screen format and appearance of the views.

Correct Answer :   Represents a portion of user interface in an Activity.


Explanation : Fragments : Represents a portion of user interface in an Activity.

A)
Views
B)
Manifest
C)
Fragments
D)
Resources

Correct Answer :   Views


Explanation : Views : UI elements that are drawn on-screen including buttons, lists forms etc.

A)
Views
B)
Manifest
C)
Layouts
D)
Resources

Correct Answer :   Layouts


Explanation : Layouts : View hierarchies that control screen format and appearance of the views.

A)
Messages wiring components together
B)
External elements, such as strings, constants and drawable pictures.
C)
UI elements that are drawn on-screen including buttons, lists forms etc.
D)
View hierarchies that control screen format and appearance of the views.

Correct Answer :   Messages wiring components together

A)
Froyo
B)
Eclair
C)
Donut
D)
Cupcake

Correct Answer :   Cupcake


Explanation : On April 27, 2009, the Android updated to 1.5 with the codename of the dessert item (Cupcake). It has a Linux kernel 2.6.27.

A)
Froyo
B)
Donut
C)
Eclair
D)
Cupcake

Correct Answer :   Donut


Explanation : On September 15, 2009, Android 1.6 was released with the name Donut. It contains numerous new features such as voice and text entry search, bookmark history, contacts, web, "speak" a string of text, faster camera access, user can select multiple photos for deletion, support text-to-speech engine, WVGA screen resolutions.

A)
Source code
B)
Permission that the application requires
C)
List of strings used in the app
D)
None of the above

Correct Answer :   Permission that the application requires


Explanation : The AndroidManifest.xml file contains information of your package, including components of the application such as activities, services, broadcast receivers, content providers, etc. It is responsible for protecting the application to access any protected parts by providing the permissions.

A)
Applications
B)
Linux Kernel
C)
Applications Framework
D)
System Libraries and Android Runtime

Correct Answer :   Applications Framework


Explanation : On the top of Native libraries and android runtime, there is an application framework. Android framework includes Android API's such as UI (User Interface), telephony, resources, locations, Content Providers (data), and package managers. It provides a lot of classes and interfaces for android application development.

A)
Paused
B)
Start
C)
Running
D)
Destroyed

Correct Answer :   Paused


Explanation : A service is a component that runs in the background. It is used to play music, handle network transaction, etc.

A)
Version 1.0 or version 1.1
B)
Version 1.2 or version 1.3
C)
Version 2.3 or version 3.0
D)
Version 1.6 or version 2.0

Correct Answer :   Version 1.6 or version 2.0

A)
Muffin
B)
Donut
C)
Cupcake
D)
Honeycomb

Correct Answer :   Muffin


Explanation : Muffin is not a nickname of any android version.

A)
AlertDialog
B)
ProgressDialog
C)
DatePicker Dialog
D)
All of the above

Correct Answer :   All of the above


Explanation :

The Dialog classes that are supported in android are :
 
* Alert Dialog
* Progress Dialog
* Date Picker Dialog
* Time picker Dialog

A)
Filters
B)
Fragment
C)
Intents
D)
sub-activity

Correct Answer :   Fragment


Explanation : A Fragment is a piece of an activity which enable more modular activity design. It will not be wrong if we say, a fragment is a kind of sub-activity.

A)
onStop
B)
onPause
C)
onStart
D)
onResume

Correct Answer :   onStart


Explanation : onStart()The onStart() method is called once the fragment gets visible.

A)
onPause
B)
onStop
C)
onResume
D)
onDestroyView

Correct Answer :   onStop


Explanation : onStop()Fragment going to be stopped by calling onStop()

A)
onDestroy
B)
onPause
C)
onCreateView
D)
onDestroyView

Correct Answer :   onDestroy


Explanation : onDestroy()onDestroy() called to do final clean up of the fragment's state but Not guaranteed to be called by the Android platform.

A)
onStart
B)
onCreate
C)
onPause
D)
onResume

Correct Answer :   onResume


Explanation : onResume()Fragment becomes active

A)
Activity
B)
scenes
C)
transitions
D)
fragment stack

Correct Answer :   transitions


Explanation : Activity and Fragment transitions in Lollipop are built on top of a relatively new feature in Android called Transitions.

A)
2
B)
3
C)
4
D)
5

Correct Answer :   3


Explanation : Basically fragments are divided as three stages : Single Frame Fragment, List fragments and Fragments transaction.

A)
android 2.0 version
B)
android 3.0 version
C)
android 4.0 version
D)
android 5.0 version

Correct Answer :   android 3.0 version


Explanation : Single frame fragment is designed for small screen devices such as hand hold devices(mobiles) and it should be above android 3.0 version.

A)
list fragment
B)
view fragment
C)
frame fragment
D)
special fragment

Correct Answer :   list fragment


Explanation : Fragments having special list view is called as list fragment

A)
Oracle
B)
MySQL
C)
Big Data
D)
SQLite

Correct Answer :   SQLite


Explanation : SQLite is an open-source relational database, i.e., used to perform database operations on android devices such as storing, manipulating, or retrieving persistent data from the database. It is embedded in android by default. So, there is no need to perform any database setup or administration task.

A)
android.api
B)
android.content
C)
android.database
D)
None of the above

Correct Answer :   android.database

A)
onCreate
B)
onStop
C)
onDestroy
D)
onResume

Correct Answer :   onResume


Explanation : onResume is called when an activity will start interacting with the user.

A)
Prioritize
B)
Sticky
C)
Optional
D)
None of the above

Correct Answer :   Sticky


Explanation : If we use the sendStickyBroadcast(Intent) method, the Intent is sticky. It means that the Intent that we are sending will stay around after the completion of the broadcast.

A)
toast class
B)
log class
C)
maketest class
D)
None of the above

Correct Answer :   toast class


Explanation : An android toast provides feedback to the users about the operation being performed by them. It displays the message regarding the status of operation initiated by the user.

A)
Log.r()
B)
Log.d()
C)
Log.R()
D)
Log.D()

Correct Answer :   Log.d()


Explanation : The Lod.d() method in android is used to log debug messages.

A)
onStop() method
B)
stopSelf() method
C)
onDestroy() method
D)
stopService() method

Correct Answer :   onDestroy() method


Explanation : The onDestroy() method can be used by services to clean up any resources like receivers, threads, registered listeners, etc.

A)
android.widget
B)
android.view.View
C)
android.view.ViewGroup
D)
None of the above

Correct Answer :   android.view.ViewGroup


Explanation : In Android, all layout classes are the subclasses of android.view.ViewGroup.

A)
TableLayout
B)
FrameLayout
C)
RelativeLayout
D)
LinearLayout

Correct Answer :   LinearLayout


Explanation : LinearLayout in android aligns all children either vertically or horizontally. The direction of the LinearLayout can be specified using the android orientation attribute.

A)
Intent
B)
Service
C)
Filters
D)
Broadcast Receiver

Correct Answer :   Intent


Explanation : An Android Intent is an abstract description of an operation to be performed.

A)
Context.startService()
B)
Context.startActivity()
C)
Context.sendBroadcast()
D)
All of the above

Correct Answer :   Context.startActivity()


Explanation : Context.startActivity() :The Intent object is passed to this method to launch a new activity or get an existing activity to do something new.

A)
Context.startActivity()
B)
Context.sendBroadcast()
C)
Context.startService()
D)
None of the above

Correct Answer :   Context.startService()


Explanation : Context.startService() : The Intent object is passed to this method to initiate a service or deliver new instructions to an ongoing service.

A)
ACTION_VIEW tel:123
B)
ACTION_DIAL tel:123
C)
ACTION_SET_WALLPAPER
D)
None of the above

Correct Answer :   ACTION_DIAL tel:123


Explanation : ACTION_DIAL tel:123 : Display the phone dialer with the given number filled in.

A)
Show settings for choosing wallpaper
B)
It will start the platform-defined tutorial
C)
It intimates when time zone has changed
D)
Edit information about the person whose identifier is "1".

Correct Answer :   Show settings for choosing wallpaper


Explanation : ACTION_SET_WALLPAPER : Show settings for choosing wallpaper

A)
setExtras() and getExtras() methods
B)
putsExtras() and getsExtras() methods
C)
setsExtras() and getsExtras() methods
D)
putExtras() and getExtras() methods

Correct Answer :   putExtras() and getExtras() methods


Explanation : The extras can be set and read using the putExtras() and getExtras() methods respectively.

A)
If set in an Intent passed to Context.startActivity()
B)
If set, and the activity being launched is already running in the current task
C)
This flag is generally used by activities that want to present a "launcher" style behavior
D)
All of the above

Correct Answer :   This flag is generally used by activities that want to present a "launcher" style behavior


Explanation : FLAG_ACTIVITY_NEW_TASK: This flag is generally used by activities that want to present a "launcher" style behavior: they give the user a list of separate things that can be done, which otherwise run completely independently of the activity launching them..

A)
KeyEvent.Callback
B)
Drawable.Callback
C)
AccessibilityEventSource
D)
All of the above

Correct Answer :   All of the above


Explanation : View class extends Object class and implements Drawable.Callback, KeyEvent.Callback and AccessibilityEventSource.

A)
wrap_parent
B)
match_parent
C)
wrap_content
D)
match_content

Correct Answer :   match_parent


Explanation : match_parent means it will occupy the complete space available on the display of the device.

A)
wrap_content
B)
wrap_parent
C)
match_parent
D)
match_content

Correct Answer :   wrap_content

A)
onCreate() callback
B)
onDrop() callback
C)
offCreate() callback
D)
offCreate() callback

Correct Answer :   onCreate() callback


Explanation : Android system initiates its program with in an Activity starting with a call on onCreate() callback method..

A)
startActivity()
B)
ActivityForResult()
C)
startActivityForResult()
D)
None of the above.

Correct Answer :   startActivityForResult()


Explanation : startActivityForResult() should use when need to pass data back from an activity.

A)
Activity
B)
Fragments
C)
Adapter
D)
None of the above

Correct Answer :   Fragments


Explanation : In android mini-activities are also known as Fragments