Intro to Mobile App Midterm 2 Review

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Which of the following statements is false? a. App-Activity is an indirect subclass of Activity that supports using newer Android features apps running on current and older Android platforms. b. You implement interface TextWatcher of package android.text to respond to events when the user changes the text in an EditText. c. You implement interface SeekBar.OnSeekBarChangeListener of package android.widget to respond to the user moving the SeekBar's thumb. d. Class NumberFormat of package java.text provides numeric formatting capabilities, such as locale-specific currency and percentage formats.

a. AppActivity is an indirect subclass of Activity that supports using newer Android features apps running on current and older Android platforms. Actually, AppCompat-Activity is an indirect subclass of Activity that supports using newer Android features apps running on current and older Android platforms.

Which of the following statements is false? a. If you need to customize theme colors, Google's material design guidelines for color recommend that you choose a color palette consisting of a primary color—with no more than five hues (shades)—and an accent color. b. The primary colors typically are used to color the status bar and the app bar at the top of the screen and also can be used in your GUI. c. The accent color is used to tint various views in your GUI, such as SeekBars, CheckBoxes and RadioButtons. d. Once you choose a palette, you can use Android Studio's Theme Editor to modify a theme's colors.

a. If you need to customize theme colors, Google's material design guidelines for color recommend that you choose a color palette consisting of a primary color—with no more than five hues (shades)—and an accent color. Actually, if you need to customize theme colors, Google's material design guidelines for color recommend that you choose a color palette consisting of a primary color—with no more than three hues (shades)—and an accent color.

You'll use an anonymous inner class to implement the ______ interface (from package android.widget) to respond to the user moving the SeekBar's thumb. a.SeekBar.OnSeekBarChangeListener b. SeekBar.ChangeListener c. SeekBar.OnChangeListener d. None of the above.

a. SeekBar.OnSeekBarChangeListener

Which of following statements is false? a. You create the AndroidManifest.xml file when you create a new app project. b. Settings you specify in the Create New Project dialog include the app's name, package name, Activity name(s) and more. c. You can edit the AndroidManifest.xml file's XML to add a new setting that forces the soft keyboard to be displayed when the app begins executing. d. You'll also specify that the app supports only portrait orientation—that is, the device's longer dimension is vertical.

a. You create the AndroidManifest.xml file when you create a new app project. Actually, the AndroidManifest.xml file is created by the IDE when you create a new app project.

Which of the following three statements is false? a. You must create the AndroidManifest.xml file when you create an app. b. All activities in an Android app must be listed in the app's manifest file. c. When you add an activity to a project, the IDE will also add it to the manifest file. d. All of the above statements are false.

a. You must create the AndroidManifest.xml file when you create an app. Actually, the AndroidManifest.xml file is created for you when you create an app.

The ________ attribute specifies how long the animation lasts in milliseconds. a. android:duration b. android:length c. android:playbackTime d. android:time

a. android:duration

Which of the following is false regarding the manifest's activity element? a. android:name is the app's name. b. android:label is the Activity's name. c. android:screenOrientation specifies the Activity's orientation. d. android:windowSoftInputMode can be used to specify that the soft keypad should be displayed immediately when the app executes and should reappear each time the user returns to the app.

a. android:name is the app's name. Actually, android:name is the Activity's class name

Resource folder names that begin with ________ contain XML files that define property animations, which change the value of an object's property over time. a. animator b. anim c. animation d. None of the above.

a. animator

Android apps have four types of executable components—activities, services, content providers and ______. a. broadcast receivers b. broadcast transmitters c. broadcasters d. receivers

a. broadcast receivers

You could define a ________ for a Button's background color that specifies different colors for the Button's pressed, unpressed, enabled and disabled states. a. color state list b. color list c. color group d. color state group

a. color state list

If multiple activities can handle the action and data passed to startActivity, the system will ________. a. display a dialog in which the user can select the activity to use b. choose the first matching Activity c. select a random Activity d. None of the above

a. display a dialog in which the user can select the activity to use

Android uses a technique known as ________ to communicate information between activities within one app or activities in separate apps. a. intent messaging b. intent dispatching c. intent broadcasting d. None of the above

