- Android Basics
- 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 - User Interface
- 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 - WHich of the following is/are are the subclasses in Android?
Answer : E
Explanation
Action bar,Launcher, Preference and Tab activities are subclasses of activities in android
Q 3 - On which thread broadcast receivers will work in android?
Answer : B
Explanation
Broadcast Receiver by default runs on Main Thread only.
Q 4 - What is the life cycle of broadcast receivers in android?
D - sendBroadcast(), sendOrderBroadcast(), and sendStickyBroadcast().
Answer : B
Explanation
Broadcast receiver has only onReceive() method. Broadcast starts from onRecieve() and control comes out from onRecieve().
Q 5 - Persist data can be stored in Android through
Answer : E
Explanation
We can store persist data in android in shared preferences, internal/external storage, SQlite, and Network servers.
Q 6 - What is ADB in android?
Answer : C
Android debug bridge is a client and a server modelled tool and acts as a bridge between client and server.
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 a GCM in android?
Answer : A
Using with google could messaging, we can push the data from the servers to client devices. In short, we can send messages to mobile devices through the cloud(Push Notification).
Q 9 - How many protection levels are available in the android permission tag?
A - There are no permission tags available in android
B - Normal, kernel, application
Answer : C
Android is having four levels of protection in android permission tag. They are normal, dangerous, signature, and signatureOrsystem
Q 10 - How do you join two notifications in android?
A - Give same id for both notifications
B - Write notification code two times
Answer : E
Give same id for both notifications.
nm.notify(1,notification);
To Continue Learning Please Login
Login with Google