PRM192 - Quiz 1

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Which of the following should be used to save the unsaved data and release resources being used by an Android application? Select one: a. Activity.onDestroy() b. Activity.onFreeze() c. Activity.onPause() d. Activity.onStop()

a. Activity.onDestroy()

What does the .apk extension stand for? Select one: a. Android Package b. Application Program Kit c. Android Proprietary Kit d. Application Package

a. Android Package

What items are important in every Android project? (3 selected) Select one or more: a. AndroidManifest.xml b. res/ c. gradle/ d. src/ e. libs/

a. AndroidManifest.xml b. res/ d. src/

What is a key difference with the distribution of apps for Android based devices than other mobile device platform applications? Select one: a. Applications are distributed by multiple vendors with different policies on applications b. Applications are distributed by multiple vendors with the exact same policies on applications c. Applications are distributed by Apple App Store only d. Applications are distributed by the Android Market only

a. Applications are distributed by multiple vendors with different policies on applications

Can you deploy executable JARs on Android? Select one: a. False b. True

a. False

Is it possible to run java source code directly on Android? Select one: a. False b. True

a. False

The R.java file is where you edit the resources for your project Select one: a. False b. True

a. False

Intents do not name a target and the field for the component name is left blank Select one: a. Implicit Intents b. Explicit Intents c. Open Intents d. Close Intents

a. Implicit Intents

Where will you declare your activity so the system can access it? Select one: a. In the manifest xml file b. In the layout xml file c. In the string xml file d. In the style xml file

a. In the manifest xml file

What is AAPT tool? Select one: a. This tool provides developers with the ability to deal with zip-compatible archives which includes creating, extracting as well as viewing its contents b. This tool provides developers to manipulate with sqlite database c. This tool provides developers to view all resources of mobile d. This tool provides developers to create and run an emulator

a. This tool provides developers with the ability to deal with zip-compatible archives which includes creating, extracting as well as viewing its contents

Activities can be closed or terminated anytime the user wishes. on the other hand, services are designed to run behind the scenes, and and act independently. Select one: a. True b. False

a. True

Android doesn't make any assumptions about a device's screen size resolution, or chipset Select one: a. True b. False

a. True

How will you pass data to sub-activities? Select one: a. Use Bundles b. Use Packages c. Use Blocks d. Use Messages

a. Use Bundles

How do you programmatically determine whether a RadioButton is checked? Select one: a. You should check the isChecked() method b. You should check the isSelected() method c. You should check the isTicked() method d. You should check the isFilled() method

a. You should check the isChecked() method

Which of the following is NOT a life-cycle methods of an Activity? Select one: a. onInit b. onCreate c. onRestart d. onResume

a. onInit

Android is based on which language? Select one: a. Java b. C c. Objective C d. C++

b. C

Intents designate the target component by its name and they are typically used for application-internal messages. Select one: a. Close Intents b. Explicit Intents c. Open Intents d. Implicit Intents

b. Explicit Intents

Which of the following is layout that you can use in a window in an Android application? Select one: a. BorderLayout b. FrameLayout c. FlowLayout d. CardLayout

b. FrameLayout

Does Android support AWT and Swing? Select one: a. Yes b. No

b. No

Which of the following used to detect when a user clicks or taps on a button? Select one: a. OnClickDetector b. OnClickListener c. OnPressListener d. OnClickButton

b. OnClickListener

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? Select one: a. Dalvik b. Open Handset Alliance c. The above statement is incorrect and Android is owned by Google d. Oracle Technology

b. Open Handset Alliance

Activity results handled by the onActivityResult() method are differentiated from one another using which parameter? Select one: a. Data b. Result Code c. Both result code and request code d. Request Code

b. Result Code

Android archtecture is made up of 4 key components: Linux kernel Libraries, Android Frameworks and ______________ Select one: a. Android Applications b. Services c. Android Tools d. Camera e. Activity

b. Services

Which of the following are UI elements that you can not use in a window in an Android application? Select one: a. SeekBar b. SliderBar c. Button d. RadioButton

b. SliderBar

Which of the following are UI elements that you can use in a window in an Android application? Select one: a. TextElement b. TextView c. TextField d. TextBox

b. TextView

What is the android:versionCode attribute in the AndroidManifest.xml file? Select one: a. The android:versionCode attribute is used mainly for displaying to the user b. The android:versionCode attribute is used to programmatically check if an application can be upgrade c. The android:versionCode attribute is a version name of application d. The android:versionCode attribute is a name of the cake

b. The android:versionCode attribute is used to programmatically check if an application can be upgrade

On android, a layout can contain other layout? Select one: a. False b. True

b. True

How to set data for a Spinner control? Select one: a. Define in XML file b. Use method setAdapter() c. Use function addView() d. Use method setData()

b. Use method setAdapter()

Which of the following is the parent class for the main application class in an Android application that has a user interface? Select one: a. AppLet b. Application c. Activity d. AndroidApp

c. Activity

Which of the following is/are appropriate for saving the state of an Android application? Select one: a. Activity.onDestroy() b. Activity.onFreeze() c. Activity.onPause() d. Activity.onStop()

