Accounting
Anthropology
Archaeology
Art History
Banking
Biology & Life Science
Business
Business Communication
Business Development
Business Ethics
Business Law
Chemistry
Communication
Computer Science
Counseling
Criminal Law
Curriculum & Instruction
Design
Earth Science
Economic
Education
Engineering
Finance
History & Theory
Humanities
Human Resource
International Business
Investments & Securities
Journalism
Law
Management
Marketing
Medicine
Medicine & Health Science
Nursing
Philosophy
Physic
Psychology
Real Estate
Science
Social Science
Sociology
Special Education
Speech
Visual Arts
Programming Language
Q:
(True/False) By default, there are 8dp marginsspaces that separate viewsaround a GridLayout's cells.
Q:
By default, the GridLayout's Orientation property is set to ________, indicating that its contents will be laid out row-by-row.
Q:
The default layout in a Blank App's GUI is ________.
Q:
(True/False) The Android Developer Tools IDE allows only one project with a given name per workspace.
Q:
(True/False) You can restrict the user's input to integer digits, for example, so that the user cannot enter invalid input.
Q:
Which of the following statements is false?
A. Each cell in a GridLayout can be empty or can hold one or more views, including layouts that contain other views.
b. Views can span multiple rows or columns. You can specify a GridLayout's number of rows and columns in the Properties window.
c. Each row's height is determined by the tallest view in that row. Similarly, the width of a column is defined by the tallest view in that column.
d. By default, views are added to a row from left to right. You can specify the exact row and column in which a view is to be placed.
Q:
Which of the following statements is false?
a. You create the AndroidManifest.xml file when you create a new app project.
b. The AndroidManifest.xml file contains many of the settings that you specify in the New Android Application dialog, such as the app's name, package name, target and minimum SDKs, Activity name(s), theme and more.
c. You can use the IDE's Android Manifest editor to add a new setting to the manifest that forces the soft keyboard to remain on the screen.
d. You can specify that an app supports only portrait orientationthat is, the device's longer side is vertical.
Q:
You"ll implement the ________ interface to respond to the user moving the SeekBar's thumb.
Q:
You"ll use an anonymous inner class to implement the ________ interface to respond to events when the user changes the text in this app's EditText.
Q:
You"ll use class NumberFormat to create locale-specificcurrency and percentage stringsan important part of ________.
Q:
(True/False) A SeekBaroften called a slider in other GUI technologiesrepresents an integer in the range 0"10 by default and allows the user to select a number in that range by moving the SeekBar's thumb.
Q:
An EditTextoften called a text box or text field in other GUI technologiesis a subclass of TextView that can display text and ________.
Q:
(True/False) You can build some apps without directly manipulating the XML stored in the files of the project's res folder.
Q:
Which of the following statements is false?
a. A LinearLayout arranges views either horizontally (the default) or vertically and can size its views proportionally.
b. GridLayout arranges views into cells in a rectangular grid. Cells can occupy only one row within a column.
c. In many cases, GridLayout can be used to replace the older, and sometimes less efficient TableLayout, which arranges views into rows and columns where each row is typically defined as a TableRow and the number of columns is defined by the TableRow containing the most cells.
d. A GridLayout cannot specify within a given row that the horizontal space should be allocated proportionally between multiple views.
Q:
________ arrange views in a GUI.
Q:
(True/False) Each activity lifecycle method you override may call the superclass's version but is not required to do so.
Q:
You"ll override the onCreate method in every activity. This method is called by the Android runtime when an Activity is ________, that is, when its GUI is about to be displayed so that the user can interact with the Activity.
Q:
Throughout its life, an Activity can be in one of several statesactive (i.e., running), paused or stopped. The Activity transitions between these states in response to various events. 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. This is the Activity the user is interacting with.
b. A paused Activity is visible on the screen but does not have the focussuch as when an alert dialog is displayed.
c. A stopped activity is not visible on the screen and is likely to be killed by the system when its memory is needed. An Activity is stopped when another Activity becomes active.
d. As an Activity transitions among these states, the Android runtime calls various Activity lifecycle methodsall of which are defined in the Lifecycle class.
Q:
Which of the following is false?
a. Before Android 3.0, a separate Activity was typically associated with each screen of an app.
b. An Activity can manage multiple Fragments.
c. On a phone, each Fragment typically occupies the entire screen and the Activity switches between the Fragments based on user interactions.
d. On a tablet, activities often display multiple screens per Fragment to take better advantage of the larger screen size.
Q:
Users interact with an Activity through ________, that is, GUI components.
Q:
Unlike many Java apps, Android apps don"t have a main method. Instead, they have four types of executable components________, ________, ________ and ________.
Q:
Android's ________ feature enables the user to touch the screen to hear TalkBack speak what's on the screen near the touch.
Q:
When you first switch your device to Spanish and enable TalkBack, Android will automatically download the Spanish text-to-speech engine. Why might TalkBack then not speak the Spanish strings?
Q:
If localized resources are not provided for a given locale, Android uses the app's default resourcesthat is, those in the res folder's ________ subfolder.
Q:
(True/False) A key benefit of defining your string values as string resources is that you can easily localize your app by creating additional XML resource files for those string resources in other languages. In each file, you translate the string-resource names and strings. Android can then choose the appropriate resource file based on the device user's preferred language.
Q:
Android devices are used worldwide. To reach the largest possible audience, you should consider customizing your apps for various locales and spoken languagesthis is known as ________.
Q:
(True/False) Some apps dynamically generate GUI components in response to user interactions. For such GUI components, you can programmatically set the accessibility text.
Q:
Which of the following statements is false?
a. For an ImageView there is no text for TalkBack to speak unless you provide it.
b. It's considered a best practice in Android to ensure that every GUI component can be used with TalkBack by providing text for the Content Description property of any component that does not display text.
c. The text that you provide should help the user understand the purpose of the componentfor example, for an ImageView, the text should describe the image.
d. The IDE warns that something is wrong with a GUI by displaying small warning icons in the Graphical Layout editor next to each ImageView. These warningswhich are generated by the Java compilerindicate that you did not set the Content Description property of each image.
Q:
Which of the following statements is false?
a. When TalkBack is enabled and the user touches an accessible GUI component, TalkBack speaks the component's accessibility text and vibrates the device to provide feedback to users who have trouble hearing.
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. You enable TalkBack in the Settings app under Accessibility. From that page, you can also enable other Android accessibility features such as a larger default text size and the ability to use gestures that magnify areas of the screen.
d. TalkBack is supported in AVDs.
Q:
(True/False) For apps that run on both phones and tablets, Android requires that you provide only a single layout which it scales to each size device.
Q:
Which of the following statements is false?
a. 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.
b. One density-independent pixel is equivalent to one pixel on a 160-dpi screen. On a 240-dpi screen, each density-independent pixel will be scaled by a factor of 160/240 (i.e., 0.67). So, a component that's 100 density-independent pixels wide will be scaled to 67 actual pixels wide.
c. On a screen with 120 dpi, each density-independent pixel is scaled by a factor of 120/160 (i.e., 0.75). So, the same component that's 100 density-independent pixels wide will be 75 actual pixels wide.
d. Scale-independent pixels are scaled like density-independent pixels, and they"re also scaled by the user's preferred font size (as specified in the device's settings).
Q:
(True/False) Android's documentation for supporting multiple screen sizes recommends that you use scale-independent pixels for the dimensions of GUI components and other screen elements, and density-independent pixels for font sizes.
Q:
Which of the following statements is false?
a. If you externalize color values, all components that use the same color can be updated to a new color simply by changing the color value in a central resource file.
b. If you wish to localize your app in several languages, storing the strings in the app's Java source code allows you to change them easily.
c. 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.
d. To provide localized strings for other languages, you can create separate values folders for each language.
Q:
(True/False) It's considered a 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 that the resources can be managed separately from your app's Java code. This is known as internalizing the resources.
Q:
When a GUI is displayed in the Graphical Layout editor, you can use the ________ window at the bottom of the Outline window to configure the selected layout's or component's properties without editing the XML directly.
Q:
(True/False) High-resolution images do not scale well.
Q:
(True/False) If Android cannot find an image in the appropriate drawable folder, it will scale the version from another drawable folder up or down to different densities as necessary.
Q:
Your project's res folder contains several subfolders that begin with the name drawable. These folders store images with different pixel densities. The folder that stores images with approximately 640 dot-per-inch is ________.
a. drawable-hdpi (high density).
b. drawable-xhdpi (extra high density).
c. drawable-xxhdpi (extra extra high density).
d. drawable-xxxhdpi (extra extra extra high density).
Q:
(True/False) File names for image resourcesand all the other resources must be in all lowercase letters.
Q:
(True/False) In most cases, you"ll need to manipulate the XML layout markup directly.
Q:
By default, theGUI layout for a Blank App is stored in an XML file called________, located in the project's res folder in the layout subfolder.
Q:
The IDE's ________ editor allows you to build your GUI by dragging and dropping GUI componentssuch as TextViews, ImageViews and Buttonsonto an app.
Q:
A ________ layout arranges GUI components relative- to one another or relative to the layout itself; for example, you can specify that a GUI component should appear below another GUI component and centered horizontally within the layout.
Q:
(True/False) The Graphical Layout editor comes with many device configurations that represent various screen sizes and resolutions that you can use to design your GUI. If, for example, you choose a predefined Nexus 4 device configuration, your app can run only on a Nexus 4 device.
Q:
When you first create a project, the IDE opens the app's ________ file in the Graphical Layout editor.
Q:
Which of the following statements about resources and the resources subfolder is false?
a. Folder names that begin with drawable typically contain images. These folders may also contain XML files representing shapes and other types of drawables.
b. Folder names that begin with layout contain XML files that describe GUIs, such as the activity_main.xml file.
c. Folder names that begin with values contain XML files that specify values for arrays (arrays.xml), colors (colors.xml), dimensions (dimen.xml; values such as widths, heights and font sizes), strings (strings.xml) and styles (styles.xml). These file names are required.
d. It's considered best practice to define the data from hard-coded arrays, colors, sizes, strings and styles as resources so they can be modified easily without changing the app's Java code.
Q:
Layout files like activity_main.xml (in the project's res/layout folder) are considered app resources and are stored in the project's ________ folder. Within that folder are subfolders for different resource types.
Q:
The Outline window at the right side of the IDE shows information related to the file that's currently being edited. For a GUI, this window shows ________.
Q:
When you double click a file in the Package Explorer, its contents are displayed in an appropriate editor window, depending on the file's type. For a Java file, the ________ is displayed.
Q:
Which of the following statements is false?
a. Templates provide preconfigured starting points for commonly used app designs.
b. The Blank Activity template is used for a single-screen app in which most of the GUI is provided by default. Provides an action bar at the top of the app that displays the app's name and can display controls that enable a user to interact with the app.
c. The Fullscreen Activity template is used for a single-screen app that occupies the entire screen, but can toggle visibility of the device's status bar and the app's action bar.
d. The Master/Detail Flow template is used for an app that displays a master list of items from which a user can choose one item to see its detailssimilar to the built-in Email and People apps. For tablets, the master list and details are shown side-by-side on the same screen. For phones, the master list is shown on one screen, and selecting an item displays the item's details in a separate screen.
Q:
(True/False) Android runs on a wide variety of devices that have different screen sizes and resolutions. To ensure that your images look good on all devices, you should provide several versions of each image your app uses. Android can automatically choose the correct image based on various specifications, such as the screen's resolution (width and height in pixels) or DPI.
Q:
When your app is installed on a device, its icon and name appear with all other installed apps in the ________.
Q:
Your app's Android ________, gives the app a look-and-feel that's consistent with Android. You can choose from Holo Light, Holo Dark and Holo Light with Dark Action Bars (the default specified by the IDE).
Q:
(True/False) When developing apps for distribution, to reach the largest audience, you should target all Android devices.
Q:
To reach the largest possible audience with your apps, you should consider customizing them for various locales and spoken languagesthis is known as ________.
Q:
Android's ________ enables the user to touch the screen to hear TalkBack speak what's on the screen near the touch.
Q:
People with visual and physical disabilities can use Android's ________ to allow a device to speak screen text or text that you provide to help them understand the purpose and contents of a GUI component.
Q:
Android contains many ________ features to help people with various disabilities use their devices.
Q:
Which of the following statements is false?
a. Text can be displayed in a TextView and pictures can be displayed in ImageViews.
b. You use the Graphical Layout editor's Palette of GUI controls to drag and drop ImageViews onto the GUI.
c. It's considered good practice to define all strings and numeric values in resource files that are placed in the subfolders of a project's resources.xml folder.
d. An example of a string resource is the text on a TextView. An example of a measurements resource is a font's size.
Q:
(True/False) You can build apps that display text and images without writing any code.
Q:
Which of the following is not a characteristic of great apps?
a. Innovating with augmented reality technologyenhancing a real-world environment with virtual components; this is particularly popular with video-based apps.
b. Using location-based services to provide local services (e.g., coupons for local businesses, best gas prices, food delivery).
c. Innovating with augmented reality technologyenhancing a real-world environment with virtual components; this is particularly popular with video-based apps.
d. Running input/output and compute-intensive code on the same thread of execution to improve interface responsiveness and app performance.
Q:
Which of the following statements is false?
a. When you build an app for distribution via app stores like Google Play, you should focus your testing on the particular android device the app is most likely to run on.
b. Some features can be tested only on actual devices.
c. If you don"t have many devices available to you, create AVDs that simulate the various devices on which you"d like your app to execute.
d. When you configure each AVD to simulate a particular device, look up the device's specifications online and configure the AVD accordingly.
Q:
Which of the following statements is false?
a. Immersive mode enables apps to use the entire screen.
b. Colors are defined using the ARGB color scheme in which the alpha (i.e., transparency), red, green and blue components are specified by integers in the range 0"255.
c. For alpha, 0 means completely opaque and 255 means completely transparent.
d. For red, green and blue, 0 means none of that color and 255 means the maximum amount of that color.
Q:
Which of the following statements about workspaces is false?
a. A workspace is a collection of projects, and each project is typically an app or a library that can be shared among apps.
b. Each workspace also has its own settings, such as where various Eclipse subwindows are displayed.
c. You can have many workspaces and switch between them for different development tasks.
d. You could have separate workspaces for Android app development, Java app development and web app development, each with its own custom settings.
e. All of the above statements are true.
Q:
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 ________ that satisfies them (i.e., deciding how the system should do it).
Q:
Objects know how other objects that they communicate with are implemented.
Q:
Which, if any, of the following statements is false?
a. You can reuse a class many times to build many objects.
b. Reuse of existing classes when building new classes and programs saves time and effort.
c. Reuse helps you build more reliable and effective systems, because existing classes and components often have gone through extensive testing, debugging and performance tuning.
d. All of the above are true.
Q:
Q: The process of building an object of a class before a program can perform the tasks that the class's methods define is called instantiation. A class is then referred to as an instance of its object.
Q:
Performing a task in a program requires a ________ which houses the program statements that actually perform its tasks.
Q:
Which of the following capabilities is available on the emulator?
a. Bluetooth.
b. Pinch zoom.
c. USB connections.
d. Determining the battery charge or power charging state.
Q:
You can use the ________ to send simulated sensor information into an AVD to test various sensor features in your apps.
Q:
(True/False) You cannot test GPS apps in the emulator.
Q:
(True/False) If you want to test your apps for multiple Android devices, you"ll need to create a single AVD that emulates all of the devices, or use a service (like testdroid.com or appthwack.com) that enables you to test on many different devices.
Q:
Before running an app in the emulator, you"ll need to create a(n) ________, which defines the characteristics of the device on which you want to test, including the hardware, system image, screen size, data storage and more.
Q:
Which statement about the Android emulator is false?
a. It's included in the Android SDK.
b. It allows you to run Android apps in a simulated environment within Windows, Mac OS X or Linux, that must be coupled with an actual Android device.
c. It displays a realistic Android user-interface window.
d. It's particularly useful if you do not have access to Android devices for testing.
Q:
The Android Development Tools (ADT) Plugin for Eclipse:
a. is part of the Android SDK/ADT Bundle
b. allows you to create, run and debug Android apps, export them for distribution (e.g., upload them to Google Play), and more.
c. enables GUI components to be dragged and dropped into place to form GUIs without any coding.
d. all of the above.
Q:
________, a new Android IDE based on the JetBrains IntelliJ IDEA Java IDE, is Google's preferred Android IDE of the future.
Q:
Which of the following are included in the Eclipse IDE?
a. Auto-indenting and auto-complete
b. Version control system
c. Refactoring support
d. (a) and (b) only.
e. (a), (b) and (c).
Q:
(True/False) Android apps must be created with an IDE.
Q:
Which package includes user interface classes for layout and user interactions?
a. android.app
b. android.graphics
c. android.media
d. android.view