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 - What is an activity in Android?
A - Activity performs the actions on the screen
Answer : A
Explanation
Activity is a single screen in an application, Activity performs the actions on the screen(UI)
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 -What is ANR in android?
A - When the application is not responding ANR will occur.
B - Dialog box is called as ANR.
C - When Android forcefully kills an application, it is called ANR
Answer : A
Explanation
When an Application is not responding ANR will be occur, and it will stop the process or an application
Q 4 - What is the use of content provider in android?
A - To send the data from an application to another application
B - To store the data in a database
Answer : C
Explanation
Content provider is used to share the data between applications
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 DDMS in android?
Answer : D
DDMS provides port forwarding, screen capturing, memory mapping, logcat, calls, SMS etc.
Q 7 - What does httpclient.execute() returns in android?
Answer : B
Httpclient.execute() executes only once and it will return http response from the server or device, Http entity is embedded the body of the Http response.
Answer : A
According to the Google documentation, Android supports 4 types of orientations, those are landscape, portrait, sensor and No orientation
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 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.