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
Computer Science
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
Q:
Android uses a collection of ________, which are named groups of related, predefined classes.
Q:
Immersive mode enables you to:
a. Create apps that detect whether the user is running, walking or climbing stairs.
b. Create SMS (Short Message Service) or MMS (Multimedia Messaging Service) apps using the new SMS provider and APIs.
c. Record video of your app in action to create tutorials and marketing materials.
d. Hide the status bar at the top of the screen and the menu buttons at the bottom, allowing your apps to fill more of the screen.
Q:
The explore-by-touch mode is associated with which API?
a. Face Detection
b. Bluetooth Health Devices
c. Accessibility
d. Social
Q:
Which of the following statements is(are) false?
a. Fragments describe portions of an app's user interface and can be combined into one screen or used across multiple screens.
b. The Action Bar at the top of the screen provides users with options for interacting with apps.
c. The primary reason for using multicore processor architectures is to increase the amount of memory available to apps.
d. (a) and (c) are false.
Q:
________ is a short-range wireless connectivity standard intended for communication between two devices within a few centimeters. It can be used for payments, exchanging data such as contacts and pictures, pairing devices and accessories and more.
a. Wifi
b. Near-field communication (NFC)
c. Bluetooth
d. TCP/IP
Q:
________ computing allows you to use software and data stored on remote computers (or servers) via the Internet and available on demand, rather than having it stored on your desktop, notebook computer or mobile device.
Q:
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.
Q:
Which gesture is used to flip item-by-item through a series, such as photos, and automatically stop at the next item?
a. drag.
b. double touch.
c. pinch zoom.
d. swipe.
Q:
(True/False) In addition to directly programming portions of your apps, you can also use the Eclipse and Android Studio IDEs to conveniently drag and drop predefined objects such as buttons and textboxes into place on your screen, and label and resize them.
Q:
GUI programming in Java is ________ drivenapps respond to various user-initiated actions such as screen touches.
a. touch
b. action
c. event
d. object
Q:
(True/False) Unlike Apple's iOS, which is available only on Apple devices, Android is available on devices from dozens of original equipment manufacturers (OEMs) and through numerous telecommunications carriers worldwide.
Q:
Which of the following allows you to share apps and source code and contribute to others' open-source projects?
a. SourceForge
b. Stack Overflow
c. GitHub
d. (a) and (b)
e. (a) and (c)
Q:
Which of the following statements is false?
a. One benefit of developing Android apps is the openness of the platform.
b. The Android operating system is proprietary and free.
c. You can view Android's source code and see how its features are implemented.
d. None of the above is false.
Q:
(True/False) The preferred Andoid integrated development environment of the future is Eclipse.
Q:
Andoid applications are typically programmed in ________.
Q:
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.
Q:
The COUNTIF function is sometimes referred to as a(n) _____ count.
a. network b. criterion
c. conditional d. basic
Q:
You can use _____ to reference cells within an Excel table.
a. unstructured references b. cell and range addresses
c. macros d. links
Q:
Case 8-1
Evaluate the formula =AND(G2=FT,M2>=1) based upon the information provided. What value is returned assuming that G2 contains the value FT and M2 contains the value 2?
a. TRUE b. FALSE
c. PT d. PT, 2
Q:
Case 8-2
Your boss in the human resources department asks you to write a function that calculates the length of time that employees have been with the firm, using the DATEDIF function. Assume that C2 contains the hire date for a given employee and that cell $AE$2 contains the cut-off date against which to compare the hire date to determine length of service. On a lark, for a year-end trivia contest, your boss wants you to calculate the length of service in complete days. What is the correct formula?
a. =DATEDIF(C2, $AE$2, today) b. =DATEDIF($AE$2, C2, dy)
c. =DATEDIF($AE$2, C2, day) d. =DATEDIF(C2, $AE$2, d)
Q:
Case 8-3
You have been using a variety of nested IF functions to calculate costs in your spreadsheet when a colleague stops by and comments on what you have been working on, suggesting that there is an easier approach to use. If you omit the range_lookup value from a LOOKUP function, which of the following is true?
a. The function returns the #NAME? error value.
b. Your function can only search the first column of the lookup table.
c. It is considered an approximate match.
d. It is considered an exact match.
Q:
When you create a formula that references all or parts of an Excel table, you can replace the specific cell or range address with a(n) ____________________ reference, the actual table name or column header.
Q:
The ____________________ function calculates the difference between two dates and shows the result in months, days, or years.
Q:
A(n) ____________________ IF function is when one IF function is placed inside another IF function to test an additional condition.