Android Question Basics
Android Question Basics
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 4
o Option 1 : A. sendIntentcast()
Option 2 : B. sendStickyBroadcast()
Option 3 : C. sendBroadcast(Intent)
Option 4 : D. Both B&C
Q2.Which of the following statements are correct with regards to calling place
GoogleAuthUtil.getToken()?
A) call getToken() on the UI thread
B) call getToken() on AsyncTask
o Difficulty Level :
o Competency : E0
o Status : Incorrect
o Marks Obtained : 0
o Response : 3
o Option 1 : A. Statement A is true, while Statement B is false.
Option 2 : B. Statement B is true, while Statement A is false.
Option 3 : C. Both statements are true.
Option 4 : D. Both statements are false.
Q3.Which of the following can you use to display an HTML web page in an Android
application?
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 3
o Option 1 : A. WebBrowser
Option 2 : B. BrowserView
Option 3 : C. WebView
Option 4 : D. Browser
Option 5 : E. HtmlView
Q4.Which of the following would you have to include in your project to use the SimpleAdapter
class?
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 2
o Option 1 : A. import android.content;
Option 2 : B. import android.widget;
Option 3 : C. import android.database;
Option 4 : D. import android.database.sqlite;
Option 5 : E. import android.util;
Q5.What is Dalvik?
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 3
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 3
o Option 1 : A. To play rich media content files.
Option 2 : B. To create and publish rich media files.
Option 3 : C. To share data between Android applications.
Option 4 : D. To access the global information about an application environment.
Option 5 : E. To maintain global application state.
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 2
o Option 1 : A. No
Option 2 : B. Yes
Option 3 : C. Throws Error
Option 4 : D. Depends on condition
Q8.Which of the following would you have to include in your project to use the APIs and classes
required to access the camera on the mobile device?
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 2
o Option 1 : A. import android.drivers;
Option 2 : B. import android.hardware.camera;
Option 3 : C. import android.camera;
Option 4 : D. import android.util;
Option 5 : E. import android. hardware;
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 1
Q10.Consider the XML fragment below, which is taken from one of the files in an Android
project:
<MyElement xmlns:"http://schemas.androd.com/apk/res/android"
android:layout_width = "fill_parent"
android:layout_height = "fill_parent"
android:text = "Some Text">
Which of the following are true about the XML fragment above?
Note: There may be more than one right answer.
o Difficulty Level :
o Competency : E0
o Status : Incorrect
o Marks Obtained : 0
o Response : 1,3,6
Option 1 : A. It is taken from the manifest XML file of the Android project.
Option 2 : B. It is taken from an XML file used to define a view.
Option 3 : C. It is taken from the package file (.apk) of the Android project.
Option 4 : D. The xmlns: attribute is a compulsory attribute.
E. If this is not the outer most tag in the XML file then it need not contain the
Option 5 :
xmlns: attribute.
F. MyElement should be the name of a class derived, directly or indirectly, from
Option 6 :
the View class.
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 4
o Option 1 : A. No difference
Option 2 : B. The NinePatch class permits drawing a bitmap in nine sections.
C. It is a resizable bitmap resource that can be used for backgrounds or other
Option 3 :
images on the device.
Option 4 : D. Both B&C
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 1
Option 1 : A. Activity
Option 2 : B. Intent
Option 3 : C. resource
Option 4 : D. None Of these
Q13..dex format is a
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 2
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 3
o Option 1 : A. MP4
Option 2 : B. MPEG
Option 3 : C. AVI
Option 4 : D. MIDI
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 4
Q16.Which of the following are classes that can be used to handle the Bluetooth functionality on
a device?
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 4
o Option 1 : A. Adapter
Option 2 : B. Manager
Option 3 : C. Matcher
Option 4 : D. BluetoothAdapter
Q17.Which of the following statements are correct with regards to signing applications?
a) All applications must be signed.
b) No certificate authority is needed.
c) When releasing application special debug key that is created by the Android SDK build tools
can be used.
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 4
Q18.What is Android-Positron?
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 2
o Option 1 : A. A con-hand line tool to create Android project files.
Option 2 : B. A framework to create unit tests for Android projects.
Option 3 : C. A resource editor to create user interface for Android applications.
Option 4 : D. A tool to generate Android byte code from .class files.
Option 5 : E. An emulator to execute and debug Android projects.
Q19.Which of the following packages provide the classes required to manage the Bluetooth
functionality on an Android device?
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 2
o Option 1 : A. android.hardware
Option 2 : B. android.bluetooth
Option 3 : C. android.bluez
Option 4 : D. org.bluez
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 4
o Option 1 : A. Components can be reused and replaced by the application framework.
Option 2 : B. Optimized DVM for mobile devices
Option 3 : C. SQLite enables to store the data in a structured manner.
Option 4 : D. All of the Above.
Q21.A User Defined JSON, XML, Bitmap, or other file, injected into the application build
process, which can later be loaded from code.
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 1
Option 1 : A. Resource
Option 2 : B. Intent
Option 3 : C. Sticky Intent
Option 4 : D. Activity
Q22.Suppose Screen1 is the main screen of an Android application MyAndroid. Now if another
screen, Screen2 has to be opened from Screen1, then which of the following are true?
Note: There may be more than one right answer.
o Difficulty Level :
o Competency : E0
o Status : Incorrect
o Marks Obtained : 0
o Response : 2,6
o Option 1 : A. Screen2 has to be a part of MyAndroid.
Option 2 : B. Screen2 can exist in any other Android application installed on the device.
Option 3 : C. Screen2 will always be launched asynchronously.
Option 4 : D. Screen2 can be launched synchronously.
Option 5 : E. Screen2 can return a result code to Screen1 if launched with startActivity.
F. Screen2 can return a result code to Screen1 if launched with
Option 6 :
startActivityForResult.
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 4
A. imagine a situation that you are in a country where no one understands the
o Option 1 : language you speak and you cannot read or write. However, you have mobile
phone with you.
B. With a mobile phone with android, the Google translator translates the data of
Option 2 :
one language into another language by using XMPP to transmit data.
C. You can type the message in English and select the language which is
Option 3 : understood by the citizens of the country in order to reach the message to the
citizens.
Option 4 : D. All of these
Q24.What is ADB?
o Difficulty Level :
o Competency : E0
o Status : Incorrect
o Marks Obtained : 0
o Response : 4
o Option 1 : A. Android Debug Bridge
Option 2 : B. A command-line debugging application shipped with the SDK
Option 3 : C. It provides tools to browse the device.
Option 4 : D. All of above
Q25.What is Intent?
o Difficulty Level :
o Competency : E0
o Status : Incorrect
o Marks Obtained : 0
o Response : 4
o Competency : E0
o Status : Incorrect
o Marks Obtained : 0
o Response : 2,3,5
A . The AndroidManifest.xml is optional and a default will be supplied if your app
o Option 1 :
doesnt provide one.
B . The AndroidManifest.xml must supply a unique Application package name for
Option 2 :
your App.
C . All Android applications must provide an Activity specified in
Option 3 :
AndroidManifest.xml.
Option 4 : D . You can specify your Apps target API in the AndroidManifest.xml.
Option 5 : E. The App name you specify in AndroidManifest.xml must be unique.
Q27.Inflate Exception is a
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 1
Q28.Which of the following Integrated Development Environments can be used for developing
software applications for the Android platform?
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 2
o Option 1 : A. Android IDE
Option 2 : B. Eclipse
Option 3 : C. Visual Studio 2005
Option 4 : D. Visual Studio 2008
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 1,2,5
o Difficulty Level :
o Competency : E0
o Status : Correct
o Marks Obtained : 1
o Response : 1,2
Option 1 : A. Debug mode
Option 2 : B. Release mode
Option 3 : C. Production mode
Option 4 : D. Development mode