a. intent messaging

Setting the layout:height property to 0dp will let a View's height be determined by the ________ property. a. layout:weight b. layout:width c. layout:automatic d. None of the above

a. layout:weight

Method _______ is called whenever the SeekBar's thumb position changes. a. onProgressChanged b. onSeekBarChanged c. onThumbPositionChanged d. onValueChanged

a. onProgressChanged

By default, a SeekBar's range is 0 to 100 and its current value is indicated by its ______ property. a. progress b. value c. thumb d. None of the above.

a. progress

You can provide String resources for different languages and regions. Android uses resource folders with ________ to choose the appropriate images, based on a device's pixel density, and the correct language strings, based on a device's locale and region settings. a. qualified names b. disqualified names c. unqualified names d. None of the above.

a. qualified names

Google now introduces many new Android features via the Android Support Library—a set of libraries that enable you to ______. a. use newer Android features in apps targeting current and past Android platforms b. use new Android features only in the current Android platform version c. use old Android features in new Android platforms d. None of the above.

a. use newer Android features in apps targeting current and past Android platforms

According to the Android design guidelines, ________ dp is the recommended space between the edges of a device's touchable screen area and the app's content; however, many apps (such as games) use the full screen. a. 1.6 b. 16 c. 160 d. 16.6

b. 16

Which of the following statements is false? a. A PreferenceFragment uses Preference objects to manage app settings and stores those settings in a file via a SharedPreferences object. b. A ListPreference creates checkboxes in which only one can be selected. c. A MultiSelectListPreference creates a GUI containing checkboxes, any number of which can be selected. d. To modify a SharedPreferences file's contents, you'll use a SharedPreferences.Editor object.

b. A ListPreference creates checkboxes in which only one can be selected. Actually, a ListPreference creates mutually exclusive radio buttons in which only one can be selected.

Which of the following statements is false? a. The style.xml resource file contains a style with the name "AppTheme" that's referenced from the app's AndroidManifest.xml file to specify the app's theme. b. A parent theme is similar to a subclass in Java—the new style inherits its parent theme's attributes and their default values. c. Just as in a Java subclass, a style can override parent theme attributes with values customized for specific apps. d. By default, Android Studio sets the parent theme to Theme.AppCompat.Light.DarkActionBarone of several predefined themes from the AppCompat library—apps that use this theme have a light background, except for the dark app bar at the top of the app.

b. A parent theme is similar to a subclass in Java—the new style inherits its parent theme's attributes and their default values. Actually, a parent theme is similar to a superclass in Java—the new style inherits its parent theme's attributes and their default values.

Method onCreate typically initializes the Activity's instance variables and views. This method should be as simple as possible so that the app loads quickly. If the app takes longer than five seconds to load, the operating system will display a(n) ______ dialog, giving the user the option to forcibly terminate the app. a. PNR (Program Not Responding) b. ANR (Application Not Responding) c. ANR (Android Not Responding) d. None of the above.

b. ANR (Application Not Responding)

Android Studio's app templates have been updated to use the ______ library, enabling the new apps you create to run on almost all Android devices, including ones with older Android versions. a. Compatibility b. AppCompat c. SupportLibrary d. None of the above.

b. AppCompat

n object of class ________ contains public instance variable orientation containing either ORIENTATION_PORTRAIT or ORIENTATION_LANDSCAPE for the device's current orientation. a. Settings b. Configuration c. Orientation d. None of the above

b. Configuration

A(n) ________ is a subclass of Text-View that can display text and accept text input from the user. a. TextBox b. EditText c. TextField d. EditInput

b. EditText

A FragmentManager can use ________ to dynamically add, remove and transition between Fragments. a. Transactions b. FragmentTransactions c. FragmentTransitions d. Transitions

b. FragmentTransactions

Which of the following three statements is false? a. The Blank Activity template is a backward-compatible app template (for Android 2.1 and higher) that uses features of the Android Design Support Library. b. The Blank Activity template must be used with a Fragment. c. When you choose to use the Fragment option, the IDE creates layouts named activity_main.xml, content_main.xml and fragment_main.xml. d. Each of the above statements are false.

