Deck 2: Simplify the Android User Interface

Full screen (f)
exit full mode
Question
A(n) ____ organizes layout components in relation to each other.

A) Extensible layout
C) Linear layout
B) Graphical layout
D) Relative layout
Use Space or
up arrow
down arrow
to flip the card.
Question
An object is a specific, concrete instance of a class.
Question
The ____ control can display an icon or a graphic such as a picture file or shape.

A) Display
C) ImageView
B) JPG
D) Picture
Question
It is a Java standard to use camel-casing for class names, which begins the name with an uppercase letter, omitting spaces, and using uppercase letters to emphasize the start of a new word.
Question
To center a control, you can drag the control to the center of the emulator window until a ____ is displayed.

A) blue solid vertical line
C) green solid vertical line
B) green dashed vertical line
D) red dashed horizontal line
Question
The Text property changes font of the text written within a control.
Question
The Minimum SDK text box contains the ____.

A) API number
C) serial number
B) SDK number
D) UPC code
Question
Designing a program is analogous to ____.

A) constructing a building
C) painting with watercolor
B) doing laundry
D) performing an experiment
Question
The Android SDK includes two types of button controls: Button and ToggleButton.
Question
The Android Manifest is not required, but it does make an application run faster.
Question
When you import a package, you make all of the classes under that package available.
Question
A ____ organizes layout components in a vertical column or horizontal row.

A) Bag layout
C) Linear layout
B) Graphical
D) Relative layout
Question
Resources for medium-density screens are placed in the ____ folder.

A) drawable-hdpi
C) drawable-mdpi
B) drawable-ldpi
D) drawable-medium
Question
The most popular free Android app is ____.

A) Facebook
C) Pandora
B) Google Maps
D) YouTube
Question
The unit sp stands for ____.

A) scaled-dependent pixels
C) size preference
B) scaled-independent pixels
D) standard pixel
Question
Before code can be written for an Android app, the user interface must first be designed.
Question
The Activity component is the point at which the application makes contact with the users.
Question
Comments in Java start with pound (#) signs.
Question
____ is not a valid measurement unit for text display.

A) dp
C) px
B) nm
D) sp
Question
There are three phases to the program development lifecycle.
Question
The abbreviation for "density-independent pixels" is ____________________.
Question
____ are the components of a program that perform the tasks required in the program.

A) Activities
C) Processing objects
B) Event handlers
D) Task items
Question
Using a(n) ____________________ layout, components can be placed to the left of, to the right of, above, or below another component.
Question
In Java, a tap of the touch screen is known as a ____.

A) click event
C) tap event
B) display action
D) touch event
Question
Errors in program code are indicated by ____.

A) blue solid lines
C) green curly lines
B) bolded text
D) red curly lines
Question
The ____ method creates an intent to start another Activity.

A) beginActivity
C) prepareActivity
B) createActivity
D) startActivity
Question
A(n) ____ is a part of a program coded to respond to a specific event.

A) action responder
C) response method
B) event handler
D) triggered method
Question
When you ____ a class, you define one particular variation of the object within a class.

A) concretize
C) make
B) instantiate
D) stabilize
Question
If an application has more than one Activity, the Android Manifest file must have a(n) ____ to navigate among the multiple activities.

A) activity manager
C) placeholder
B) intent
D) pointer
Question
The ____ method displays the content of a specific screen.

A) drawContents
C) makeDisplay
B) getDisplay
D) setContentView
Question
A(n) ____________________ layout organizes components in a vertical column or a horizontal row.
Question
The ____________________ property sets the size of text in a control.
Question
The first phase of program development is to ____.

A) code the program
C) gather program requirements
B) design the user interface
D) test the program
Question
A(n) ____ is a set of Java statements that can be included inside a Java class.

A) activity
C) intent
B) block
D) method
Question
The entry point of an Activity is the ____ method.

A) begin
C) onCreate
B) onEntry
D) prepare
Question
The ____ statement is a way of making more Java functions available to your specific program.

A) assignment
C) include
B) import
D) reference
Question
A(n) ____ is a piece of code that actually serves as a placeholder to declare itself.

A) control
C) event handler
B) inclusion
D) stub
Question
By default, the Linear layout organizes each new control directly ____________________ the previous control.
Question
A(n) ____ is simply a blueprint or a template for creating objects by defining its properties.

A) app
C) control
B) class
D) widget
Question
____ wait for user interaction.

A) Action subscribers
C) Polling objects
B) Event listeners
D) Targeted components
Question
All Palette controls can use a property called ____________________ to provide a buffer from the top of the screen, to assist exact layout design.
Question
The term ____________________ in the examples refers to the current Activity.
Question
High-density images should be placed in the ____________________ folder under the res folder.
Question
You use the ____________________ property to name a control.
Question
Any intent to start a new Activity requires a(n) ____________________ and the name of the Activity being opened.
Question
The ____________________ method moves the Activity it is called with to the top of the Activity stack.
Question
To make a one-line comment in Java, use ____________________.
Question
You can construct Activities using ____________________ layout files and a Java class.
Question
____________________ is the prefix that typically represents a Button in the code.
Question
The ____________________ method creates an intent to start another 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 2: Simplify the Android User Interface
1
A(n) ____ organizes layout components in relation to each other.

