Sie sind auf Seite 1von 11

TAMBAHAN

ORI : 327206351-Android-Multiple-Choice-Questions.pdf
1. What file is responsible for glueing everthing together , explaining what the applicatin consists of,
what its main building blocks are, ext…?
A. Layout file
B. Strings XML
C. R file
D. Manifest file
Ans: D

2. 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

3. 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

4. What runs in the background and doesn’t have any UI components?


A. Intents
B. Content Providers
C. Services
D. Applications
Ans: C
ORI : ORI: gratisexam.com-Android.Testinside.OA0-002.v2014-06-03.by.MARILYN.70q.pdf
5. 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.
C. The package name must be the same and the .apk must be signed with the same private key.
D. The package name does not have to be the same, but the .apk must be signed with the same
private key.
Correct Answer: C
ORI : 327206351-Android-Multiple-Choice-Questions.pdf
6. When an activity doesn’t exist in memory it is in.
A. Starting state
B. Running state
C. Loading state
D. Inexistent state.
Ans: A

7. Which of the following is NOT a state in the lifecycle of a service?


A. Starting
B. Running
C. Destroyed
D. Paused
Ans: D
ORI: https://vceguide.com/which-cloud-based-system-can-be-utilized-by-android-owners-to-backup-user-
data/
8. Which cloud based system can be utilized by Android owners to backup user data?
A. Amazon Web Services (AWS)
B. Samsung Kies
C. Android Device Manager
D. Google
Ans. D

ORI : 327206351-Android-Multiple-Choice-Questions.pdf
9. What builtin database is Android shipped with?
A. SQLite
B. Apache
C. MySQL
D. Oracle
Ans: A

10. Creating a UI (User Interface) in Android requires careful use of…


A. Java and SQL
B. XML and Java
C. XML and C++
D. Dreamweaver
Ans: B

11. The android OS comes with many useful system services, which
include processes you can easily ask for things such as your..
A. All of these and more.
B. Location
C. Sensor Readings
D. WiFi? Hot Spots
Ans: A

ORI: gratisexam.com-Android.Testking.AND-401.v2013-07-25.by.George.31q (1).pdf


12. Which of these is the correct explanation regarding the following methods?
(1)android.content.Context.sendBroadcast
(2)android.content.Context.startActivity
A. Both methods are defined by overloading.
B. Both methods throw an exception.
C. Both methods are asynchronous.
D. Both methods are able to broadcast an Intent.
Correct Answer: D

13. Which of the following is the correct way to add an access permission to your application?
A. Add a <uses-permission> tag as a child tag of the <manifest> tag in AndroidManifest.xml.
B. Add a <add-permission> tag as a child tag of the <manifest> tag in AndroidManifest.xml.
C. Add a <uses-permission> tag as a child tag of the <application> tag in AndroidManifest.xml.
D. add a <permission> tag as a child tag of the <application> tag in AndroidManifest.xml.
Correct Answer: C

14. Which of the following statements is correct about SQLite?


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.
Correct Answer: D

15. What Activity method you use to retrieve a reference to an Android view by using the id attribute of a
resource XML?
A. findViewByReference(int id);
B. findViewById(int id)
C. retrieveResourceById(int id)
D. findViewById(String id)
Correct Answer: B

16. Which of these is the correct explanation of BroadcastReceiver?


A. The process which BroadcastReceiver makes active will be protected so that it cannot be
forcequit.
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
Correct Answer: A

ORI: gratisexam.com-Android.Testinside.OA0-002.v2014-06-03.by.MARILYN.70q.pdf
17. When creating the following Android project, which is the correct combination of (1)~(3)to add to the
AndroidManifest.xml?
A. Option a

A. Option b
B. Option c

E. Option d

C.
Correct Answer: C

18. Which ContentProvider does Android not provide as a standard?


A. A telephone log
B. A database
C. A bookmark
D. A contact list
Correct Answer: B

19. Which of these is the incorrect explanation of SQLite?


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.
C. It has transaction administration function and it is designed so that the storage is locked after
A. commencing transaction.
D. SQLite is a database that saves data in a single file.
Correct Answer: B

20. The following code is a part of a program which sends a status bar notification. Which is the correct
code toput into (1) so that it will automatically cancel the notification after it occurs?

A. notification.flags |= Notification.FLAG_INSISTENT;
B. notification.flags |= Notification.FLAG_AUTO_CANCEL;
C. notification.setFlags(Notification.FLAG_AUTO_CANCEL);
D. notification.setFlags(Notification. FLAGJNSISTENT);
Correct Answer: B

21. Which is the processing that cannot be executed by using the emulator during development?
A. Displaying information of the heap and threads.
B. Emulation of outgoing calls
C. Ending a process
D. Receiving E-mail
Correct Answer: D

SOAL LAMA
22. What method you should override to use Android’s menu which is placed on the action bar?
A. onCreateOptionsMenu()
B. onCreateMenu()
C. onMenuCreated()
D. onMenuCreated()

23. What Activity method you use to retrieve a reference to an Android view by using the id
attribute of a resource XML?
A. findViewByReference(int id)
B. findViewById(int id)
C. retrieveResourceById(int id)
D. findViewById(String id)

24. Which of the following is not an Android component (i.e. a point from which the system can
enter your application)?
A. Service
B. Activity
C. Layout
D. Content Provider

25. During an Activity life-cycle, what is the first callback method invoked by the system?
A. onStop()
B. onStart()
C. onCreate()
D. onRestore()

26. Which configuration file holds the permission to use the internet?
A. Layout file
B. Property file
C. Java source file
D. Manifest file

27. What does the following line of code achieve?


Intent intent = new Intent(FirstActivity.this,
SecondActivity.class );
A. Creates a hidden Intent.
B. Creates an implicit Intent.
C. Create an explicit Intent.
D. Starts an activity.

28. Which of the following is not a valid Android resource file name?
A. mylayout.xml
B. myLayout.xml
C. my_layout.xml
D. mylayout1.xml

29. What is the role of the R.java file in an Android application project?
A. It contains all resource IDs allowing the developer to reference them from the code using
integers.
B. It contains instructions to build the Android application project.
C. It contains information about content providers of the Android application.
D. It contains the target SDK version number.

30. What is a correct statement about an XML layout file?


A. A layout PNG image file.
B. A file used to draw the content of an Activity.
C. A file that contains all application permission information.
D. A file that contains a single activity widget.

31. Which folder contains the Android project Java files?


A. res
B. manifests
C. assets
D. java

32. What is the parent class of all Activity widgets?


A. ViewGroup
B. Layout
C. View
D. Widget

33. Which of the following is NOT true about the R.java file?
A. It is auto-generated during the build of the project.
B. It is used by developers to access any resource through an ID.
C. It can be modified manually to change the ID of a resource.
D. It contains resource IDs for all resources in your /res/ folder.

34. What does the Android project folder “res/” contain?


A. Java Activity classes
B. Resource files
C. Java source code
D. Libraries

35. Which method should you use to start a sub-activity?


A. startActivity(Intent intent)
B. startActivityForResult(Intent intent)
C. startService(Intent intent)
D. startSubActivity(Intent intent)

36. What is the difference between Android API and Google API?
A. The google API includes Google Maps and other Google-specificlibraries. The Android
one only includes core android libraries.
B. The google API one only includes core android libraries.
C. The Android includes Google Maps and other Google-specific libraries.
D. None of the above.

37. Which of the following methods is called in an Activity when another activity gets into the
foreground?
A. onStop()
B. onPause()
C. onDestroy()
D. onExit()

38. Which of the following attributes is used to set an activity screen to landscape orientation?
A. screenorientation = landscape
B. screenOrientation=”landscape”
C. android:ScreenOrientation=“landscape”
D. android:screenOrientation=”landscape”

39. Which of the following lines of code is used to pass a value to the next activity?
A. Intent i = new Intent(this,newActivity);
i.addExtra(“test”);
startActivity(i);
B. Intent i = new Intent(this,newActivity);
i.putValue(“test”);
startActivity(i);
C. Intent i = new Intent(this,newActivity);
i.putValue(“value1”,“test”);
startActivity(i);
D. Intent i = new Intent(this,newActivity);
i.putExtra(“value1”,“test”);
startActivity(i);
40. Which of the following is NOT true about class AsyncTask?
A. It must be used by sub-classing it.
B. It must be created on the UI thread.
C. Its sub-class override at least two methods: doInBackground,
onPostExecute.
D. It uses three generic types.

41. Which UI does the following code builds?


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Name:"/>
<EditText
android:id="@+id/editText1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1" android:ems="10" />
</LinearLayout>
<Button android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Post" />
</LinearLayout>
A. An edit text to the left of a text view and a button beneath it
B. An edit text to the right of a text view and a button to the right of the
text view
C. An edit text to the right of a text view and a button beneath them
D. A text view, an edit text beneath it and the button beneath the edit text

42. Which Android permission you should add to allow your application to read the device’s
address book?
A. READ_ADDRESS_DATA
B. READ_PHONE_STATE
C. READ_PHONE_CONTACTS
D. READ_CONTACTS

43. What does the src folder contain?


A. Image and icon files
B. XML resource files
C. The application manifest file
D. Java source code files
44. Which of the following is a Java call-back method invoked when a view is clicked?
A. Detector
B. OnTapListener
C. OnClickDetector
D. OnClickListener

45. Which of the following is a correct Android Manifest statement?


A. <uses-permission android:name =”android.Internet”/>
B. <uses-permission android:name =”android.Internet”></usespermission>
C. <uses-permission android:name
=”android.permission.Internet”>
D. <uses-permission android:name
=”android.permission.INTERNET”/>

46. In which Activity life-cycle method you should do all of your normal static set up such as:
creating views and bind data to lists?
A. onResume()
B. onStart()
C. onCreate()
D. onPause()

47. When including a text file in your application to read from as a resource, what is the
recommended location of such file?
A. res/anim
B. res/files
C. res/raw
D. res/values

48. Which of these is the incorrect method for an Application to save local data?
A. Extend PreferencesActivity and save in an XML file.
B. Save as a file in the local file system.
C. Save in the database using SQLite.
D. Save in the hash table file using the Dictionary class.

49. Which of the following are layout-related methods called by the framework on views, and you
can override them when customizing a view? (Choose two)
A. onMeasure().
B. onDraw().
C. onKeyUp().
D. onSizeChanged().

50. Which one of the following is the primary use of Google Play Licensing Service?
A. To verify that the user did actually pay for the application.
B. To check the number of time user has paid for the application
C. To let the free application start downloading APK expansion files if
your application needs them.
D. To let the paid application start downloading APK expansion files if
your application needs them.

Das könnte Ihnen auch gefallen