b. The Blank Activity template must be used with a Fragment. Actually, the Blank Activity template can be used with or without a Fragment.

Which of the next three statements is false? a. By default, there are no margins—spacing that separates views—around a GridLayout's cells. b. The material design guidelines recommend 18dp minimum spacing between views. c. GridLayout can enforce the recommended spacing between views. With the GridLayout selected in the Component Tree, in the Properties window, check the GridLayout's useDefaultMargins property (which sets it to true) to use the recommended margins around the layout's cells. d. All of the above statements are true.

b. The material design guidelines recommend 18dp minimum spacing between views. Actually, the material design guidelines recommend 8dp minimum spacing between views.

Select File > New > Vector Asset to display the ________—this tool enables you to add to your project any of Google's recommended material design icons. Each icon is defined as a scalable vector graphic that smoothly scales to any size. a. Vector Image Studio b. Vector Asset Studio c. Asset Studio d. Image Studio

b. Vector Asset Studio

A(n) ________ is a collection of animations that make up a larger animation. a. animation list b. animation set c. animation map d. None of the above

b. animation set

The manifest element's nested ______ element specifies attributes of the application. a. activity b. application c. app d. None of the above.

b. application

Which of the following statements about class R's nested classes is false? a. class R.drawable contains constants for any drawable items, such as images, that you put in the various drawable folders in your app's res folder. b. class R.id contains constants for the views in your HTML layout files. c. class R.layout contains constants that represent each layout file in your project (such as, activity_main.xml). d. class R.string contains constants for each String in the strings.xml file.

b. class R.id contains constants for the views in your HTML layout files. Actually, class R.id contains constants for the views in your XML layout files.

It's considered a best practice in Android to ensure that every GUI component can be used with TalkBack. For components that don't have descriptive text, such as Image-Views, set the component's ________ property. a. description b. contentDescription c. talkback d. talkbackDescription

b. contentDescription

When you set a view's ______ property, Android automatically casts a shadow for that view. a. shadow b. elevation c. altitude d. levitation

b. elevation

The call to setContentView receives the R.layout constant indicating the XML file that represents a GUI—e.g., R.layout.activit_main represents the activity_main.xml file. Method setContentView uses this constant to load the corresponding XML document, which Android parses and converts into the app's GUI. This process is known as ______ the GUI. a. creating b. inflating c. fabricating d. building

b. inflating

In Java, a property is typically implemented in a class as a(n) ________. a. static method b. instance variable with both set and get accessors c. non-static method d. enumeration

b. instance variable with both set and get accessors

You override Activity method ________ and use the method's Menu argument to add the menu items—either programmatically or by inflating an XML document that describes the menu items. a. on-Create-Menu b. on-Create-OptionsMenu c. on-OptionsMenuOpened d. on-MenuOpened

b. on-Create-OptionsMenu

Throughout its life, an Activity can be in one of several states—active (i.e., running), ______, or stopped. a. halted b. paused c. ceased d. discontinued

b. paused

You can use Collections method ________ to randomize the order of the elements in an ArrayList<String>. a. reorder b. shuffle c. srand d. randomize

b. shuffle

Each app has a theme that defines the default look-and-feel of the standard views you use. The theme is specified in the app's AndroidManifest.xml file. You can customize aspects of an app's theme, such those that define an app's color scheme, by defining style resources in the ______ file located in the app's res/values folder. a. themes.xml b. styles.xml c. colors.xml d. None of the above.

b. styles.xml

It's often easiest to select a particular GUI component in ________. ' a. the design area b. the Component Tree window c. XML d. None of the above

b. the Component Tree window

In what thread does a Handler's Runnable execute? a. the GUI thread b. the thread that created the Handler c. a new thread that the Handler creates d. None of the above

b. the thread that created the Handler

than declaring a resource, using it in a try block and closing it in a finally block, you can use the ________ statement to declare the resource in the try block's parentheses and use the resource in the try block. The resource is implicitly closed when ________. a. b. try-with-resources c. d.

b. try-with-resources