A) Extensible layout
C) Linear layout
B) Graphical layout
D) Relative layout
D
2
An object is a specific, concrete instance of a class.
True
3
The ____ control can display an icon or a graphic such as a picture file or shape.

A) Display
C) ImageView
B) JPG
D) Picture
C
4
It is a Java standard to use camel-casing for class names, which begins the name with an uppercase letter, omitting spaces, and using uppercase letters to emphasize the start of a new word.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
To center a control, you can drag the control to the center of the emulator window until a ____ is displayed.

A) blue solid vertical line
C) green solid vertical line
B) green dashed vertical line
D) red dashed horizontal line
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
The Text property changes font of the text written within a control.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
The Minimum SDK text box contains the ____.

A) API number
C) serial number
B) SDK number
D) UPC code
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
Designing a program is analogous to ____.

A) constructing a building
C) painting with watercolor
B) doing laundry
D) performing an experiment
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
The Android SDK includes two types of button controls: Button and ToggleButton.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
The Android Manifest is not required, but it does make an application run faster.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
When you import a package, you make all of the classes under that package available.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
A ____ organizes layout components in a vertical column or horizontal row.

A) Bag layout
C) Linear layout
B) Graphical
D) Relative layout
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
Resources for medium-density screens are placed in the ____ folder.

A) drawable-hdpi
C) drawable-mdpi
B) drawable-ldpi
D) drawable-medium
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
The most popular free Android app is ____.

A) Facebook
C) Pandora
B) Google Maps
D) YouTube
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
The unit sp stands for ____.

A) scaled-dependent pixels
C) size preference
B) scaled-independent pixels
D) standard pixel
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
Before code can be written for an Android app, the user interface must first be designed.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
The Activity component is the point at which the application makes contact with the users.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
Comments in Java start with pound (#) signs.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
____ is not a valid measurement unit for text display.

A) dp
C) px
B) nm
D) sp
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
There are three phases to the program development lifecycle.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
The abbreviation for "density-independent pixels" is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
____ are the components of a program that perform the tasks required in the program.

A) Activities
C) Processing objects
B) Event handlers
D) Task items
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
Using a(n) ____________________ layout, components can be placed to the left of, to the right of, above, or below another component.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
In Java, a tap of the touch screen is known as a ____.

A) click event
C) tap event
B) display action
D) touch event
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
Errors in program code are indicated by ____.

A) blue solid lines
C) green curly lines
B) bolded text
D) red curly lines
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
The ____ method creates an intent to start another Activity.

A) beginActivity
C) prepareActivity
B) createActivity
D) startActivity
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
A(n) ____ is a part of a program coded to respond to a specific event.

A) action responder
C) response method
B) event handler
D) triggered method
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
When you ____ a class, you define one particular variation of the object within a class.

A) concretize
C) make
B) instantiate
D) stabilize
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
If an application has more than one Activity, the Android Manifest file must have a(n) ____ to navigate among the multiple activities.

A) activity manager
C) placeholder
B) intent
D) pointer
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
The ____ method displays the content of a specific screen.

A) drawContents
C) makeDisplay
B) getDisplay
D) setContentView
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
A(n) ____________________ layout organizes components in a vertical column or a horizontal row.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
The ____________________ property sets the size of text in a control.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
The first phase of program development is to ____.

A) code the program
C) gather program requirements
B) design the user interface
D) test the program
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
A(n) ____ is a set of Java statements that can be included inside a Java class.

A) activity
C) intent
B) block
D) method
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
The entry point of an Activity is the ____ method.

A) begin
C) onCreate
B) onEntry
D) prepare
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
The ____ statement is a way of making more Java functions available to your specific program.

A) assignment
C) include
B) import
D) reference
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
A(n) ____ is a piece of code that actually serves as a placeholder to declare itself.

A) control
C) event handler
B) inclusion
D) stub
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
By default, the Linear layout organizes each new control directly ____________________ the previous control.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
A(n) ____ is simply a blueprint or a template for creating objects by defining its properties.

A) app
C) control
B) class
D) widget
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
____ wait for user interaction.

A) Action subscribers
C) Polling objects
B) Event listeners
D) Targeted components
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
All Palette controls can use a property called ____________________ to provide a buffer from the top of the screen, to assist exact layout design.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
The term ____________________ in the examples refers to the current Activity.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
High-density images should be placed in the ____________________ folder under the res folder.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
You use the ____________________ property to name a control.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
Any intent to start a new Activity requires a(n) ____________________ and the name of the Activity being opened.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
The ____________________ method moves the Activity it is called with to the top of the Activity stack.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
To make a one-line comment in Java, use ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
You can construct Activities using ____________________ layout files and a Java class.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
____________________ is the prefix that typically represents a Button in the code.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
The ____________________ method creates an intent to start another 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.