- 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 - Is it possible to have an activity without UI to perform action/actions?
Answer : C
Explanation
Generally, every activity is having its UI(Layout). But if a developer wants to create an activity without UI, he can do it.
Q 2 - What are the layouts available in android?
Answer : E
Explanation
Android is having Linear Layout(Horizontal and Vertical), Frame Layout, Table Layout, and Relative Layout.
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 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 -Which permissions are required to get a location in android?
Answer : A
Explanation
To get a location of a phone, ACCESS_FINE and ACCESS_COARSE permission in manifest file are required. Without these permissions, we can't get the location of a mobile.
Answer : A
Every emulator or device is allocated by 2 ports based on port availability.
Answer : D
org.json is the package name of JSON object and JSON array
Q 8 - What is the JSON exception in android?
Answer : A
Json exception can be thrown while parsing JSON response from the server.
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 - What is anchor view?
B - provides the information on respective relative positions
Answer : B
Anchor View provides the information on respective relative positions of views.