- 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 - How to kill an activity in Android?
Answer : C
Explanation
finish() − It is used to close the activity.
finish(int requestCode) − It is used to close the activity with requestCode.
Q 2 - What is the life cycle of services in android?
Answer : A
Explanation
Service life cycle is as onCreate()−>onStartCommand()−>onDestory().
Q 3 -How to pass the data from activity to services in android?
B - We can't pass data from activity to services.
C - Using putExtra() method in intent, we can pass the data using setResult()
Answer : D
Explanation
Using putExtra() method, we can send the data. While using it, we need to call setResult() method in services. We can also store data in a common database and access it on services as well as in Activity.
Q 4 - What is the time limit of broadcast receiver in android?
Answer : A
Explanation
Broadcast receiver has to do operation within 10 sec or else ANR will occur
Q 5 - What are the wake locks available in android?
Answer : E
Explanation
When CPU is on mode, PARTIAL_WAKE_LOCK will be active.
When CPU + bright Screen low is on mode, SCREEN_DIM_WAKE_LOCK will be active.
When CPU + bright Screen High is on mode,SCREEN_BRIGHT_WAKE_LOCK will be active.
When CPU, Screen, bright Screen High is on mode, FULL_WAKE_LOCK will be active.
Q 6 - WHich method is used to find GPS enabled or disabled pro-grammatically in android?
Answer : C
The onProviderDisable() method is used to find whether GPS is enabled or disabled in android pro-grammatically
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.
Answer : B
Fragment is a peace of an activity. If you want to move your application in 360 degrees, you can do this by using a fragment.
Q 9 - Why don't we give MIN SDK as 1 in android?
A - Android deprecated version
Answer : A
Android version 2.2 is deprecated so we don't need to call MIN version to be 1
Q 10 - What are the main components in android?
Answer : A,B,C and D
The main components in android are Activity, services, Broadcast Receiver and content providers.
