Professional Documents
Culture Documents
Android Multiple Choice Questions
Android Multiple Choice Questions
2) Although most people’s first thought when they think of Android is Google, Android is not actually
owned by Google. Who owns the Android platform?
A. Oracle Technology
B. Dalvik
C. Open Handset Alliance
D. The above statement is and Android is owned by Google
Ans: C
3) As an Android programmer, what version of Android should you use as your minimum development
target?
5) What was the first phone released that ran the Android OS?
A. Google gPhone
B. T-Mobile G1
C. Motorola Droid
D. HTC Hero
Ans: B
A. Aside from some specific drivers, it provides everything to make a phone work
B. It makes the hardware work better
C. It allows them to compete with Apple’s iPhone
D. It allows users to create apps, generating revenue for the companies
Ans: A
7) What is a funny fact about the start of Android?
A. 2005
B. 2006
C. 2007
D. 2008
Ans: C
A. True
B. False
Ans: B
10) Android tries hard to ______________ low-level components, such as the software stack, with
interfaces so that vendor-specific code can be managed easily.
A. confound
B. abstract
C. modularize
D. compound
Ans: B
A. True
B. False
Ans: A
14) Android releases since 1.5 has been given nicknames derived how?
A. cupcake
B. Gingerbread
C. Honeycomb
D. Muffin
Ans: D
16) Android doesn’t make any assumptions about a device’s screen size, resolution, or chipset.
A. True
B. False
Ans: A
17) Why are they so few users left with versions 1.0 and 1.1?
18) 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
Ans: B
20) Android is built upon the Java Micro Edition (J2ME) version of Java.
A. True
B. False
Ans: B
21) Which among these are NOT a part of Android’s native libraries?
A. Webkit
B. Dalvik
C. OpenGL
D. SQLite
Ans: B
23) What operating system is used as the base of the Android stack?
A. Linux
B. Windows
C. Java
D. XML
Ans: A
24) What year was development on the Dalvik virtual machine started?
A. 2003
B. 2005
C. 2007
D. 2006
Ans: B
25) What is a key difference with the distribution of apps for Android based devices than other mobile
device platform applications?
A. Applications are distributed by Apple App Store only
B. Applications are distributed by multiple vendors with different policies on applications.
C. Applications are distributed by multiple vendors with the exact same policies on applications.
D. Applications are distributed by the Android Market only.
Ans: B
26) When developing for the Android OS, Java byte code is compiled into what?
A. Java source code
B. Dalvik application code
C. Dalvik byte code
D. C source code
Ans: C
28) When you distribute your application commercially, you’ll want to sign it with your own key.
A. True
B. False
Ans: A
29) How does Google check for malicious software in the Android Market?
A. Every new app is scanned by a virus scanner
B. Users report malicious software to Google
C. Google employees verify each new app
D. A seperate company monitors the Android Market for Google
Ans: B
30) Which separate is not one of the three main components of the APK?
A. Dalvik Executable
B. Resources
C. Native Libraries
D. Webkit
Ans: D
31) What is the name of the program that converts Java byte code into Dalvik byte code?
A. Android Interpretive Compiler (AIC)
B. Dalvik Converter
C. Dex compiler
D. Mobile Interpretive Compiler (MIC)
Ans: C
32) What was the main reason for replacing the Java VM with the Dalvik VM when the project began?
A. There was not enough memory capability
B. Java virtual machine was not free
C. Java VM was too complicated to configure
D. Java VM ran too slow
Ans: B
35) The AWT and Swing libraries have been removed from the Android library set.
A. True
B. False
Ans: A
36) The R.java file is where you edit the resources for your project.
A. True
B. False
Ans: B
A. Orientations and layouts that specify what the display looks like.
B. The permissions required by the app.
C. The strings used in the app.
D. The code which is compiled to run the app.
Ans: A
A. Runs the same code base as the actual device, all the way down to the machine layer.
B. Is more of a simulator, and acts as a virtual machine for the Android device.
C. Runs the same code base as the actual device, however at a higher level.
D. An imaginary machine built on the hopes and dreams of baby elephants.
Ans: A
40) Your Java source code is what is directly run on the Android device.
A. True
B. False
Ans: B
41) The Emulator is identical to running a real phone EXCEPT when emulating/simulating what?
A. Telephony
B. Applications
C. Sensors
D. The emulator can emulate/simulate all aspects of a smart phone.
Ans: C
A. Emulators are only used to play old SNES games, simulators are used for software development
B. The emulator is shipped with the Android SDK and third party simulators are not
C. The emulator can virtualize sensors and other hardware features, while the simulator cannot
D. The emulator imitates the machine executing the binary code, rather than simulating the behaviour of
the code at a higher level.
Ans: D
A. Automatically
B. Manually
C. Emulated
D. None of the above
Ans: A
A. A Java project
B. A Java class
C. A method call
D. An object field
Ans: B
45) To create an emulator, you need an AVD. What does it stand for?
A. True
B. False
Ans: A
A. Layout file
B. Manifest file
C. Strings XML
D. R file
Ans: A
48) The manifest explains what the application consists of and glues everything together.
A. True
B. False
Ans: A
49) The Android Software Development Kit (SDK) is all you need to develop applications for Android.
A. True
B. False
Ans: A
50) What is the driving force behind an Android application and that ultimately gets converted into a
Dalvik executable?
A. Java source code.
B. R-file.
C. the emulator.
D. the SDK
Ans: A
51) While developing Android applications, developers can test their apps on_____
A. Emulator included in Android SDK
B. Physical Android phone
C. Third-party Emulators (You wave, etc.)
D. All three options will work.
Ans: D
52) What file is responsible for gluing everything together, explaining what the application consists of,
what its main building blocks are, ext.…?
A. Layout file
B. Strings XML
C. R file
D. Manifest file
Ans: D
53) The XML file that contains all the text that your application uses.
A. stack.xml
B. text.xml
C. strings.xml
D. string.java
Ans: C
54) Which of the following is the most “resource hungry” part of dealing with Activities on Android
A. Closing an app
B. Suspending an app
C. Opening a new app
D. Restoring the most recent app
Ans: C
55) What runs in the background and doesn’t have any UI components?
A. Intents
B. Content Providers
C. Services
D. Applications
Ans: C
56) What is an Activity?
A. A single screen the user sees on the device at one time
B. A message sent among the major building blocks
C. A component that runs in the background without any interface.
D. Context referring to the application environment.
Ans: A
59) There is no guarantee that an activity will be stopped prior to being destroyed.
A. True
B. False
Ans: A
60) Intents
A. True
B. False
Ans: B
A. True
B. False
Ans: A
63) When the activity is not in focus, but still visible on the screen it is in?
A. running state
B. Paused state
C. stopped state
D. destroyed state
Ans: B
A. True
B. False
Ans: B
A. True
B. False
Ans: A
A. True
B. False
Ans: B
A. Observer
B. Facade
C. Mediator
D. Command
Ans: A
A. True
B. False
Ans: A
A. True
B. False
Ans: B
70) Lists and adapters are more organizational aids than user interface elements in Android.
A. True
B. False
Ans: A
73) A good example app should demonstrate most of the aspects of the application framework that are
unique to Android.
A. True
B. False
Ans: A
74) What will services are used for in the Yamba project?
75) Which answer is not part of the design philosophy talked about in chapter five?
A. Always whole and complete
B. Small increments
C. Lagre increments
D. Refactoring code
Ans: C
76) App Widgets are can be place on the home screen by the user to check for updates are available?
A. True
B. False
Ans: A
77) The android OS comes with many useful system services, which include processes you can easily ask
for things such as yours.
A. All of these and more.
B. Location
C. Sensor Readings
D. WiFi? Hot Spots
Ans: A
78) What does the Gargenta mean in his Design Philosophy when he says that the projects will, “Always
be whole and complete”?
A. He means that when we finish the entire project we will have a working application, even though there
will be points along the way when we will stop and the application will not run.
B. He means that the program must always be able to compile.
C. He means that we will work on the program by adding self-contained chunks to it so that at every
stopping point the application runs as though it were a whole and complete application. Each additional
chunk simply adds a new functionality to the application.
D. None of the above
Ans: C
79) An Android application is a loose collection of content providers, activities, broadcast receivers, and
services.
A. True
B. False
Ans: A
80) Which of the following is NOT an activity we will be creating for the YAMBA project?
A. Preferences Activity
B. Update Activity
C. Timeline Activity
D. Status Activity
Ans: B
81) The timeline receiver will receive messages from the Android system.
A. True
B. False
Ans: B
82) Status data will be exposed to the rest of the Android system via:
A. Intents
B. A content provider
C. Network receivers
D. Altering permissions
Ans: B
83) If the UI begins to behave sluggishly or crash while making network calls, this is likely due to…
A. Network latency
B. Hardware malfunctions
C. Virus on the Server
D. Activity manager contains too much.
Ans: A
84) How does Gargenta approach the problem of the app acting sluggishly due to network latency?
A. Starting over
B. Switching API levels
C. Refactoring code
D. Multithreading
Ans: D