Resource folder names that begin with anim contain XML files that define ________, which can change an object's transparency, size, position and rotation over time. a. property b. tweened c. view d. drawable

b. tweened

By default, the Seekbar allows you to select values from 0 to 100. a. 1 to 100 b. 1 to 256 c. 0 to 100 d. 0 to 256

c. 0 to 100

Many of today's Android phones use AMOLED displays. On such displays, a black pixel is turned off and does not consume power. Apps that use mostly black themes can reduce power consumption by approximately ______. a. 10% b. 70% c. 40% d. 90%

c. 40%

When you choose the Blank Activity template's Fragment option, this file contains only a ________ element that displays the MainActivityFragment's GUI defined in fragment_main.xml. a. <fragment_main> b. <fragment> c. <main_fragment> d. None of the above

c. <fragment>

Which of the following statements is false? a. A GridLayout (package android.widget) arranges views into rows and columns, each indexed from 0 like the elements of an array. b. Each cell of a GridLayout can be empty or can hold one or more views, including layouts containing other views. c. A GridLayout row's height is determined by the row's tallest view--similarly, a column's width is defined by the column's widest view. d. A GridLayout's views can span multiple rows and/or columns.

c. A GridLayout column's height is determined by the column's tallest view; similarly, a row's width is defined by the row's widest view. Actually, a GridLayout row's height is determined by the row's tallest view—similarly, a column's width is defined by the column's widest view.

For precise monetary calculations, use class ______ (package java.math)—rather than type double—to represent the monetary amounts and perform calculations. a. MonetaryAmount b. Cash c. BigDecimal d. None of the above.

c. BigDecimal

The default layout for an Empty Activity is a ______. a. GridLayout b. LinearLayout c. RelativeLayout d. None of the above.

c. RelativeLayout

A ______ represents an integer in the range 0-100 by default and allows the user to select a number in that range by moving its thumb. a. GridLayout b. EditText c. SeekBar d. None of the above

c. SeekBar

Which of the following statements about Intents is false? a. Intents are Android's mechanism for communicating between executable components—such as activities, background services and the operating system. b. You state your intent, then Android uses intent messaging to coordinate the executable components to accomplish what you intend to do. c. This tight coupling makes it easy to mix and match parts of different applications. d. You tell Android what you want to accomplish, then let Android find the installed applications with activities that can handle the task.

c. This tight coupling makes it easy to mix and match parts of different applications. Actually, this loose coupling makes it easy to mix and match parts of different applications.

Why would you set the digits property of an EditText to 0123456789? a. To allow only characters other than the digits 0-9 to be entered. b. To allow only the string of digits 0123456789 to be entered. c. To allow only digits to be entered (in any order and combination). d. None of the above.

c. To allows only digits to be entered (in any order and combination).

________ are often used to display minor error messages or informational messages that disappear after a short period of time. a. Tweets b. Tooltips c. Toasts d. None of the above

c. Toasts

Which of the following statements is false? a. Class Bundle of package android.os stores key-value pairs of information—typically representing an app's state or data that needs to be passed between activities. b. When another app is about to appear on the screen—e.g., when the user receives a phone call or launches another app—Android gives the currently executing app the opportunity to save its state in a Bundle. The Android runtime might subsequently kill the app—e.g., to reclaim its memory. c. When the app returns to the screen, the Android runtime passes the Bundle of the previously saved state to Activity method onStart. d. We can use Bundles to pass data between activities.

c. When the app returns to the screen, the Android runtime passes the Bundle of the previously saved state to Activity method onStart. Actually, when the app returns to the screen, the Android runtime passes the Bundle of the previously saved state to Activity method onCreate.

You can force a menu item to display on the app bar, in which case it's known as a(n) ________—by default, this is displayed as the menu item's icon (if there is one). a. task b. button c. action d. None of the above

c. action

You may configure your AVD (or device) to display the _______ keyboard for better contrast in your screen captures. a. black b. shaded c. dark d. ebony

c. dark

Activities transition between their states in response to various ______. a. actions b. steps c. events d. deeds

c. events