c. Activity.onPause()

The Intent object is passed to this method to deliver the message to all interested broadcast receivers Select one: a. Context.beginBroadcast() b. Context.startBroadcast() c. Context.sendBroadcast() d. Context.openBroadcast()

c. Context.sendBroadcast()

Where will you declare your activity so the system can access it? Select one: a. In the style xml file b. In the layout xml file c. In the manifest xml file d. In the string xml file

c. In the manifest xml file

What is adb? Select one: a. It allows developers the power to connect to internet b. It allows developers the power to access to sqlite database c. It allows developers the power to execute remote shell commands. d. It allows developers the power to call camera of mobile phone e. It allows developers the power to start a service

c. It allows developers the power to execute remote shell commands.

For writing Android code using C/C++, you need to use__________ Select one: a. JDK b. MDK c. NDK d. SDK

c. NDK

What is contained within the Layout xml file? Select one: a. The permissions required by the application b. The code which is compiled to run the application c. Orientations and layouts that specify what the display looks like d. The strings used in the application

c. Orientations and layouts that specify what the display looks like

What is ANR? Select one: a. This is basic function is to allow and control communication towards and from the emulator port b. This is actually a dialog that appears to the user whenever an application have been unresponsive for a long period of time c. This is actually a dialog that appears to the user whenever an application have been unresponsive for a short period of time d. This is short for Android Network Resources.

c. This is actually a dialog that appears to the user whenever an application have been unresponsive for a short period of time

The intents can communicate messages among any of the three core components of an application: Select one: a. activities, broadcast receivers, content providers b. services, broadcast receivers, content providers c. activities, services, broadcast receivers d. activities, services, content providers

c. activities, services, broadcast receivers

How will you launch an Activity within your application? Select one: a. launchActivity(intent); b. beginActivity(intent); c. startActivity(intent); d. runActivity(intent);

c. startActivity(intent);

Android: What is value on component's attribute "layout_width" and "layout_height" to display the component big enough to enclose its content only? Select one: a. match_parent b. full_content c. wrap_content d. fill_parent

c. wrap_content

What is an Activity? Select one: a. A multiple screen in an application, with supporting Java code b. A single screen in an application, with supporting C++ code c. A multiple screen in an application, with supporting C++ code d. A single screen in an application, with supporting Java code

d. A single screen in an application, with supporting Java code

Which dialog box can you use in you Android application? Select one: a. ConfirmDialog b. WarningDialog c. PromptDialog d. AlertDialog

d. AlertDialog

Android is based on Linux for the following reason Select one: a. Security b. Portability c. Networking d. All of these

d. All of these

What is an intent object? Select one: a. An Intent object is an activity b. An Intent object is a service c. An Intent object is a broadcast d. An Intent object is a bundle of information

d. An Intent object is a bundle of information

In auto-generated code of an Android app, what is R class? Select one: a. Contains code for authentication and authorization the app b. Contains graphical user interface of the project c. It is the main controller of the app d. Contains IDs of the project resources

d. Contains IDs of the project resources

What is contained within the Layout xml file? Select one: a. The code which is compiled to run the app b. The permissions required by the app c. The strings used in the app d. Orientations and layouts that specify what the display looks like

d. Orientations and layouts that specify what the display looks like

What is contained within the manifest xml file? Select one: a. The list of images used in the application b. The source code c. The list of strings used in the application d. The permissions the application requires

d. The permissions the application requires

What was Google's main business motivation for supporting Android? Select one: a. To directly compete with the iPhone b. To corner the mobile device application market for licensing purposes c. To level the playing field for mobile devices d. To allow them to advertise more

d. To allow them to advertise more

Which of the following are true about Intent.CALL_ACTION? Select one: a. Intent.action == Intent.CALL_ACTION is true when a phone call is received on the device b. Used when a phone number is to be dialled without showing a UI on the device c. Used when a phone number is to be dialled without the user having to explicitly initiate the call. d. Used to dial a phone number on the device

d. Used to dial a phone number on the device

When is the onStop() method invoked? Select one: a. When an activity process is killed or completed terminated b. When an activity is at foreground c. When an activity is at the background and still visible d. When an activity is no longer visible to the user

d. When an activity is no longer visible to the user

What are the different states wherein a process is based? Select one: a. foreground visible, background activity and empty process b. active, pause, close and destroy c. foreground, background, stop and destroy d. active, pause, stop and destroy

d. active, pause, stop and destroy

What part of the Android platform is open source? Select one: a. low-level Linux modules b. application frame work c. native libraries d. all of them

d. all of them

Android: Which attribute will be used in XML if the Java code needs a reference to View? Select one: a. android: index b. android: gravity c. android: text d. android:id

d. android:id


Ensembles d'études connexes

Anatomy Matching Quiz (Figure 7-4)

View Set

PL-300: Microsoft Power BI Data Analyst part 3

View Set

Chapter 58: Assessment and Management of Patients with Eye and Vision Disorders PREP U

View Set

CH 23 Endocrine control of growth and metabolism

View Set