Exam1:Android

¡Supera tus tareas y exámenes ahora con Quizwiz!

True (2.2.4)

(True/False) It's considered good practice to define all strings, numeric values and other values in XML resource- files that are placed in the subfolders of a project's resources (res) folder.

d. layout:weights (2.5.10)

A LinearLayout can proportionally size its children based on their ________, which specify the view's relative size with respect to the layout's other views. a. layout:widths b. layout:heights c. layout:gravity d. layout:weights

d. project (2.3.2)

A ________ is a group of related files, such as code files, resource files and images that make up an app. a. folder b. directory c. solution d. project

a. methods.

A class houses the ________ that perform the class's tasks. a. methods. b. functions. c. procedures. d. None of the above.

b. instance variables.

A class's attributes are specified by the class's ________. a. instance methods. b. instance variables. c. packages. d. None of the above.

b. inheritance.

A new class of objects can be created quickly and conveniently by _________the new class absorbs the characteristics of an existing one, possibly customizing them and adding unique characteristics of its own. a. customization. b. inheritance. c. copying. d. None of the above.

b. EditText (3.3.5)

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

c. events (3.3.2)

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

d. requirements.

To create the best solutions, you should follow a detailed analysis process for determining your project's ________ (i.e., defining what the system is supposed to do) and developing a design that satisfies them (i.e., deciding how the system should do it). a. prerequisites. b. preconditions. c. options. d. requirements.

d. TextWatcher (3.3.7)

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. layout editor (2.5)

Android Studio allows you to build your GUI by dragging and dropping views—such as Text-Views, Image-Views and Buttons—onto the ________. a. GUI designer b. layout designer c. GUI editor d. layout editor

b. Translations Editor (2.8.3)

Android Studio provides a ________ for quickly and easily adding translations for existing strings in your app. a. Translator b. Translations Editor c. Converter d. None of the above.

a. broadcast receivers (3.3.1)

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

b. packages.

Android uses a collection of ________, which are named groups of related, predefined classes. Some of these are Android specific, some are Java specific and some are Google specific. They allow you to conveniently access Android OS features and incorporate them into your apps. a. modules. b. packages. c. containers. d. None of the above.

c. values-en-rGB (2.8.2)

Android uses a special folder-naming scheme to automatically choose the correct localized resources. You can name these folders with region information—values-en-rUS would contain a strings.xml file for United States English and ________ would contain a strings.xml file for United Kingdom English. a. values-en-rUK b. values-en-rEN c. values-en-rGB d. values-en-rBR

c. 0 to 100 (3.2)

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

c. encapsulate.

Classes ________ (i.e., wrap) attributes and methods into objects—an object's attributes and methods are intimately related. a. encumber. b. enclose. c. encapsulate. d. envelop.

b. styles.xml (3.5)

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.

c. setting both the view's layout:row and layout:column properties (3.4.4)

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. package name (3.7.1)

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. BigDecimal (3.6.3)

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.

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

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. material design.

Google's ________ look-and-feel for Android and web applications was the key new feature in Lollipop. It helps you create apps with nice transition effects, shadows that add depth to the user interface and emphasize actionable components, customization capabilities and more. a. material design b. holo c. GUI d. None of the above.

d. res/values/strings.xml (2.8.5)

If Android cannot find a localized version of a string resource, it uses the default version in the ________ file. a. res/values/defaults.xml b. res/values/english.xml c. res/values/values.xml d. res/values/strings.xml

a. Open Handset Alliance.

In 2007, the ________ was formed to develop, maintain and evolve Android, driving innovationin mobile technology and improving the user experience while reducing costs. a. Open Handset Alliance. b. Open Phone Alliance. c. Open Software Foundation. d. Open Software Alliance.

a. resources (2.4.7)

In a layout XML file, attribute values that begin with @, such as @dimen/activity_vertical_margin are ________ with values defined in other files. a. resources b. variables c. dimentions d. None of the above.

a. drag and drop

