Deck 9: Customize Navigating With Tabs on a Tablet App

Full screen (f)
exit full mode
Question
On tablets, single-pane layouts automatically correct for awkward whitespace and excessive line lengths. 
Use Space or
up arrow
down arrow
to flip the card.
Question
Multipane layouts provide a way to show different topics within a single window in an intuitive interface.
Question
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)
Question
Which of the following allows you to show different topics within a single window ?

A) FlipScreens
B) MultiWindows
C) TabbedPanes
D) Multipane layouts
Question
Application templates are used to create basic Android applications that will work on only specific screen sizes.
Question
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
Question
What type of object should you use to display Web pages?

A) WebView
B) TextView
C) HTMLView
D) PageView
Question
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
Question
Responsive design is an approach to designing apps and web ites that provide an optimal viewing experience across as many devices as possible.
Question
The purpose of the ItemDetailFragment.java file is to display the activity_item_detail.xml layout file if a smartphone is detected.
Question
What is the Strings table responsible for d isplaying in the app?

A) pixels
B) objects
C) text
D) icons
Question
Android Studio has responsive design templates, which allow you to build the app once, but display it on multiple devices. 
Question
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
Question
What is each row wit hin a TableLayout associated with?

A) TableColumn instance
B) TableRow insta nce
C) Row view
D) Column view
Question
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
Question
Instead of creating apps for multiple sizes of Android devices, apps and web pages should be developed once for a wide range of displays.
Question
The Android platform provides a flexible way to simplify layout and navigation using built-in Android templates.
Question
The purpose of the DummyContent.java file is to provide sample code you customize to suit your specific app content.
Question
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
Question
Use single-pane layouts to reduce the width of UI elements and padding to adjust for a stretched-out look. 
Question
Which of the following does the Android Manifest file NOT provide information about?

A) Theme
B) Activities
C) Strings
D) Permissions
Question
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
Question
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
Question
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")
Question
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
Question
W hat are used to initialize i nstance variable s of an object?

A) Classes
B) Constructors
C) Functions
D) Initializers
Question
The code to assign the id of an image called imgBike in the XML layout file is ____________________.
Question
 ____________________ layouts can be used to show different topics within a single window in an intuitive interface.
Question
Which of the fol lowing compares two objects to determine whether they are exactly the same object ?

A) =
B) .compare
C) ==
D) .equals
Question
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
Question
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
Question
The code to allow permission to access the Internet is ____________________.
Question
A(n) _______________ object is a View widget that displays web pages.
Question
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
Question
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
Question
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
Question
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);
Question
What does t he first argument in the inflate method display ?

A) layout parameters
B) URI
C) XML layout
D) SDK
Question
____________________ design is an approach to designing apps and websites that provide an optimal viewing experience across as many devices as possible.
Question
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
Question
Use the .equals method to determine if two ____________________ objects match exactly.
Question
A(n) ____________________ protects critical data and code that could be misused to cause issues for your app and others.
Question
____________________ are used to initialize the instance variables of an object.
Question
The third argument of the inflate method is a(n)  ____________________ type with the value ____________________ .
Question
The code to place an image, 60 scale-independent pixels, from the bottom edge is ____________________.
Question
The code to see if mItem.id is equal to "3" is ________________________.
Question
The second argument of the inflate method applies the ____________________ to the container. 
Question
The purpose of the _________________________ class is to display the activity_item_list.xml layout file.
Question
When a smartphone or a tablet is detected, the _______________________ layout file displays the detail pane using the onCreateView( ) method.
Question
A(n) __________________ is a p iec e of an application's user interface or behavior that can be placed in an Activity.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
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)
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
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
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
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
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
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
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
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
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
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
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
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
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")
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
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
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
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
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
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
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
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
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);
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
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
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
locked card icon
Unlock Deck
Unlock for access to all 50 flashcards in this deck.