Class Activity's ______ method takes an int constant representing a specific view's ID and returns a reference to the view. a. findId b. findView c. findViewById d. None of the above.

c. findViewById

Each Activity declared in the AndroidManifest.xml file can specify ________ indicating actions the Activity is capable of handling. a. intent extractors b. activity filters c. intent filters d. None of the above

c. intent filters

n the manifest, the activity element's nested ______ element determines which Intent types can launch an Activity-. a. intent b. filter c. intent--filter d. filter-intents

c. intent--filter

Java requires that you override every method in an ______ that you implement. a. struct b. class c. interface d. enumeration

c. interface

You must interact with a ________ dialog to dismiss it. a. error b. non-modal c. modal d. information

c. modal

When the user selects a menu item, Activity method ________ responds to the selection. a. onItemSelected b. onOptionsItemSelected c. onOptionSelected d. onMenuItemSelected

c. onOptionSelected

A SeekBar listeners's ______ method executes when the user moves the SeekBar's thumb. a. onThumbMoved b. userMovedThumb c. onProgressChanged d. None of the above

c. onProgressChanged

For apps you submit to the Google Play store, the ______ is used as the app's unique identifier. a. app name b. class name c. package name d. folder name

c. package name

If the system cannot find an activity to handle an Intent's action, then method startActivity throws an Activity-NotFound-Exception. You can prevent this exception from happening by first using Intent method ________ to determine whether there is an Activity to handle the Intent. a. findActivity b. findActivityForIntent c. resolveActivity d. resolveActivityForIntent

c. resolveActivity

You specify the number of times an animation should repeat with Animation method ________. a. setRepetitions b. repetitions c. setRepeatCount d. repeatCount

c. setRepeatCount

Each time you drop a view onto the GridLayout in the Component Tree window, the view is placed in the layout's next open cell, unless you specify otherwise by ______. a. setting the view's layout:row property b. setting the view's layout:column property c. setting both the view's layout:row and layout:column properties d. None of the above.

c. setting the view's layout:row and layout:column properties

Which of the following statements is false? a. You can use a color state list to define separate colors for when Buttons are enabled or disabled. b. Resource folder names that begin with raw contain resource files (such as audio clips) that are read into an app as streams of bytes. You use such resources to play sounds. c. Resource folder names that begin with xml contain XML files that do not fit into the other resource categories—often XML data files used by the app. d. All of the above are true.

d. All of the above are true.

Which of the following actions does not change the device's configuration? a. rotating the device b. connecting to a Bluetooth keyboard c. sliding out a hard keyboard d. All of the above change the device's configuration.

d. All of the above change the device's configuration.

Which of the following statements is true? a. The default activity_main.xml layout embeds (via an <include> element in the XML) the GUI defined in content_main.xml. b. The default activity_main.xml layout also contains a FloatingActionButton—a round image button from the Android Design Support Library that has a higher elevation than the GUI's other components, so it "floats" over the GUI. c. Each app based on the Blank Activity template includes a FloatingActionButton (which typically emphasizes an important action that the user can perform by touching the button) and other material design features. d. All of the above statements are true.

d. All of the above statements are true.

Which of the following three statements is true? a. You arrange a GUI's views in layouts. b. A GridLayout (package android-.widget) arranges views into cells in a rectangular grid. c. Cells in a GridLayout can occupy multiple rows and columns, allowing for complex layouts. d. All of the above statements are true.

d. All of the above statements are true.

Which of the next three statements is false? a. style resources can define common property values that should be applied to multiple views. b. You apply a style resource to a given view by setting its style property. c. Any subsequent changes you make to a style are automatically applied to all views using the style. d. All of the above statements are true.

d. All of the above statements are true.

Files in the assets subfolders are accessed via an ________, which can provide a list of all of the file names in a specified subfolder and can be used to access each asset. a. FolderManager b. Organizer c. AssetOrganizer d. AssetManager

d. AssetManager