In addition to directly programming portions of your apps, you'll also use the Android Studio IDE to conveniently ________ predefined objects such as buttons and textboxes into place on your screen, and label and resize them. a. drag and drop b. point and click c. copy and paste d. None of the above.

c. interface (3.6.6)

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

c. resources (2.4.4)

Layout files like activity_main.xml are app ________ and are stored in subfolders of the project's res folder. a. code b. descriptions c. resources d. None of the above.

b. ANR (Application Not Responding) (3.6.4)

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.

d. classes.

Objects, or more precisely the ________ objects come from, are essentially reusable software components. a. methods. b. packages. c. APIs. d. classes.

c. open source

One benefit of developing Android apps is the openness of the platform. The operating system is ________and free. This allows you to view Android's source code and see how its features are implemented. a. proprietary b. closed source c. open source d. None of the above.

c. near-field communication (NFC).

One of the most significant new features in Android 2.3 was support for ________ —a short-range wireless connectivity standard that enables communication between two devices within a few centimeters. It can be used for payments (for example, touching your Android device to a payment device on a soda machine), exchanging data such as contacts and pictures, pairing devices and accessories and more. a. WiFi. b. Bluetooth. c. near-field communication (NFC). d. None of the above.

b FragmentTransactions (4.3.4)

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

b. 1.6 million.

Q1. At the time Android How to Program, 3/e was written, there were over __________ apps in Google Play, and the number is growing quickly. a. 160 thousand. b. 1.6 million. c. 16 million. d. 160 million

d. AssetManager (4.3.6)

Q1. 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. LayoutInflater (4.3.3)

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

c. gravity (2.5.8)

Q1. To center the text in the TextView if it wraps to multiple lines, you can set its ________ property to center. a. alignment b. weight c. gravity d. positioning

d. Face detection.

Q1. What key Android Ice Cream Sandwich developer feature is described by the following? "Using the camera, compatible devices can determine the positioning of the user's eyes, nose and mouth. The camera also can track the user's eye movement, allowing you to create apps that change perspective, based on where the user is looking." a. Social API. b. Virtual camera operator. c. Accessibility API. d. Face detection.

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. (4.3.2)

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

b. A ListPreference creates checkboxes in which only one can be selected. ************A ListPreference creates mutually exclusive radio buttons in which only one can be selected. (4.3.5)

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

c. modal (4.2.2)

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

c. Android Studio.

Q1.______ is now Google's preferred Android IDE. It's based on the JetBrains IntelliJ IDEA Java IDE. a. Eclipse b. Visual Studio c. Android Studio. d. None of the above.

a. animator (4.3.7)

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

b. onOptionsItemSelected (4.3.1)

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

b. instance variable with both set and get accessors (4.3.7)

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

c. Project (2.4.1)

The ________ window provides access to all of the project's files. a. Organizer b. Explorer c. Project d. None of the above.

d. onTextChanged (3.6.7)

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

b. code-completion (2.4.2)

The code editors for Java and XML help you write code quickly and correctly via ________as you type, you can press Enter (or Return) to automatically finish a Java code element or an XML element name, attribute name or value that is currently highlighted in the code-completion window. a. code-for-me b. code-completion c. automated coding d. None of the above.

c. RelativeLayout (3.4.3)

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

b. application (3.7.2)

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

b. paused (3.3.2)

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. click and hold the mouse.

To simulate a long press gesture on the Android emulator: a. double click the mouse. b. click and hold the mouse. c. click the mouse once. d. click, hold and drag the mouse.

d. Component Tree (2.4.3)

When the layout editor is open in Design view, the ________ appears at the right side of the IDE. This window shows the layouts and views (GUI components) that comprise the GUI and their parent-child relationships—for example, a layout (the parent) might contain many nested views (the children), including other layouts. a. Project window b. Properties window c. Palette d. Component Tree

c. French text-to-speech. (2.8.7)

When you first switch your device to French and enable TalkBack, Android will automatically download the ________ engine. a. English-to-French. b. Translations. c. French text-to-speech. d. French Transalation.

d. Component Tree (2.5.3)

