Android MCQ
Android MCQ
1) Android is -
a. an operating system
b. a web browser
c. a web server
d. None of the above
Explanation: The Android platform was released under the Apache 2.0
license, and it is responsible for the copyright of the Android Open Source
project. The Apache Foundation permits and grants licenses for software
uses and distribution by the copyright under the Android Open Source
Project.
4) Which of the following is the first mobile phone released that ran the Android
OS?
ADVERTISEMENT
a. HTC Hero
b. Google gPhone
c. T - Mobile G1
d. None of the above
Explanation: The first Android mobile was publicly released with Android
1.0 of the T-Mobile G1 (aka HTC Dream) in October 2008.
Explanation: Java language is mainly used to write the android code even
though other languages can be used.
Explanation: An APK is a short form of the Android Package Kit. An APK file
is the file format used to install the applications on the android operating
system.
9) Which of the following converts Java byte code into Dalvik byte code?
a. Dalvik converter
b. Dex compiler
c. Mobile interpretive compiler (MIC)
d. None of the above
Answer: (b) Dex compiler
Explanation: The Dex compiler converts the class files into a .dex file that
runs on the Dalvik VM. Multiple class files are converted into one dex file.
Explanation: The finish() method is used to close the activity. Whereas the
finishActivity(int requestCode) also closes the activity with requestCode.
14) On which of the following, developers can test the application, during
developing the android applications?
a. Third-party emulators
b. Emulator included in Android SDK
c. Physical android phone
d. All of the above
16) Which of the following is the first callback method that is invoked by the
system during an activity life-cycle?
a. onClick() method
b. onCreate() method
c. onStart() method
d. onRestart() method
a. onClick() method
b. onCreate() method
c. onStart() method
d. onBackPressed() method
Explanation: None
18) We require an AVD to create an emulator. What does AVD stand for?
a. Android Virtual device
b. Android Virtual display
c. Active Virtual display
d. Active Virtual device
Answer: (a) Android Virtual device
Answer: (c) For sending the data from an application to another application
Explanation: NDK stands for Native Development Kit. By using NDK, you
can develop a part of an app using a native language such as C/C++ to
boost performance.
ADVERTISEMENT
ADVERTISEMENT
Explanation: None
24) Which of the following method is used to handle what happens after clicking
a button?
a. onClick
b. onCreate
c. onSelect
d. None of the above
25) Which of the following android component displays the part of an activity on
screen?
a. View
b. Manifest
c. Intent
d. Fragment
ADVERTISEMENT
ADVERTISEMENT
31) Which of the following is the name of the Android version 1.5?
a. Eclair
b. Froyo
c. Cupcake
d. Donut
Explanation: On April 27, 2009, the Android updated to 1.5 with the
codename of the dessert item (Cupcake). It has a Linux kernel 2.6.27.
32) Which of the following is the name of the Android version 1.6?
a. Eclair
b. Froyo
c. Cupcake
d. Donut
Explanation: On September 15, 2009, Android 1.6 was released with the
name Donut. It contains numerous new features such as voice and text entry
search, bookmark history, contacts, web, "speak" a string of text, faster
camera access, user can select multiple photos for deletion, support text-to-
speech engine, WVGA screen resolutions.
34) Which of the layer is below the topmost layer of android architecture?
a. System Libraries and Android Runtime
b. Linux Kernel
c. Applications
d. Applications Framework
Explanation: None
41) In which state the activity is, if it is not in focus, but still visible on the
screen?
ADVERTISEMENT
ADVERTISEMENT
a. Stopped state
b. Destroyed state
c. Paused state
d. Running state
Explanation: When an activity is not in focus that is not interacting with the
user but still visible on the screen, then the activity is in paused state.
42) Which of the following is the built-in database of Android?
a. SQLite
b. MySQL
c. Oracle
d. None of the above
44) Which of the following features are updated in Android 4.1(Jelly Bean)?
a. User Interface
b. Lock screen improvement
c. New clock application
d. All of the above
45) Which of the following is the API level of Android version 5.0?
a. 21
b. 20
c. 11
d. 41
Answer: (a) 21
46) Is it true that "There can be only one running activity at a given time"?
a. True
b. False
c. May be
d. Can't say
Explanation: None
47) Which of the following android library provides access to the database?
a. android.content
b. android.database
c. android.api
d. None of the above
Explanation: None
48) In Android studio, which of the following callback is called when an activity
starts interacting with the user?
a. onDestroy
b. onCreate
c. onResume
d. onStop
50) Which of the following class in android displays information for a short
period of time and disappears after some time?
a. toast class
b. log class
c. maketest class
d. None of the above
52) Which of the following method is used by services to clean up any services?
a. onStop() method
b. stopService() method
c. onDestroy() method
d. stopSelf() method
55) Which of the following class in android executes the task asynchronously
with your service?
ADVERTISEMENT
a. SyncTask
b. AsyncTask
c. Both of the above
d. None of the above
Hide Answer Workspace
56) Which of the following layout in android arranges its children into rows and
columns?
a. RelativeLayout
b. TableLayout
c. FrameLayout
d. None of the above
Answer: (b) It is used to change the bitmap images into nine sections