Which of the following statements is false? a. An active Activity is visible on the screen and "has the focus"—that is, it's in the foreground. You can interact with the Activity currently in the foreground. b. A stopped activity is not visible on the screen—it's in the background and is likely to be killed by the system when its memory is needed. c. An Activity is stopped when another Activity enters the foreground and becomes active. For example, when you answer a phone call, the phone app becomes active and the app you previously were using is stopped. d. Each activity lifecycle method you override must call the subclass's version; otherwise, an exception will occur.

d. Each activity lifecycle method you override must call the subclass's version; otherwise, an exception will occur. Actually, each activity lifecycle method you override must call the superclass's version; otherwise, an exception will occur.

Which of the following statements about a standard AlertDialog is false? a. Its negative action button cancels the dialog's specified action, often labeled with CANCEL- or NO. This is the leftmost button when there are multiple buttons in the dialog. b. Its positive action button accepts the dialog's specified action, often labeled with OK or YES. This is the rightmost button when there are multiple buttons in the dialog. c. Its neutral action button indicates that the user does not want to cancel or accept the action specified by the dialog. For example, an app that asks the user to register to gain access to additional features might provide a REMIND ME LATER neutral button. d. Each of the above statements is true.

d. Each of the above statements is true.

Which of the next three statements is false? a. When exceptions occur or when you want to track important aspects of your code's execution, you can log messages for debugging purposes with Android's built-in logging mechanism. b. Android provides class Log (package android.util) with several static methods that represent messages of varying detail. c. Logged messages can be viewed in the bottom of the Android Device Monitor's LogCat tab or with the Android logcat tool. d. Each of the above statements is true.

d. Each of the above statements is true.

Which of the following statements is false? a. A Fragment typically represents a reusable portion of an Activity's user interface, but may also represent reusable program logic. b. Like an Activity, each Fragment has its own layout that's typically defined as an XML layout resource file (GUIs also can be created dynamically). c. You can create an XML file describing the user preferences, then class PreferenceFragment can use that file to build an appropriate preferences GUI. d. Fragments can be hosted by an Activity or they can execute independently.

d. Fragments can be hosted by an Activity or they can execute independently. Actually, Fragments must be hosted by an Activity—they cannot execute independently.

An Activity is launched by using a(n) ________ that indicates an action to be performed and the data on which to perform that action. a. Action b. IntendedAction c. Launcher d. Intent

d. Intent

Method onCreateView is called after onCreate to build and return a View containing the Fragment's GUI. This method receives a(n) ________, which you'll use to programmatically inflate a Fragment's GUI from the components specified in a predefined XML layout. a. Inflater b. GUICreator c. GUIInflater d. LayoutInflater

d. LayoutInflater

You'll use class ______ (package java.text) to create locale-specific currency and percentage strings—an important part of internationalizing your apps. a. LocaleFormat b. StringFormat c. InternationalFormat d. NumberFormat

d. NumberFormat

Which of the following statements is false? a. An app can have many activities, and an Activity can manage multiple Fragments. b. You interact with an Activity through views—GUI components that inherit from class View (package android.view). c. Before Android 3.0, a separate Activity was typically associated with each screen of an app. d. On a tablet, each Fragment typically occupies the entire screen and the Activity switches between the Fragments, based on user interactions.

d. On a tablet, each Fragment typically occupies the entire screen and the Activity switches between the Fragments, based on user interactions. Actually, on a phone, each Fragment typically occupies the entire screen and the Activity switches between the Fragments, based on user interactions, and on a tablet, activities typically display multiple Fragments per screen to take advantage of the larger screen size.

To respond to events when the user changes the text in an EditText, you'll use an anonymous inner class to implement the ______ interface (from package android-.text). a. EditTextListener b. TextListener c. EditTextWatcher d. TextWatcher

d. TextWatcher

Which of the following statements is false? a. If an Intent matches only one Activity's intent-filter, Android executes that Activity. b. If there are multiple matches, Android presents a list from which the user can choose an app, then executes the appropriate Activity in that app. c. An Intent often contains data the Activity can use to perform its task. d. The intent-filter element optionally can contain one or more action elements.

d. The intent-filter element optionally can contain one or more action elements. Actually, the intent-filter element must contain one or more action elements.

