Deck 9: Customize Navigating With Tabs on a Tablet 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
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/50
Play
Full screen (f)
Deck 9: Customize Navigating With Tabs on a Tablet App
1
On tablets, single-pane layouts automatically correct for awkward whitespace and excessive line lengths.
False
2
Multipane layouts provide a way to show different topics within a single window in an intuitive interface.
True
3
What's the first API generation that includes tablet designs?
A) API 14: Android 4.0 (Ice Cream Sandwich)
B) API 10: Android 2.33 (Gingerbread)
C) API 11: Android 3.0 (Froyo)
D) API 13: Android 3.2 (Honeycomb)
A) API 14: Android 4.0 (Ice Cream Sandwich)
B) API 10: Android 2.33 (Gingerbread)
C) API 11: Android 3.0 (Froyo)
D) API 13: Android 3.2 (Honeycomb)
D
4
Which of the following allows you to show different topics within a single window ?
A) FlipScreens
B) MultiWindows
C) TabbedPanes
D) Multipane layouts
A) FlipScreens
B) MultiWindows
C) TabbedPanes
D) Multipane layouts
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
Application templates are used to create basic Android applications that will work on only specific screen sizes.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
When using the Master/Detail Flow template on smaller devices, where are the list and details displayed?
A) Top and bottom
B) Side by side
C) In rows and columns
D) On separate screend
A) Top and bottom
B) Side by side
C) In rows and columns
D) On separate screend
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
What type of object should you use to display Web pages?
A) WebView
B) TextView
C) HTMLView
D) PageView
A) WebView
B) TextView
C) HTMLView
D) PageView
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
Which template creates an adaptive, responsive layout for a set of list items and associated detail content ?
A) Master/Detail Flow
B) Navigation Drawer Activ ity
C) Activity with Fragment
D) Fullscreen Activity
A) Master/Detail Flow
B) Navigation Drawer Activ ity
C) Activity with Fragment
D) Fullscreen Activity
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
Responsive design is an approach to designing apps and web ites that provide an optimal viewing experience across as many devices as possible.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
The purpose of the ItemDetailFragment.java file is to display the activity_item_detail.xml layout file if a smartphone is detected.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
What is the Strings table responsible for d isplaying in the app?
A) pixels
B) objects
C) text
D) icons
A) pixels
B) objects
C) text
D) icons
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
Android Studio has responsive design templates, which allow you to build the app once, but display it on multiple devices.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
Which of the followi ng is an approach to designing apps and websites that provide an optimal viewing experience across as many devices as possible ?
A) Single pane design
B) Application templates
C) Responsive design
D) Multipane apps
A) Single pane design
B) Application templates
C) Responsive design
D) Multipane apps
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
What is each row wit hin a TableLayout associated with?
A) TableColumn instance
B) TableRow insta nce
C) Row view
D) Column view
A) TableColumn instance
B) TableRow insta nce
C) Row view
D) Column view
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
The purpose of the ItemDetailActivity.java class is to display the activity_item_detail.xml layout file if which of the foll owing devices is detected ?
A) a hybrid
B) a tablet or a smartphone
C) a tablet
D) a smartphone
A) a hybrid
B) a tablet or a smartphone
C) a tablet
D) a smartphone
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
Instead of creating apps for multiple sizes of Android devices, apps and web pages should be developed once for a wide range of displays.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
The Android platform provides a flexible way to simplify layout and navigation using built-in Android templates.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
The purpose of the DummyContent.java file is to provide sample code you customize to suit your specific app content.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
Wh en using the Master/Detail Flow template on a table t, which item(s) appears in a pane along the left ed ge of the screen?
A) Master
B) All
C) List
D) Detail
A) Master
B) All
C) List
D) Detail
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
Use single-pane layouts to reduce the width of UI elements and padding to adjust for a stretched-out look.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
Which of the following does the Android Manifest file NOT provide information about?
A) Theme
B) Activities
C) Strings
D) Permissions
A) Theme
B) Activities
C) Strings
D) Permissions
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
When designing an app, w h a t do developers use to divide components of the user interface to make it easier to reuse the components ?
A) fragments
B) intents
C) grids
D) tabs
A) fragments
B) intents
C) grids
D) tabs
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
How is the DummyContent.java file displayed on a tablet by default?
A) table layout
B) single-pane layout
C) relative layout
D) two-pane layout
A) table layout
B) single-pane layout
C) relative layout
D) two-pane layout
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
Which st atement compares the string named gender to "Male"?
A) if(gender == "Male")
B) if(gender.iseq ual ("Male"))
C) if(gender.equals("Male"))
D) if( gender = "Male")
A) if(gender == "Male")
B) if(gender.iseq ual ("Male"))
C) if(gender.equals("Male"))
D) if( gender = "Male")
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
In w hich file is the permission to connect to the Internet set?
A) AndroidManifest.xml
B) Content.xml
C) Control.xml
D) View.xml
A) AndroidManifest.xml
B) Content.xml
C) Control.xml
D) View.xml
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
W hat are used to initialize i nstance variable s of an object?
A) Classes
B) Constructors
C) Functions
D) Initializers
A) Classes
B) Constructors
C) Functions
D) Initializers
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
The code to assign the id of an image called imgBike in the XML layout file is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
____________________ layouts can be used to show different topics within a single window in an intuitive interface.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
Which of the fol lowing compares two objects to determine whether they are exactly the same object ?
A) =
B) .compare
C) ==
D) .equals
A) =
B) .compare
C) ==
D) .equals
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
Which object allows you to place a Web Browser or simply display some online content within your Activity ?
A) ActivityView
B) WebView
C) ObjectView
D) ContentView
A) ActivityView
B) WebView
C) ObjectView
D) ContentView
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
Which of the following terms best desc ri bes a restriction limiting access to a part of the code or to data on the device ?
A) intent
B) request
C) permission
D) context
A) intent
B) request
C) permission
D) context
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
The code to allow permission to access the Internet is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
A(n) _______________ object is a View widget that displays web pages.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
Android introduced fragments in Android 3.2, API level 13, primarily to support more dynamic and flexible user interface design on which feature?
A) smartphone screens
B) large screens
C) small screens
D) touch screens
A) smartphone screens
B) large screens
C) small screens
D) touch screens
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
To determine if two String objects match exactly, which method should y ou use?
A) .equals method
B) .compare method
C) .checkValue method
D) .table method
A) .equals method
B) .compare method
C) .checkValue method
D) .table method
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
Which of the following class es provide sample content to display in the user interface of the template ?
A) DummyContent.java
B) TabOne.java
C) Content.java
D) SampleContent.java
A) DummyContent.java
B) TabOne.java
C) Content.java
D) SampleContent.java
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
Which statement properly uses the inflate method?
A) inflater.inflate(R.layout.photos, container);
B) inflater.inflate(container, R.layout.photos, false);
C) inflater.inflate(R.layout.photos, container, false);
D) inflater.inflate(container, R.layout.photos);
A) inflater.inflate(R.layout.photos, container);
B) inflater.inflate(container, R.layout.photos, false);
C) inflater.inflate(R.layout.photos, container, false);
D) inflater.inflate(container, R.layout.photos);
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
What does t he first argument in the inflate method display ?
A) layout parameters
B) URI
C) XML layout
D) SDK
A) layout parameters
B) URI
C) XML layout
D) SDK
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
____________________ design is an approach to designing apps and websites that provide an optimal viewing experience across as many devices as possible.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
Which of the following terms best defines a piece of an application's user interface or behavior that can be placed in an Activity ?
A) fragment
B) adapter
C) control
D) permission
A) fragment
B) adapter
C) control
D) permission
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
Use the .equals method to determine if two ____________________ objects match exactly.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
A(n) ____________________ protects critical data and code that could be misused to cause issues for your app and others.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
____________________ are used to initialize the instance variables of an object.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
The third argument of the inflate method is a(n) ____________________ type with the value ____________________ .
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
The code to place an image, 60 scale-independent pixels, from the bottom edge is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
The code to see if mItem.id is equal to "3" is ________________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
The second argument of the inflate method applies the ____________________ to the container.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
The purpose of the _________________________ class is to display the activity_item_list.xml layout file.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
When a smartphone or a tablet is detected, the _______________________ layout file displays the detail pane using the onCreateView( ) method.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
A(n) __________________ is a p iec e of an application's user interface or behavior that can be placed in an Activity.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck