Deck 2: Welcome App
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/39
Play
Full screen (f)
Deck 2: Welcome App
1
You can ________ an app so that you can provide localized strings in different languages.
A) translate.
B) convert.
C) transcribe.
D) internationalize.
A) translate.
B) convert.
C) transcribe.
D) internationalize.
internationalize.
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) folder
B) directory
C) solution
D) project
D
3
________ are views that contain and arrange other views.
A) Layouts.
B) TextViews.
C) ImageViews.
D) None of the above.
A) Layouts.
B) TextViews.
C) ImageViews.
D) None of the above.
A
4
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 folder.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
5
You can have only one project open in the IDE at once.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
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.
A) LinearLayout
B) CenteredLayout
C) RelativeLayout
D) None of the above.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
7
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.
A) code-for-me
B) code-completion
C) automated coding
D) None of the above.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
8
The ________ folder contains the files you'll edit to create your apps' GUIs and logic.
A) java
B) res
C) app
D) manifests
A) java
B) res
C) app
D) manifests
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
9
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 compo-nents) 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
A) Project window
B) Properties window
C) Palette
D) Component Tree
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
10
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, margins 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) 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, margins and padding.
C)You use XML files to store app resources, such as strings, numbers and colors.
D) All of the above are true.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
11
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.
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.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
12
The ________ window provides access to all of the project's files.
A) Organizer
B) Explorer
C) Project
D) None of the above.
A) Organizer
B) Explorer
C) Project
D) None of the above.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
13
Which of the following statements is false?
A) Android Studio’s layout editor enables you to build GUIs using drag-and-drop techniques.
B) You can edit the GUI’s XML directly.
C) In portrait orientation the device’s width is greater than its height.
D) Android’s Explore by Touch enables users to touch items on the screen and hear TalkBack speak the corresponding descriptive text
A) Android Studio’s layout editor enables you to build GUIs using drag-and-drop techniques.
B) You can edit the GUI’s XML directly.
C) In portrait orientation the device’s width is greater than its height.
D) Android’s Explore by Touch enables users to touch items on the screen and hear TalkBack speak the corresponding descriptive text
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
14
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 removed.
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 An-droidStudioProjects in your user account directory.
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 removed.
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 An-droidStudioProjects in your user account directory.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following statements is false?
A) Android devices have various screen sizes, resolutions and pixel densities (that is, dots per inch or DPI), so you typically provide images in various resolutions that the operating system chooses based on a device’s pixel density. These are placed in drawable folders (in a project’s res folder) that store images with different pixel densities.
B) Android Studio displays only one drawable folder containing the app’s drawable resources, even if your project contains resources for multiple densi-ties.
C) If Android cannot find an image in the drawable folder that most closely matches the device’s pixel density, Android will display nothing for that image.
D) Low-resolution images do not scale well. For images to render nicely, a high-pixel-density device needs higher-resolution images than a low-pixel-density device.
A) Android devices have various screen sizes, resolutions and pixel densities (that is, dots per inch or DPI), so you typically provide images in various resolutions that the operating system chooses based on a device’s pixel density. These are placed in drawable folders (in a project’s res folder) that store images with different pixel densities.
B) Android Studio displays only one drawable folder containing the app’s drawable resources, even if your project contains resources for multiple densi-ties.
C) If Android cannot find an image in the drawable folder that most closely matches the device’s pixel density, Android will display nothing for that image.
D) Low-resolution images do not scale well. For images to render nicely, a high-pixel-density device needs higher-resolution images than a low-pixel-density device.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
16
Which of the following statements is false?
A) You can use a vertical LinearLayout to arrange an app’s text and image with each occupying half the LinearLayout’s vertical space.
B) A LinearLayout also can arrange views horizontally.
C) The default GUI created by Android Studio already contains an ImageView.
D) You can use the layout editor’s Palette of views to drag and drop an Im-ageView onto a GUI, then configure its properties.
A) You can use a vertical LinearLayout to arrange an app’s text and image with each occupying half the LinearLayout’s vertical space.
B) A LinearLayout also can arrange views horizontally.
C) The default GUI created by Android Studio already contains an ImageView.
D) You can use the layout editor’s Palette of views to drag and drop an Im-ageView onto a GUI, then configure its properties.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
17
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.
A) Empty Activity.
B) Fullscreen Activity.
C) Master/Detail Flow.
D) None of the above.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
18
For a TextView font color, you should typically create a color resource using a color selected from Google’s Material Design color palette.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
19
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) resources
B) variables
C) dimentions
D) None of the above.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
20
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
A) GUI designer
B) layout designer
C) GUI editor
D) layout editor
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
21
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 sub-folders of the project’s res folder, so these resources can be managed separately from your app’s Java code.
B) If you externalize color values, it becomes more difficult to update all com-ponents that use the same color.
C) If you wish to localize your app in several languages, storing the strings sep-arately 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.
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 sub-folders of the project’s res folder, so these resources can be managed separately from your app’s Java code.
B) If you externalize color values, it becomes more difficult to update all com-ponents that use the same color.
C) If you wish to localize your app in several languages, storing the strings sep-arately 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.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
22
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) Translator
B) Translations Editor
C) Converter
D) None of the above.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
23
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.
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.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
24
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) res/values/defaults.xml
B) res/values/english.xml
C) res/values/values.xml
D) res/values/strings.xml
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
25
Android ________ checks your project for common errors, and makes suggestions for better security-, enhanced performance, improved accessibility, internationalization- and more. Some checks occur as you build your apps and write code.
A) Cleanser.
B) Lint.
C) Error Checker.
D) None of the above.
A) Cleanser.
B) Lint.
C) Error Checker.
D) None of the above.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
26
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.
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.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
27
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.
A) English-to-French.
B) Translations.
C) French text-to-speech.
D) French Transalation.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
28
For an ImageView there is no text for TalkBack to speak unless you provide it. It's considered good practice in Android to ensure that every view can be used with TalkBack by providing text for the ________ property of any view that does not display text.
A) talkBack
B) description
C) hint
D) contentDescription
A) talkBack
B) description
C) hint
D) contentDescription
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
29
Which of the following statements is false?
A) When you need custom colors in your apps, Google’s Material Design guide-lines 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).
A) When you need custom colors in your apps, Google’s Material Design guide-lines 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).
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
30
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
A) values-en-rUK
B) values-en-rEN
C) values-en-rGB
D) values-en-rBR
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
31
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. Custom-izing an app’s resources for each locale is known as internationalization.
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. Custom-izing an app’s resources for each locale is known as internationalization.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
32
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.
A) finder
B) explorer
C) launcher
D) None of the above.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
33
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
A) Outline
B) Tree
C) Layout Editor
D) Component Tree
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
34
If localized resources are not provided for a given locale, Android uses the app’s default resources—that is, those in the res folder’s ________ subfolder.
A) defaults
B) english
C) values
D) strings
A) defaults
B) english
C) values
D) strings
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
35
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.
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.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
36
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
A) layout:widths
B) layout:heights
C) layout:gravity
D) layout:weights
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
37
Which of the first three statements about uploading apps to Google Play is false?
A) You can upload multiple versions of the app for various device- sizes and screen resolutions.
B) All images in the mipmap folders are uploaded with every version of your app.
C) You can remove extra drawable folders for specific pixel densities from a given app version to minimize the total installation size for a particular device.
D) All of the above are true.
A) You can upload multiple versions of the app for various device- sizes and screen resolutions.
B) All images in the mipmap folders are uploaded with every version of your app.
C) You can remove extra drawable folders for specific pixel densities from a given app version to minimize the total installation size for a particular device.
D) All of the above are true.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
38
Which of the following statements is false?
A) When a GUI is displayed in the layout editor, you can use the Properties window below the Component Tree to configure the selected view's properties.
B) You also can edit a view's most commonly used properties by double clicking the view in the canvas. The layout editor then displays a small dialog in which you can set the view's id property and other properties that depend on the specific view:
C) For a LinearLayout, you can set the orientation to specify whether the layout's children are arranged in horizontal or vertical orientation.
D) For an ImageView, you can set the src (source) of the image to display.
A) When a GUI is displayed in the layout editor, you can use the Properties window below the Component Tree to configure the selected view's properties.
B) You also can edit a view's most commonly used properties by double clicking the view in the canvas. The layout editor then displays a small dialog in which you can set the view's id property and other properties that depend on the specific view:
C) For a LinearLayout, you can set the orientation to specify whether the layout's children are arranged in horizontal or vertical orientation.
D) For an ImageView, you can set the src (source) of the image to display.
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck
39
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
A) alignment
B) weight
C) gravity
D) positioning
Unlock Deck
Unlock for access to all 39 flashcards in this deck.
Unlock Deck
k this deck