- 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 - Can a user save all database updates in onStop ()?
A - Yes, a user can save all database updates in onStop()
B - No, a user can save in onSavedInstance()
Answer : D
Explanation
Due to low memory problem. your application will close before reaching onStop()
Q 2 - What is splash screen in android?
A - Initial activity of an application
B - Initial service of an application
Answer : D
Explanation
Splash is an activity. Generally it appears as initial screen of an application and works based on thread concept.
Q 3 -What are the return values of onStartCommand() in android services?
Answer : D
Explanation
START_STICKY − If android stops services forcefully, using with START_STICKY, it can be restarted automatically without the user interaction.
START_NOT_STICKY − If android stops services forcefully, it will not restart services till user start services.
START_REDELIVER_INTENT − If android stops services forcefully, it will restart services by re-sending an intent.
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 - 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 - What are the debugging techniques available in android?
Answer : D
DDMS, Breaking Point and Memory profiling are the three debugging techniques available in Android. Based on requirement, we can use debugging techniques, each technique is having different capabilities to debug.
Q 7 - What is the package name of HTTP client in android?
Answer : B
org.apache.http.client is the package name of HTTP client.
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 - What are commands needed to create APK in android?
A - No need to write any commands
B - Create apk_android in command line
Answer : C
Using with Javac, we can compile Java files
Use dx tool to convert all Java class files to single dex file
Use AAPT tool to create apk file
Sign the apk file by using jar signer
Zipalign of signed apk
Q 10 - What is an interface in android?
A - Interface acts as a bridge between class and the outside world.
Answer : A
The Interface acts as a bridge between class and the outside world. Interface contains method declaration, nested types, and constants.
To Continue Learning Please Login
Login with Google