- Android - Home
- Android - Overview
- Android - Environment Setup
- Android - Architecture
- Android - Application Components
- Android - Hello World Example
- Android - Resources
- Android - Activities
- Android - Services
- Android - Broadcast Receivers
- Android - Content Providers
- Android - Fragments
- Android - Intents/Filters
- Android - UI Layouts
- Android - UI Controls
- Android - Event Handling
- Android - Styles and Themes
- Android - Custom Components
- Android Advanced Concepts
- Android - Drag and Drop
- Android - Notifications
- Location Based Services
- Android - Sending Email
- Android - Sending SMS
- Android - Phone Calls
- Publishing Android Application
- Android Useful Examples
- Android - Alert Dialoges
- Android - Animations
- Android - Audio Capture
- Android - AudioManager
- Android - Auto Complete
- Android - Best Practices
- Android - Bluetooth
- Android - Camera
- Android - Clipboard
- Android - Custom Fonts
- Android - Data Backup
- Android - Developer Tools
- Android - Emulator
- Android - Facebook Integration
- Android - Gestures
- Android - Google Maps
- Android - Image Effects
- Android - ImageSwitcher
- Android - Internal Storage
- Android - JetPlayer
- Android - JSON Parser
- Android - Linkedin Integration
- Android - Loading Spinner
- Android - Localization
- Android - Login Screen
- Android - MediaPlayer
- Android - Multitouch
- Android - Navigation
- Android - Network Connection
- Android - NFC Guide
- Android - PHP/MySQL
- Android - Progress Circle
- Android - ProgressBar
- Android - Push Notification
- Android - RenderScript
- Android - RSS Reader
- Android - Screen Cast
- Android - SDK Manager
- Android - Sensors
- Android - Session Management
- Android - Shared Preferences
- Android - SIP Protocol
- Android - Spelling Checker
- Android - SQLite Database
- Android - Support Library
- Android - Testing
- Android - Text to Speech
- Android - TextureView
- Android - Twitter Integration
- Android - UI Design
- Android - UI Patterns
- Android - UI Testing
- Android - WebView Layout
- Android - Wi-Fi
- Android - Widgets
- Android - XML Parsers
- Android Useful Resources
- Android - Questions and Answers
- Android - Useful Resources
- Android - Discussion
Android Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to Android. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - Explain android activity life cycle?
B - OnCreate() −> onStart() −>onResume() −> onPause() −> onStop() −> onRestart() −> onDestroy()
C - OnCreate() −> onStart() −> onPause() −> onResume() −> onStop() −> onDestroy()
Answer : B
Explanation
OnCreate() − The system will call this,when an activity is created first time.
onStart() − The system will call this,when an activity starts the actions/action on UI.
onResume() − The system will call this, when onRestart() or onPause() is called.
onPause() −> The system will call this, when an activity going into the background.
onStop() − The system will call this, when an activity going into stop.
onRestart() − The system will call this, when an activity going to stop stage and to start the activity again.
onDestroy() − The system will call this, when an activity going in stop mode.
Q 2 - What is Manifest.xml in android?
A - It has information about layout in an application
B - It has the information about activities in an application
Answer : C
Explanation
Manifest.xml is having information about application as number components in your application,Activity information,service information, and icon about an application
Each application has at least one Manifest file. Without manifest file we can't generate the APK file.
Q 3 - What is broadcast receiver in android?
A - It will react on broadcast announcements.
B - It will do background functionalities as services.
Answer : A
Explanation
It is a main component of android. It reacts on the system broadcast announcements, and it acts as a gateway between outside application environment with your application.
Q 4 - What is the difference between content values and cursor in android SQlite?
A - Content values are key pair values, which are updated or inserted in the database
B - Cursor is used to store the temporary result.
Answer : C
Explanation
Content values are named key pair values which is used to store the data, update the data in SQlite database. Cursor is a temporary buffering area to store the temporary result of android SQlite.
Q 5 -What is the application class in android?
Answer : D
Explanation
Application class is the base class for any android application.
Q 6 - What is DDMS in android?
Answer : D
DDMS provides port forwarding, screen capturing, memory mapping, logcat, calls, SMS etc.
Q 7 - In which technique, we can refresh the dynamic content in android?
Answer : B
Using with Ajax technology, we can refresh the dynamic data in web pages.
Q 8 - What is fragment life cycle in android?
C - onAttach()->onCreate() −> onCreateView() −> onActivityCreated() −> onStart() −> onResume()
Answer : C
Fragment life cycle is as shown below −
onAttach() OnCreate() onCreateView() onActivityCreated() onStart() onResume() onPause() onStop() onDestroyView() onDestroy() onDetach()
Q 9 - Is it possible activity without UI in android?
Answer : B
Without UI, we can call an activity, It will do some background functionalities.
Q 10 - What is bean class in android?
A - A class used to hold states and objects
B - A bean class can be passed from one activity to another.
Answer : A
Bean class can hold other states and objects. It contains all fields which are private with setter and getter.
