Android OA0-002
Android OA0-002
Android OA0-002
QUESTION NO: 1
A. If another Activity is instantiated when the Activity is executed, onPause() will be executed.
B. When the Activity is displayed in the foreground, onResume() will be executed.
C. When the Activity is displayed again, onRestart() will be executed instead of onStart().
D. When the Activity returns from an onPause(), it sometimes can execute from onCreate().
Answer: C
Explanation:
QUESTION NO: 2
Answer: B
Explanation:
QUESTION NO: 3
A. AIDL
B. IDL
C. KML
D. XML
Answer: A
Explanation:
A. Layout file
B. Manifest file
C. Source file
D. Property file
Answer: B
Explanation:
QUESTION NO: 5
A. The process which BroadcastReceiver makes active will be protected so that it cannot be force-
quit.
B. BroadcastReceiver will only be assumed active when executing getReceive().
C. BroadcastReceiver notifies the source of optional processing results based on the broadcast
contact(s).
D. BroadcastReceiver displays a user interface.
Answer: A
Explanation:
QUESTION NO: 6
A. The MenuItem instance will be returned by the Menu class add(...) method.
B. MenuItem can decide the Intent issued when clicking menu components.
C. MenuItem can display either an icon or text.
D. MenuItem can set a checkbox.
Answer: C
Explanation:
Which is the correct file name of the NinePatch image created from a PNG using draw9patch?
(Assume the file name of the original graphic was sample.png.)
A. sample-9.png
B. sample_9.png
C. sample.png
D. sample.9.png
Answer: D
Explanation:
QUESTION NO: 8
A. Visible
B. Foreground
C. Background
D. Non-visible
Answer: D
Explanation:
QUESTION NO: 9
Which of these is the incorrect folder as a folder that is created automatically after completion of
the Android Development Tools Plugin New Project Wizard?
A. dat
B. gen
C. res
D. src
Answer: A
Explanation:
A. In order to display a Ul defined in the XML layout file "main.xml", call the setContentView
method of the Activity with the parameter string Bmain.xml".
B. There is no distinction between implementation of the layout definition by code, or by XML
layout file.
C. In an Eclipse project using the ADT plugin, the XML layout file is found in the /res/layout
directory.
D. Layout information written in the XML layout file will be converted into code by the Android
platform when the screen is displayed.
Answer: C
Explanation:
QUESTION NO: 11
A. Java ME
B. Java SE
C. Java EE
D. Doja
Answer: B
Explanation:
QUESTION NO: 12
When creating the following Android project, which is the correct combination of (1)~(3)to add to
the AndroidManifest.xml?
A. Option a
B. Option b
C. Option c
D. Option d
Answer: C
Explanation:
QUESTION NO: 13
A. Perl
B. JScript
C. Lua
D. BeanShell
Answer: B
Explanation:
Answer: A
Explanation:
QUESTION NO: 15
The following code is a part of an Activity class to create a dialog. Which is the Activity class
method used to display this dialog?
A. void createDialog();
B. void createDialogfint id);
C. void show();
D. void showDialog(int id);
Answer: C
Explanation:
QUESTION NO: 16
A. XML file
B. SQLite
C. json file
D. Java object
Answer: A
QUESTION NO: 17
A. JNI does not provide garbage collection on the native side, outside the memory resources of
the Java Virtual Machine.
B. Even if native code is used with JNI, it does not necessarily mean an improvement in the
application processing speed.
C. A Java exception can be generated from a native method, but it cannot be caught on the Java
side.
D. Header files generated on the Java side are included and implemented in the native (C/C++)
side source code.
Answer: D
Explanation:
QUESTION NO: 18
Which of these is called after the end of each test method of ActivitylnstrumentationTestCase2, a
class which provides the unit Activity function tests?
A. runTest
B. tearDown
C. setUp
D. setActivityIntent
Answer: B
Explanation:
QUESTION NO: 19
Answer: D
Explanation:
QUESTION NO: 20
Which of these Activity class methods must be overridden when creating a Menu that is displayed
when the device's Menu button is pressed?
A. onCreateContextMenu
B. onMenuOpened
C. onCreateOptionsMenu
D. openOptionsMenu
Answer: C
Explanation:
QUESTION NO: 21
A. BLUETOOTH
B. BLUETOOTH_ADMIN
C. ACCESS_WIFI_STATE
D. ACCOUNT MANAGER
Answer: A
Explanation:
QUESTION NO: 22
A. SensorEventListener
Answer: C
Explanation:
QUESTION NO: 23
A. Toast is a simple class for display, and cannot be set with a custom XML-defined layout
B. The display duration time of Toast can be chosen from 2 types, LENGTHJjDNG and
LENGTH_SHORT.
C. Toast is a class included in the android widget package.
D. Since Toast automatically closes after display, a dismiss () method is not provided.
Answer: A
Explanation:
QUESTION NO: 24
A. A telephone log
B. A database
C. A bookmark
D. A contact list
Answer: B
Explanation:
QUESTION NO: 25
A. There are 5 types of data type stored in column; Null, Integer, Real, Text, and Blob.
B. There are restrictions on some functions of SQLite loaded on Android.
Answer: B
Explanation:
QUESTION NO: 26
Which of these is not recommended in the Android Developer's Guide as a method of creating an
individual View?
Answer: C
Explanation:
QUESTION NO: 27
Which of these is the incorrect explanation regarding the private key when an application is
published?
Answer: A
Explanation:
QUESTION NO: 28
Which of these is the incorrect method setup when playing a video using a MediaPlayer?
A. setDataSource sets the path for the data you want to play.
Answer: B
Explanation:
QUESTION NO: 29
A. /data/app/<package name>/files
B. /data/data/<package name>/files
C. /system/app/<package name>/files
D. /system/data/<package name>/files
Answer: B
Explanation:
QUESTION NO: 30
Which is written in the red frame of the following figure, a manifest file, to show the version
number?
Answer: C
Explanation:
QUESTION NO: 31
Which of these is the correct explanation of the Ul/Application Exerciser Monkey (Monkey tool)?
Answer: B
Explanation:
QUESTION NO: 32
Which of the following dialogs is displayed at the time of executing the given code? (Assume no
problems in the rest of the application.)
A. Option a
B. Option b
C. Option c
D. Option d
Answer: C
Explanation:
QUESTION NO: 33
Which of these is the incorrect explanation of the Android SDK and AVD Manager?
A. They are provided from version 1.6 of the SDK. Up to Version 1.5, there was an AVD Manager
but it lacked SDK management functions.
B. You can create and startup AVD, and on startup you can delete user data up to that point.
C. The "android" command can be used if "<SDK install folder>/tools" is added to the command
path.
D. The development tools that can be downloaded from Android SDK and AVD Manager are SDK-
Answer: D
Explanation:
QUESTION NO: 34
Answer: D
Explanation:
QUESTION NO: 35
(1 )android.content.Context.sendBroadcast
(2)android.content.Context.startActivity
Answer: D
Explanation:
QUESTION NO: 36
A. Start an Activity
B. Start a BroadcastReceiver
C. Start a ContentProvider
D. Start a Service
Answer: C
Explanation:
QUESTION NO: 37
A. WindowManager
B. NotificationManager
C. DialerManager
D. PackageManager
Answer: C
Explanation:
QUESTION NO: 38
The emulator supports mounting disk image files instead of an actual SD card. Which is the
correct creation method of this?
Answer: D
Explanation:
QUESTION NO: 39
A. It is a tool used on the command line and does not have GUI.
B. It helps optimize application layout and layout hierarchy.
C. It operates on the layout file.
D. It can be used as an SDK tool from revision 4 and later.
Answer: D
Explanation:
QUESTION NO: 40
Which of these is the correct explanation of the Android Interface Description Language?
Answer: C
Explanation:
QUESTION NO: 41
Which of these is the incorrect package which holds classes needed for Android network
connections?
A. java.net
B. org.apache.http
C. android.location
Answer: C
Explanation:
QUESTION NO: 42
Answer: D
Explanation:
QUESTION NO: 43
The following code is a part of a program which sends a status bar notification. Which is the
correct code to put into (1) so that it will automatically cancel the notification after it occurs?
Answer: B
Explanation:
QUESTION NO: 44
Answer: C
Explanation:
QUESTION NO: 45
Answer: A
Explanation:
QUESTION NO: 46
A. ADT
Answer: A
Explanation:
QUESTION NO: 47
A. adb
B. etc 1 tool
C. fastboot
D. keytool
Answer: D
Explanation:
QUESTION NO: 48
Which manifest file permission is necessary to read data from the standard installed address
book?
A. READ_ADDRESS_DATA
B. READ_PHONE_STATE
C. READ_OWNER_DATA
D. READ CONTACTS
Answer: D
Explanation:
QUESTION NO: 49
A. Service
B. Activity
Answer: C
Explanation:
QUESTION NO: 50
Answer: D
Explanation:
QUESTION NO: 51
Which is the permission added to the Android manifest file in order to access GPS?
A. ACCESS_FINE_LOCATION
B. ACCESS_COARSE_LOCATION
C. ACCESS_CHECKIN_PROPERTIES
D. ACCESS MOCK LOCATION
Answer: A
Explanation:
QUESTION NO: 52
Which of these is the correct precaution when publishing an application update to the Android
Market?
A. The package name must be the same, but the .apk may be signed with a different private key.
B. The package name does not have to be the same and the .apk can be signed with a different
private key.
Answer: C
Explanation:
QUESTION NO: 53
Answer: A
Explanation:
QUESTION NO: 54
Answer: C
Explanation:
QUESTION NO: 55
A. Service
B. MediaPlayer
C. ContentProvider
Answer: C
Explanation:
QUESTION NO: 56
A. It is an object database.
B. It is client-server format.
C. It is possible to create and access a database by using SQLOpenHelper.
D. It can be accessed by other applications through ContentProvider.
Answer: D
Explanation:
QUESTION NO: 57
When reading videos from a resource, which is the recommended Android storage location for
video files?
A. /res/anim
B. /res/raw
C. /res/movie
D. /res/values
Answer: B
Explanation:
QUESTION NO: 58
Which of these is the correct processing necessary for data update notification at the time of
creating an individual ContentProvider and using it?
Answer: C
Explanation:
QUESTION NO: 59
A. In order to create a Tracefile, you must write methods specifying the starting and ending
positions of the part to be profiled.
B. Since Tracefiles are saved on SD cards, the developer must specify a file name.
C. Traceview is one of the tools of the SDK, and can be used from the command line or DDMS.
D. Since Traceview cannot use tracefiles as is, a development machine with adb must be used.
Answer: B
Explanation:
QUESTION NO: 60
Which of these is the incorrect description of the code executed when a Button widget is clicked?
A. Option a
B. Option b
C. Option c
D. Option d
QUESTION NO: 61
Which is the processing that cannot be executed by using the emulator during development?
Answer: D
Explanation:
QUESTION NO: 62
A. It is necessary to register with Android Market and pay a license fee in order to develop a paid-
for application on Android.
B. There is no special provision regarding application license operation on Android.
C. If an application is developed using Android, it is not a licensing violation if the source code is
not made public.
D. Since Android uses libraries licensed in various ways such as GPL, BSD, and LGPL,
applications developed under Android are subject to the severest license, GPL.
Answer: C
Explanation:
QUESTION NO: 63
For playing an audio file, where does the Android Developer's Guide recommend placing the file?
A. res/raw
B. res/values
C. data/data
D. system/data
QUESTION NO: 64
A. android://
B. content://
C. http://
D. market://search?
Answer: A
Explanation:
QUESTION NO: 65
Answer: D
Explanation:
QUESTION NO: 66
The following program uses an Intent to open a Web page designated by a Web browser. Which is
the correct code that goes into (1)?
A. android.intent.VIEW
B. android.intent.action.VIEW
Answer: B
Explanation:
QUESTION NO: 67
A. MediaPlayer.create(this, R.raw.music);
B. newMediaPlayer(this, R.raw.music);
C. MediaPlayer.getSource(this, R.raw.music);
D. MediaPlayer.newInstancefthis, R.raw.music),
Answer: A
Explanation:
QUESTION NO: 68
A. Option a
B. Option b
C. Option c
D. Option d
Answer: C
Explanation:
QUESTION NO: 69
Answer: A
Explanation:
QUESTION NO: 70
A. Activity
B. Service
C. Broadcast Receiver
D. Intent
Topic 2, Volume B
QUESTION NO: 71
Which of these is the correct Android function that can process even in the background?
A. Activity
B. Service
C. View
D. Intent
Answer: A
Explanation:
QUESTION NO: 72
A. You can display a list of currently running threads and select one to check its stack trace.
B. You can use it to acquire screenshots of a terminal.
C. You can forcibly execute garbage collection and check the present heap usage status.
D. You can do simulations of network zone speed and bandwidth limitations.
Answer: D
Explanation:
QUESTION NO: 73
Which is the correct procedure to play an MP3 format file using the MediaPlayer class?
A. Option a
B. Option b
C. Option c
D. Option d
Answer: A
Explanation:
QUESTION NO: 74
Which of these is the incorrect step to create a program which activates a Service using bind?
Answer: B
Explanation:
QUESTION NO: 75
Answer: A
Explanation:
QUESTION NO: 76
A. ConnectivityManager
B. WifiManager
C. Proxy
D. Networklnfo
Answer: B
Explanation:
QUESTION NO: 77
Which of these is the incorrect explanation of the Android Scripting Environment (ASE)?
A. You can execute scripts in the ASE, but cannot edit or create new documents.
B. There is an API for phone calling using the ASE.
C. Development using the ASE can be done interactively using a terminal.
D. ASE is an Android application and can execute scripting languages such as Python.
Answer: A
Explanation:
Which of these is the incorrect method for an Application to save local data?
Answer: D
Explanation:
QUESTION NO: 79
Of the size units which can be specified by Android, which is device independent?
A. px
B. dp (dip)
C. sp
D. pt
Answer: B
Explanation:
QUESTION NO: 80
A. MODE_WORLD_WRITEABLE
B. MODE_PUBLIC
C. MODE_PRIVATE
D. MODE_WORLD_READABLE
Answer: B
Explanation:
QUESTION NO: 81
Answer: B
Explanation:
QUESTION NO: 82
A. class file
B. jar file
C. dexfile
D. srecfile
Answer: C
Explanation:
QUESTION NO: 83
Answer: A
Explanation:
QUESTION NO: 84
Answer: D
Explanation:
QUESTION NO: 85
Answer: C
Explanation:
The following code applies to a dialog layout defined in XML. Which is the correct code that goes
into (1)? (Assume the dialog layout is correctly defined in res/layout/custom_dialog.xml, and there
are no other problems in the rest of the application.)
A. dialog.inflate(R.layout.custom_dialog);
B. dialog.setContentView(R.layout.custom_dialog);
C. dialog.getinflate().inflate(R.layout.custom_dialog);
D. dialog.setLayout(R.layout.custom_dialog);
Answer: B
Explanation:
QUESTION NO: 87
The logo displayed at Android system boot, initlogo.rle, is converted using rgb2565. Which is the
original format before conversion?
A. jpg
B. raw
C. tiff
D. gif
Answer: B
Explanation:
QUESTION NO: 88
Answer: C
Explanation:
QUESTION NO: 89
Which is the correct description of playing a movie using the VideoView class?
Answer: A
Explanation:
QUESTION NO: 90
Which of these is the correct explanation of debugging using the Android Debug Bridge (adb) with
a mobile device? (Assume that the development environment is a Windows machine)
Answer: B
Explanation:
QUESTION NO: 91
Answer: C
Explanation:
QUESTION NO: 92
Answer: A
Explanation:
QUESTION NO: 93
Answer: C
QUESTION NO: 94
A. Android provides standard authentication mechanisms, such as user authentication and device
authentication.
B. Since Android does not provide encryption functions as standard, it is necessary to separately
embed a library.
C. An Android application cannot refer to information persisted by another application.
D. To use some functions such as networking and hardware, configuration at the time of
development as well as user usage approval is necessary.
Answer: D
Explanation:
QUESTION NO: 95
Answer: C
Explanation:
QUESTION NO: 96
A. Started
B. Initialized
C. Idle
D. Preparing
Answer: B
Explanation:
QUESTION NO: 97
This class extends the View class and overrides the onDraw method. Which of the following will be
displayed when executing the source code? (Assume the screen size is 480x320.)
A. Exhibit A
B. Exhibit B
Answer: C
Explanation:
QUESTION NO: 98
The following menu_option.xml defines the layout of the menu which is displayed by pushing the
device's Menu button. Which of the following menu component descriptions should be put into (1)?
Answer: D
Explanation:
QUESTION NO: 99
Which operation is required when debugging on a handset through the network using the Android
Debug Bridge(adb)?
Answer: C
Explanation:
Answer: C
Explanation:
Answer: D
Explanation:
Which of these is the correct structure for exposing data owned by an application to another
application?
A. ContentProducer
B. Android Interface Definition Language
C. ContentProvider
D. ContentObservable
Answer: C
Explanation:
A. It is a tool used from the command line and does not have a GUI.
B. It converts class files into a Dalvik executable format (dex file).
C. The file types used for conversion are only class, jar, and zlib.
D. When using Eclipse, it is not necessary to call it explicitly.
Answer: C
Explanation:
A. It supports views.
B. It supports triggers.
C. It supports transactions.
D. It has support for server installation.
Answer: D
Explanation:
Which is the permission necessary for implementation of HTTP and Socket communication?
A. INTERNET
B. ACCESS_NETWORK_STATE
C. CHANGE_NE7WORK_STATE
D. BLUETOOTH
Answer: A
Explanation:
Which of these is the correct code to create a Bitmap object using the file
res/drawable/image.png?
Answer: B
Explanation:
Which is the file system of the disk image created by mksdcard command?
A. NTFS
B. FAT32
C. ext3
D. AndroidFS
Answer: B
Explanation:
Answer: D
Explanation:
Answer: B
Explanation:
Answer: B
Explanation:
Answer: D
Explanation:
Which of these is the data type not supported by SOLite database which can be used by Android?
A. INTEGER
B. REAL
Answer: D
Explanation:
A. The Notification can display an icon in the Status Bar along with flashing a light.
B. The Notification can display an icon in the Status Bar along with a vibration.
C. The Notification can display an icon in the Status Bar along with a melody.
D. The Notification can display an icon in the Status Bar along with a video.
Answer: D
Explanation:
Answer: C
Explanation:
Answer: B
Explanation:
Answer: A
Explanation:
The following JNIProb.java has been compiled, and the javah command has been run to create
the header file JNIProb.h. Which is the correct code that goes into (1) of the C/C++ source file
JNIProb.c created in this way?
Answer: B
Explanation:
Which is the tool provided by Android Development Tools Plugin to create and edit screens with
Eclipse?
A. Resource Editor
B. Layout Editor
C. Menu Editor
D. View Editor
Answer: B
Explanation:
Answer: D
Explanation:
Which of these is the correct explanation of the Android Asset Packaging Tool (AAPT)?
Answer: D
Explanation:
Which of these is the correct procedure to create and use an SQLite database?
Answer: B
Explanation:
When executing the following code and selecting the "tab2" tab then the "tab1", which is the
correct method in the List1 class which will be called first? (Assume that the application operates
normally no memory erasure occurs.)
Answer: B
Explanation:
Which is the android.util package class necessary to output strings to the LogCat window in
Eclipse?
A. DebugUtils
B. DisplayMetrics
C. EventLog
D. Log
Answer: D
Explanation:
A. The libraries included in the Android platform all share the same license.
B. Android uses Linux, which is licensed under the GPL.
C. Apache License 2.0 applies to most parts of the Android platform, excluding Linux.
D. Applications developed for Android can be licensed under the GPL.
Answer: A
Explanation:
Which of these is the correct explanation of the Android Debug Bridge (adb)?
A. The adb client will not operate normally at startup if the adb server is not running.
Answer: C
Explanation:
Which of these is the correct file which declares the created ContentProvider class?
A. Project file
B. Manifest file
C. Resource file
D. Source file
Answer: B
Explanation:
Which class in the wifi package holds Wi-Fi network configurations, including the security
configuration?
A. ScanResult
B. Wifi Configuration
C. Wifilnfo
D. WifiManager
Answer: B
Explanation:
Which is the command that cannot be executed from the Android emulator network speed
emulation function?
Answer: D
Explanation:
Android destroys processes in sequence from less important processes when memory is
insufficient. Which has the processes lined up in order of decreasing importance?
A. Foreground>Visible>Service>Background>Empty
B. Foreground>Service>Visible>Background>Empty
C. Service>Foreground>Visible>Background>Empty
D. Service>Foreground>Visible>Empty>Background
Answer: A
Explanation:
Which of these is the incorrect explanation of the Android SDK's Hierarchy Viewer?
Answer: B
Explanation:
Which is the correct response shown when the following source code is executed and Button is
pressed? (Assume the source code environment and configuration are correct.)
Answer: D
Explanation:
Which of these is the correct explanation of type and order of event issued after long-pressing the
Button widget and letting go? (Assume no event consumption by an event listener)
Answer: D
Explanation:
Of these Service-defined events, which has a possibility of being called multiple times?
A. onCreate
B. onStartCommand
C. onBind
D. onDestroy
Answer: B
Explanation:
Answer: D
Explanation:
Which of these is the correct function of the Ul/Application Exerciser Monkey (Monkey tool)?
Answer: C
Explanation:
The following manifest file is used to conduct Android unit tests. Which is the correct description
that goes into (1)?
A. android test
B. android.test.runner
C. android.framework-tests
D. android.framework
Answer: B
Explanation:
A. FINISHED
B. PENDING
C. RUNNING
D. WAITING
Which class discovers other Bluetooth devices and communicates to a linked device?
A. BluetoothAdapter
B. BluetoothDevice
C. BluetoothSocket
D. BluetoothClass
Answer: B
Explanation:
Which of these is the correct class used when changing from the current Activity to a different
Activity?
A. Service
B. Activity
C. ContentProvider
D. Intent
Answer: C
Explanation: