Android MCQ
1. Package of compiled Java codes with some other resources is
called
(a) IDE
(b) JDK
(c) APK
(d) IDK
2. In Android studio, currently open file location can be shown by
(a) Navigation bar
(b) Menu bar
(c) Tool bar
(d) Editor bar
3. A part of Android studio, that work as a simulator for Android device
is called
(a) Driver
(b) Stub
(c) Emulator
(d) Firmware
4. Code that provides easy way to use all Android features is called
(a) API
(b) DVM
(c) DEX
(d) JDK
5. If a button is clicked whose method in Java is not defined then
Android application will
(a) Do nothing
(b) Show black Screen
(c) Crash
(d) Get hang
6. In Android studio, each new activity created must be defined in
(a) Res/Layout
(b) Build.gradle
(c) Res/values
(d) AndroidManifest.xml
7. Layout or design of an Android application is saved in
(a) .text file
(b) .dex file
(c) .java file
(d) .xml file
8. One of recent Android version is
(a) Kitkat
(b) Pie
(c) Marshmallow
(d) Q
9. Required Java environment for development is called
(a) JDK
(b) DVM
(c) DEX
(d) API
10. In Android studio, tab in which error is shown is called
(a) Logcat
(b) ABD logs
(c) Memory
(d) CPU
11. What is a context in android?
(a) It is an interface to store global information about an application
(b) It is used to create new components.
(c) Android has two contexts, those are getContext() and
getApplicationContext()
(d) All of Above
(e) None of Above
12. What is android view group?
(a) Collection of views and other child views
(b) Base class of building blocks
(c) Layouts
(d) None of the Above
13. What are the layouts available in android?
(a) (i) Linear Layout
(b) Frame Layout
(c) (ii) Table Layout
(d) All of above
(e) (i) & (ii) Option
14. What is the difference between margin and padding in android
layout?
(a) Margin is specifying the extra space left on all four sides in layout
(b) Padding is used to offset the content of a view by specific px or dp
(c) Both A and B are correct
(d) None of the above
15. What is Manifest.xml in android?
(a) It has information about layout in an application
(b) It has the information about activities in an application
(c) It has all the information about an application
(d) None of the above
16. Write Array values that you can use in your application?
(a) AndroidManifest.xml
(b) res/Text.xml
(c) res/layout/Main.xml
(d) res/values/strings.xml
17. Write Button Design in following file, that you can use in your
application?
(a) AndroidManifest.xml
(b) res/drawable.xml
(c) res/layout/Main.xml
(d) Mentioned Not
18. getResources().getStringArray(R.array.array_samp)
(a) get Values From Resource Array
(b) get Value from Data Source
(c) All of Correct
(d) All of In Correct
19. what use of Following Code?
<intent-filter> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
(a) Used this code to Launch Activity
(b) This code is Compulsory for all Android Activity
(c) This code used for set Initial Values of Activity
(d) Mentioned Not
20. Which of following is incorrect about the Toast class?
(a) You cannot set a custom layout for a Toast.
(b) A Toast can only create by an Activity class
(c) There is no need to close or hide a Toast, since it closes
automatically
(d) A Toast is displayed for only one of the following periods
21. What is an interface in android?
(a) Interface acts as a bridge between class and the outside world
(b) Interface is a class
(c) Interface is a layout file
(d) None of the above
22. Fragment in Android can be found through
(a) findByID
(b) findFragmentByID
(c) getContext.findFragmentByID
(d) FragmentManager.findFragmentByID
23. When did Google purchase Android?
(a) 2007
(b) 2005
(c) 2008
(d) 2010
24. Which Android version had the greatest share of the market as
of January 2011?
(a) 1.1
(b) 1.5
(c) 2.3
(d) 3.4