Deck 4: Explore Icons and Decision-Making Controls

Full screen (f)
exit full mode
Question
Never offer a default selection, as it complicates user input.
Use Space or
up arrow
down arrow
to flip the card.
Question
RadioButton controls are usually used together in a ____, causing only one RadioButton to be selected at a time.

A) GroupControl
C) RadioGroup
B) MultiButton
D) Selector
Question
RadioButton controls are circular in shape, while CheckBox controls are square.
Question
Java automatically indents control structures to make them easy to identify.
Question
A toast notification is an easy way to inform the user of a failed data validation.
Question
Launcher icons form the first impression of your app on prospective users in the Android Market.
Question
Each icon used in an app should come in ____ size(s).

A) one
C) four
B) two
D) six
Question
A toast notification communicates messages to the user.
Question
Logical operators are used to combine smaller logical and relational operators.
Question
The statement 6<=6 is true.
Question
The ____ property can center a control horizontally as well as position it at other places on the screen.

A) elastic
C) rubber band
B) gravity
D) stretch
Question
A ____ is a triplet of three colors which encodes different colors.

A) controlled color code
C) standard color encoding
B) hexadecimal color code
D) triple-coded color
Question
Launcher icons should be intricate and conservative to have a memorable impact.
Question
The following condition is valid: (6 || ticketPrice) > (450.45 == "vacation").
Question
Decision-making statements in Java allow you to test ____ and perform different operations depending on the results of that test.

A) conditions
C) security
B) data integrity
D) icons
Question
____ graphics are best to use for icon design because the images can be scaled without loss of detail.

A) Composite
C) Scanned
B) Raster
D) Vector-based
Question
The ____ change(s) the spacing around each object in your layout.

A) borders
C) cellpadding
B) margins
D) cellspacing
Question
The icon used to start your app is called the ____.

A) boot icon
C) master icon
B) launcher icon
D) starter icon
Question
A(n) ____ control always operates independently, therefore selecting it will never deselect any other controls.

A) CheckBox
C) SingleSelect
B) EachButton
D) TextView
Question
The recommended prefix for a launcher icon is ____.

A) ic_launcher
C) launch_icon
B) ic_start
D) start_icon
Question
The statements that execute when an if statement is true are enclosed in ____.

A) [ and ]
C) | and |
B) { and }
D) begin and end
Question
A ____ is a fundamental control structure used in computer programming.

A) choice point
C) decision structure
B) code block
D) logic structure
Question
You test for a(n) ____________________ being true or false and change the flow of what happens in a program based on the user's input.
Question
The most common mistake with an if statement is using the ____ instead of the equals operator.

A) assignment operator
C) greater than operator
B) compareTo method
D) less than operator
Question
For a extra high-density screen, the pixel size of an icon should be ____________________ (state as number x number).
Question
Strings in Java are compared for equality by using the ____.

A) = operator
C) compareTo method
B) == operator
D) equals method
Question
To compare the lexicographical order of two strings, use the ____.

A) < operator
C) compareTo method
B) > operator
D) equals method
Question
You must use ____ to compare primitive values of the same type.

A) byte analysis
C) relational operators
B) logical operators
D) static methods
Question
The resulting value of the expression "sears".compareTo("chicago") is ____.

A) equal to 0
C) less than 0
B) greater than 0
D) unknown
Question
The method to test a checked property is the ____ method.

A) getChecked()
C) checked()
B) isChecked()
D) setChecked()
Question
The operator for "equal to" is ____.

A) =
C) !=
B) ==
D) <=
Question
When displayed, a Toast notification uses ____ to display the message.

A) half of the screen
C) one line
B) just enough room
D) the whole screen
Question
To set an app's launcher icon to an image called myLaunchIcon. png, the code to insert into the manifest is ____________________.
Question
____________________ controls are used to select and deselect an option.
Question
When an if statement is inside another if statement, the inner if statement is considered to be ____.

A) folded
C) nested
B) internal
D) stacked
Question
The method call to make to display a toast notification is Toast.____.

A) alert
C) showText
B) makeText
D) toastNotify
Question
A toast notification ____.

A) always fades after one second
B) automatically fades after a set amount of time
C) never goes away
D) requires a button push to fade
Question
When more than one condition is tested in an if statement, it is called a(n) ____.

A) compound condition
C) linked condition
B) expanded condition
D) multicondition
Question
When you publish an app in the Android Market, you must provide an icon of size ____________________ (state as number x number) as the display icon in the Market.
Question
If you have one set of instructions to execute when a condition is true and another set of instructions if the same condition is false, you use a(n) ____ statement.

A) if
C) while
B) if-else
D) switch
Question
Let the String variable a be set to the value "Boston". The value of the expression
a.equals("boston") is ____________________.
Question
When two Strings are compared, they are ordered ____________________.
Question
The isChecked method makes use of the ____________________ property of the RadioButton or CheckBox control.
Question
The process of verifying that a value is not a typo or some other type of mistake is called ____________________.
Question
The color code for black is ____________________.
Question
The truth value of the expression !(false && (true || !false) && (!false || !true)) is ____________________.
Question
Instead of eye-balling the controls on the user interface for alignment, you can use the ____________________ tool to create equal spacing around controls.
Question
A toast message is best used for ____________________ messages.
Question
The code to display the short toast message "Hi mom" is _________________________________________________________________.
Question
The condition necessary to test if a variable stockPrice is below $0.30 is ____________________.
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 4: Explore Icons and Decision-Making Controls
1
Never offer a default selection, as it complicates user input.
False
2
RadioButton controls are usually used together in a ____, causing only one RadioButton to be selected at a time.

A) GroupControl
C) RadioGroup
B) MultiButton
D) Selector
C
3
RadioButton controls are circular in shape, while CheckBox controls are square.
True
4
Java automatically indents control structures to make them easy to identify.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
A toast notification is an easy way to inform the user of a failed data validation.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
Launcher icons form the first impression of your app on prospective users in the Android Market.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
Each icon used in an app should come in ____ size(s).

A) one
C) four
B) two
D) six
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
A toast notification communicates messages to the user.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
Logical operators are used to combine smaller logical and relational operators.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
The statement 6<=6 is true.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
The ____ property can center a control horizontally as well as position it at other places on the screen.

A) elastic
C) rubber band
B) gravity
D) stretch
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
A ____ is a triplet of three colors which encodes different colors.

A) controlled color code
C) standard color encoding
B) hexadecimal color code
D) triple-coded color
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
Launcher icons should be intricate and conservative to have a memorable impact.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
The following condition is valid: (6 || ticketPrice) > (450.45 == "vacation").
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
Decision-making statements in Java allow you to test ____ and perform different operations depending on the results of that test.

A) conditions
C) security
B) data integrity
D) icons
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
____ graphics are best to use for icon design because the images can be scaled without loss of detail.

A) Composite
C) Scanned
B) Raster
D) Vector-based
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
The ____ change(s) the spacing around each object in your layout.

A) borders
C) cellpadding
B) margins
D) cellspacing
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
The icon used to start your app is called the ____.

A) boot icon
C) master icon
B) launcher icon
D) starter icon
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
A(n) ____ control always operates independently, therefore selecting it will never deselect any other controls.

A) CheckBox
C) SingleSelect
B) EachButton
D) TextView
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
The recommended prefix for a launcher icon is ____.

A) ic_launcher
C) launch_icon
B) ic_start
D) start_icon
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
The statements that execute when an if statement is true are enclosed in ____.

A) [ and ]
C) | and |
B) { and }
D) begin and end
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
A ____ is a fundamental control structure used in computer programming.

A) choice point
C) decision structure
B) code block
D) logic structure
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
You test for a(n) ____________________ being true or false and change the flow of what happens in a program based on the user's input.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
The most common mistake with an if statement is using the ____ instead of the equals operator.

A) assignment operator
C) greater than operator
B) compareTo method
D) less than operator
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
For a extra high-density screen, the pixel size of an icon should be ____________________ (state as number x number).
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
Strings in Java are compared for equality by using the ____.

A) = operator
C) compareTo method
B) == operator
D) equals method
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
To compare the lexicographical order of two strings, use the ____.

A) < operator
C) compareTo method
B) > operator
D) equals method
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
You must use ____ to compare primitive values of the same type.

A) byte analysis
C) relational operators
B) logical operators
D) static methods
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
The resulting value of the expression "sears".compareTo("chicago") is ____.

A) equal to 0
C) less than 0
B) greater than 0
D) unknown
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
The method to test a checked property is the ____ method.

A) getChecked()
C) checked()
B) isChecked()
D) setChecked()
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
The operator for "equal to" is ____.

A) =
C) !=
B) ==
D) <=
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
When displayed, a Toast notification uses ____ to display the message.

A) half of the screen
C) one line
B) just enough room
D) the whole screen
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
To set an app's launcher icon to an image called myLaunchIcon. png, the code to insert into the manifest is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
____________________ controls are used to select and deselect an option.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
When an if statement is inside another if statement, the inner if statement is considered to be ____.

A) folded
C) nested
B) internal
D) stacked
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
The method call to make to display a toast notification is Toast.____.

A) alert
C) showText
B) makeText
D) toastNotify
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
A toast notification ____.

A) always fades after one second
B) automatically fades after a set amount of time
C) never goes away
D) requires a button push to fade
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
When more than one condition is tested in an if statement, it is called a(n) ____.

A) compound condition
C) linked condition
B) expanded condition
D) multicondition
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
When you publish an app in the Android Market, you must provide an icon of size ____________________ (state as number x number) as the display icon in the Market.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
If you have one set of instructions to execute when a condition is true and another set of instructions if the same condition is false, you use a(n) ____ statement.

A) if
C) while
B) if-else
D) switch
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
Let the String variable a be set to the value "Boston". The value of the expression
a.equals("boston") is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
When two Strings are compared, they are ordered ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
The isChecked method makes use of the ____________________ property of the RadioButton or CheckBox control.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
The process of verifying that a value is not a typo or some other type of mistake is called ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
The color code for black is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
The truth value of the expression !(false && (true || !false) && (!false || !true)) is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
Instead of eye-balling the controls on the user interface for alignment, you can use the ____________________ tool to create equal spacing around controls.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
A toast message is best used for ____________________ messages.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
The code to display the short toast message "Hi mom" is _________________________________________________________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
The condition necessary to test if a variable stockPrice is below $0.30 is ____________________.
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.