When you open a layout XML file, the layout's design appears in the layout editor and the layout's views and their hierarchical relationships appear in the ________ window. a. Outline b. Tree c. Layout Editor d. Component Tree

b. elevation (3.3.10)

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

c. launcher (2.5.2)

When your app is installed on a device, its icon and name appear with all other installed apps in the ________. a. finder b. explorer c. launcher d. None of the above

b. immersive mode.

Which Android KitKat feature is described by the following: "The status bar at the top of the screen and the menu buttons at the bottom can be hidden, allowing your apps to fill more of the screen. Users can access the status bar by swiping down from the top of the screen, and the system bar(with the back button, home button and recent apps button) by swiping up from the bottom." a. full-screen mode. b. immersive mode. c. immersion mode. d. None of the above.

a. Now on Tap.

Which Android Marshmallow feature is described by: "Tap and hold the home button while inside any app and Google Now inspects what's on the screen and presents relevant information in the form of cards. For example, in a text message discussing a movie, a card containing information about that movie is displayed. a. Now on Tap. b. Tap for Card. c. Tap on Screen. d. None of the above.

d. swipe.

Which gesture is used to flip item-by-item through a series, such as photos? a. drag. b. long press. c. pinch zoom. d. swipe.

c. The rain in Spain stays mainly in Champaigne.

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. The rain in Spain stays mainly in Champaigne. d. You'll also specify that the app supports only portrait orientation—that is, the device's longer dimension is vertical.

d. All of the above are true. (2.2.5)

Which of the first three statements below is false? a. Android provides accessibility features to help people with certain disabilities use their devices. b. People with visual impairments can use Android's TalkBack to allow a device to speak screen text or text that you provide to help them understand the purpose and contents of a view. c. Android's Explore by Touch enables the user to touch the screen to hear TalkBack speak what's on the screen near the touch. d. All of the above are true.

d. All of the above.

Which of the following is a key technlogy for implementing Android apps? a. Android Studio IDE (Integrated Development Environment), b. Java c. Android SDK (Software Development Kit) d. All of the above.

c. Google Play Services.

Which of the following is a set of APIs for incorporating Google functionality into your apps? a. Google Android Services b. Google App Services c. Google Play Services. d. None of the above.

a. android:name is the app's name. (3.7.3) **** not the app's name but rather it's the activity's "class name"

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.

b. A parent theme is similar to a subclass in Java—the new style inherits its parent theme's attributes and their default values. (3.5.1) ****Superclass, not Subclass

Which of the following satements 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.DarkActionBar one 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.

c. This tight coupling makes it easy to mix and match parts of different applications. (3.7.3) "Loose coupling"

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. The green guide lines indicate where the new view will be placed with respect to the existing views—by default, new views are added at the top of a vertical LinearLayout, unless you position the mouse below the orange box that bounds the layout's bottommost view. (2.5.11) Answer is ... new views are added to the bottom

Which of the following statements about adding an ImageView to the GUI by dragging it from the Palette's Widgets section onto the canvas is false? a. When you drag a view onto the canvas, the layout editor displays orange guide lines, green guide lines and a tooltip. b. The orange guide lines show the bounds of each existing view in the layout. c. The green guide lines indicate where the new view will be placed with respect to the existing views—by default, new views are added at the top of a vertical LinearLayout, unless you position the mouse below the orange box that bounds the layout's bottommost view. d. The tooltip displays how the view will be configured if you drop it at the current position.

c. Most standard Android views support accessibility (2.7) "All", not most

Which of the following statements is false? a. For people with visual disabilities, Android's TalkBack can speak screen text or text that you provide (when designing your GUI or programmatically) to help the user understand the purpose of a view. b. Android also provides Explore by Touch, which enables the user to hear TalkBack speak what's on the screen where the user touches. c. Most standard Android views support accessibility. d. You enable TalkBack in the Settings app under Accessibility. From that page, you also can enable other Android accessibility features such as a larger default text size and the ability to use gestures that magnify areas of the screen.

b. If you externalize color values, it becomes more difficult to update all components that use the same color. (2.5.5)