You can use the new Android Studio ______ to change the app's primary, dark primary and accent colors. a. Color Editor b. Design Editor c. Layout Editor d. Theme Editor

d. Theme Editor

Which of the following statements is false? a. A theme gives an app a look-and-feel that's consistent with Android. b. Projects that you create for Android 5 and higher use themes that adhere to Google's material- design guidelines. c. There are several predefined material design themes: The "light" theme has a white app bar, a white app background and text that is black or shades of dark gray. d. When designing a GUI, you must choose from the predefined themes.

d. When designing a GUI, you must choose from the predefined themes. Actually, when designing a GUI, you can choose from the predefined themes, or create your own new ones.

By default, animations in an animation set are applied simultaneously (i.e., in parallel), but you can use the ________ attribute to specify the number of milliseconds into the future at which an animation should begin. This can be used to sequence the animations in a set. a. android:startTime b. android:offset c. android:sequence d. android:startOffset

d. android:startOffset

Setting the ImageView's adjustViewBounds property to true indicates that the ImageView maintains its image's ________. a. width b. height c. resolution d. aspect ratio

d. aspect ratio

If the Java compiler can infer a generic object's type from the context, you can replace <type> with <> when creating the object. In this context, <> is referred to as the ________ operator. a. type b. less than-greater than c. inference d. diamond

d. diamond

By default, the IDE set the layout's Padding Left and Padding Right properties to a predefined dimension resource named @dimen/activity_horizontal_margin—located in the ________ file of the project's res/values folder. a. dimensions.xml b. values.xml c. strings.xml d. dimens.xml

d. dimens.xml

When the virtual keyboard is displayed, the device's back button changes to a down button that enables you to ______. a. scroll down the screen b. dismiss the app's current activity and return to the prior one. c. hide the app d. dismiss the keyboard

d. dismiss the keyboard

The Android design guidelines indicate that text displayed in your GUI should be brief, simple and friendly with the important words ________. a. centered b. last c. in italics d. first

d. first

Which of the following is not a tweened animation that you can include in an animation set? a. alpha b. scale c. rotate d. flip

d. flip

The _______ method is called whenever the text in the amount-EditText is modified. a. onNewValue b. onEditTextChanged c. watchedTextChanged d. onTextChanged

d. onTextChanged

Handler- method ________ receives as arguments a Runnable to execute and a delay in milliseconds. After the delay has passed, the Handler's Runnable executes in the same thread that created the Handler. a. executeDelayed b. runDelayed c. handleDelayed d. postDelayed

d. postDelayed

As with any other resource, color resources should be defined in XML so you can easily change colors without modifying your app's Java source code and so you can use Android's ________ capabilities to provide colors resources for various scenarios (different locales, night and day colors, and so on). a. color-choosing b. value-choosing c. locale-choosing d. resource-choosing

d. resource-choosing

You can use the ViewAnimationUtils class to create a circular reveal Animator object by calling the createCircularReveal method. The animation appears as a --------________ circular window that displays part of a UI element. a. rotating b. shrinking c. expanding d. shrinking or expanding

d. shrinking or expanding

When a color state list resource is provided for a Button color (either foreground or background), the appropriate color from the list of colors is selected, based on the Button's ________. a. relative horizontal position b. importance c. proximity to other GUI elements d. state

d. state

A ________ animation moves a View within its parent. a. alpha b. scale c. rotate d. translate

d. translate

By convention array resources are normally defined in arrays.xml, colors in colors.xml, Strings in strings.xml and numeric values in ________. a. numbers.xml b. numeric.xml c. digits.xml d. values.xml

d. values.xml


Kaugnay na mga set ng pag-aaral

Lab Manual Chapter 1 Pretest/Posttest

View Set

What are the three parts of a nucleotide?

View Set

Identify the Spinal Meninges and Associated Meningeal Spaces

View Set

Basic Accounting for Corporation

View Set

Chapter 30 - Soft Tissue Injuries

View Set

Sufijos: -acia, -encia, -dad, -tad, -tud

View Set

Ch. 22 Antipsychotics and Anxiolytics

View Set

Vocabulary - Unit 12 (synonyms & antonyms)

View Set