Which of the following statements is false? a. It's considered good practice to place strings, string arrays, images, colors, font sizes, dimensions and other app resources in XML files within the subfolders of the project's res folder, so these re-sources can be managed separately from your app's Java code. b. If you externalize color values, it becomes more difficult to update all components that use the same color. c. If you wish to localize your app in several languages, storing the strings separately from the app's code allows you to change them easily. d. In your project's res folder, the subfolder values contains a strings.xml file that's used to store the app's default language strings—English for our apps.

c. Generally you should target the highest API level on which your app can run. (2.3.4) ***lowest***

Which of the following statements is false? a. The Minimum SDK is the minimum Android API level that's required to run your app. This allows your app to execute on devices supporting that API level and higher. b. Lower Minimum SDK values enable your app to run on more devices. c. Generally you should target the highest API level on which your app can run. d. You must disable newer features that are not available on older platforms when your app is installed on those platforms.

c. The IDE sets the package name using the text you enter for Company Name and Company Domain. (2.3.3) ... not "company name", uses Application Name and Company Domain

Which of the following statements is false? a. The package name normally begins with your company's or institution's Company Domain in reverse. This is followed by a dot (.) and the app's name in all lowercase letters with any spaces re-moved. b. By convention, package names use only lowercase letters. c. The IDE sets the package name using the text you enter for Company Name and Company Domain. d. By default, Android Studio places new project folders in the subfolder AndroidStudioProjects in your user account directory.

d. Designing an app so it can be customized is known as localization. Customizing an app's resources for each locale is known as internationalization. (2.8) these terms are swapped.

Which of the following statements is false? a. To reach the largest possible audience, you should consider designing your apps so that they can be customized for various locales and spoken languages. b. You might also choose to use different colors, graphics and sounds based on the locale. c. When the user launches the app, Android automatically finds and loads the resources that match the device's locale settings. d. Designing an app so it can be customized is known as localization. Customizing an app's resources for each locale is known as internationalization.

c. An RGB value consists of integer values in the range 1-100 that define the amounts of red, green and blue in the color, respectively. (2.5.7) 0-255

Which of the following statements is false? a. When you need custom colors in your apps, Google's Material Design guidelines recommend using colors from the Material Design color palette. b. Colors are specified as RGB (red-green-blue) or ARGB (alpha-red-green-blue) values. c. An RGB value consists of integer values in the range 1-100 that define the amounts of red, green and blue in the color, respectively. d. Custom colors are defined in hexadecimal format, so the RGB components are values in the range 00 (the hexadecimal value for 0) to FF (the hexadecimal value for 255).

No clue (3.4.1) All look correct????

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.

d. When designing a GUI, you must choose from the predefined themes. (3.3.9)

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.

c. When the app returns to the screen, the Android runtime passes the Bundle of the previously saved state to Activity method onStart. (3.6.1) - not onStart - should be onCreate

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.

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. (3.3.11) should be "Three" hues

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.

c. The Android emulator enables you to simulate the full range of Android gestures.

Which of the following statements is false? a. The Android emulator is particularly useful if you do not have access to Android devices for testing. b. Although you can simulate orientation changes (to portrait or landscape mode), simulating particular accelerometer readings (the accelerometer allows the device to respond to up/down, left/right and forward/backward acceleration) requires features that are not built into the emulator. c. The Android emulator enables you to simulate the full range of Android gestures. d. You should certainly test your apps on a variety of Android devices before uploading them to Google Play.

b. The overhead of reusing classes instead of building new ones can discourage reuse.

Which of the following statements is false? a. You can reuse a class many times to build many objects. b. The overhead of reusing classes instead of building new ones can discourage reuse. c. Reuse also helps you build more reliable and effective systems, because existing classes and components often have gone through extensive testing, debugging and performance tuning. d. Just as the notion of interchangeable parts was crucial to the Industrial Revolution, reusable classes are crucial to the software revolution that has been spurred by object technology.

a. You should use density-independent pixels for font sizes, and scale-independent pixels for dimensions of views and other screen elements. (2.5.6)

Which of the following statements is false? a. You should use density-independent pixels for font sizes, and scale-independent pixels for dimensions of views and other screen elements. b. Defining your GUIs with density-independent pixels enables the Android platform to scale the GUI, based on the pixel density of a given device's screen. c. One density-independent pixel is equivalent to one pixel on a 160-dpi screen. d. On a 240-dpi screen, each density-independent pixel will be scaled by a factor of 240/160 (i.e., 1.5). So, a component that's 100 density-independent pixels wide will be scaled to 150 actual pixels wide.

d. All of the above are true (2.2.3)

Which of the following statements is true? a. Extensible Markup Language (XML) is a natural way to express GUIs. b. XML is human- and computer-readable text and, in the context of Android, helps you specify the layouts and components to use, as well as their attributes, such as size, position, color, text size, mar-gins and padding. c.You use XML files to store app resources, such as strings, numbers and colors. d. All of the above are true

a, b, & c

Which of the following statements is true? a. To reach the most users with your apps, you should consider customizing them for various locales and spoken languages. b. Configuring your app so that it can be customized for various locales is known as localization. c. Customizing your app for a specific locale is known as internationalization. d. All of the above statements are false.

d. All of the above.

Which of the following statements is true? a. Android apps are developed with Java—one of the world's most widely used programming languages. b. Java was a logical choice for the Android platform, because it's powerful, free, open source and used by millions of developers. c. Experienced Java programmers can quickly dive into Android development, using Google's Android APIs (Application Programming Interfaces) and others available from third parties. d. All of the above.

d. All of the above statements are true. (3.3.4)

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.

Which of the following was a new Android 3.0 developer feature: a. fragments, which describe portions of an app's user interface and can be combined into one screen or used across multiple screens. b. a persistent Action Bar at the top of the screen providing users with options for interacting with apps. c. ability to use multicore processor architectures for enhanced performance d. All of the above.

d. All of the above statements are true (3.5.3)

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

a. Empty Activity. (2.3.5)

Which type of app template is described by: "Used for a single-screen app (similar to Blank Activity) that occupies the entire screen, but can toggle visibility of the device's status bar and the app's app bar." a. Empty Activity. b. Fullscreen Activity. c. Master/Detail Flow. d. None of the above.

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

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. RelativeLayout (2.4.6)

With a ________ you can, for example, specify that one view should appear below another and be centered horizontally within this layout. a. LinearLayout b. CenteredLayout c. RelativeLayout d. None of the above.

c. mashups.

With web services, you can create________, which enable you to rapidly develop apps by quickly combining complementary web services, often from different organizations and possibly other forms of information feeds. a. smashups b. match ups. c. mashups. d. None of the above.

d. internationalize. (2.1)

You can ________ an app so that you can provide localized strings in different languages. a. translate. b. convert. c. transcribe. d. internationalize.

d. Theme Editor (3.5.2)

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

c. dark (3.1)

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

d. instantiation.

You must build an object of a class before a program can perform the tasks that the class's methods define. The process of doing this is called ________. a. creation. b. allocation. c. building. d. instantiation.

a. SeekBar.OnSeekBarChangeListener (3.3.8)

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.

d. NumberFormat (3.3.6)

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

c. Cloud computing.

________ allows you to use software and data stored in the "cloud"—i.e., accessed on remotecomputers (or servers) via the Internet and available on demand—rather than having it stored on your desktop, notebook computer or mobile device. a. Desktop computing. b. Sky computing. c. Cloud computing. d. None of the above.

a. Layouts. (2.2.2)

________ are views that contain and arrange other views. a. Layouts. b. TextViews. c. ImageViews. d. None of the above.


Conjuntos de estudio relacionados

Relative and Absolute Dating Questions

View Set

series 7TO- unit 8 investment companies

View Set

chapter 8 study guide business & personal law

View Set

ACCT 308 - CHAP. 4 - GROSS INCOME: CONCEPTS AND INCLUSIONS

View Set

art history 2-assignment 20 american modernist

View Set