Deck 4: Explore Icons Decision Making Controls
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/49
Play
Full screen (f)
Deck 4: Explore Icons Decision Making Controls
1
RadioButton controls are circular in shape, while CheckBox controls are square.
True
2
Each icon used in an app should come in ____ size(s).
A) one
B) two
C) four
D) six
A) one
B) two
C) four
D) six
C
3
A ____ is a triplet of three colors which encodes different colors.
A) controlled color code
B) hexadecimal color code
C) standard color encoding
D) triple-coded color
A) controlled color code
B) hexadecimal color code
C) standard color encoding
D) triple-coded color
B
4
Java automatically indents control structures to make them easy to identify.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
5
The icon used to start your app is called the ____.
A) boot icon
B) launcher icon
C) master icon
D) starter icon
A) boot icon
B) launcher icon
C) master icon
D) starter icon
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
6
RadioButton controls are usually used together in a ____, causing only one RadioButton to be selected at a time.
A) GroupControl
B) MultiButton
C) RadioGroup
D) Selector
A) GroupControl
B) MultiButton
C) RadioGroup
D) Selector
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
7
A toast notification is an easy way to inform the user of a failed data validation.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
8
Never offer a default selection, as it complicates user input.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
9
The following condition is valid: (6 || ticketPrice) > (450.45 == "vacation") .
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
10
Decision-making statements in Java allow you to test ____ and perform different operations depending on the results of that test.
A) conditions
B) data integrity
C) security
D) icons
A) conditions
B) data integrity
C) security
D) icons
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
11
A(n) ____ control always operates independently, therefore selecting it will never deselect any other controls.
A) CheckBox
B) EachButton
C) SingleSelect
D) TextView
A) CheckBox
B) EachButton
C) SingleSelect
D) TextView
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
12
Launcher icons form the first impression of your app on prospective users in the Android Market.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
13
The ____ change(s) the spacing around each object in your layout.
A) borders
B) margins
C) cellpadding
D) cellspacing
A) borders
B) margins
C) cellpadding
D) cellspacing
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
14
____ graphics are best to use for icon design because the images can be scaled without loss of detail.
A) Composite
B) Raster
C) Scanned
D) Vector-based
A) Composite
B) Raster
C) Scanned
D) Vector-based
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
15
Logical operators are used to combine smaller logical and relational operators.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
16
A toast notification communicates messages to the user.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
17
The recommended prefix for a launcher icon is ____.
A) ic_launcher
B) ic_start
C) launch_icon
D) start_icon
A) ic_launcher
B) ic_start
C) launch_icon
D) start_icon
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
18
Launcher icons should be intricate and conservative to have a memorable impact.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
19
The ____ property can center a control horizontally as well as position it at other places on the screen.
A) elastic
B) gravity
C) rubber band
D) stretch
A) elastic
B) gravity
C) rubber band
D) stretch
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
20
The statement 6<=6 is true.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
21
When more than one condition is tested in an If statement, it is called a(n) ____.
A) compound condition
B) expanded condition
C) linked condition
D) multicondition
A) compound condition
B) expanded condition
C) linked condition
D) multicondition
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
22
The operator for "equal to" is ____.
A) =
B) ==
C) !=
D) <=
A) =
B) ==
C) !=
D) <=
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
23
The resulting value of the expression "sears".compareTo("chicago") is ____.
A) equal to 0
B) greater than 0
C) less than 0
D) unknown
A) equal to 0
B) greater than 0
C) less than 0
D) unknown
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
24
To set an app's launcher icon to an image called myLaunchIcon. P n g , the code to insert into the manifest is ____________________.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
25
The method call to make to display a toast notification is Toast. ____.
A) alert
B) makeText
C) showText
D) toastNotify
A) alert
B) makeText
C) showText
D) toastNotify
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
26
Java provides ____ to compare the relationship between the variables being tested in conditional statements.
A) byte analysis
B) logical operators
C) relational operators
D) static methods
A) byte analysis
B) logical operators
C) relational operators
D) static methods
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
27
A ____ is a fundamental control structure used in computer programming.
A) choice point
B) code block
C) decision structure
D) logic structure
A) choice point
B) code block
C) decision structure
D) logic structure
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
28
The statements that execute when an If statement is true are enclosed in ____ .
A) [ and ]
B) { and }
C) | and |
D) begin and end
A) [ and ]
B) { and }
C) | and |
D) begin and end
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
29
When 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
B) If Else
C) While
D) Switch
A) If
B) If Else
C) While
D) Switch
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
30
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 49 flashcards in this deck.
Unlock Deck
k this deck
31
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
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 49 flashcards in this deck.
Unlock Deck
k this deck
32
To compare the lexicographical order of two strings, use the ____.
A) < operator
B) > operator
C) compareTo method
D) equals method
A) < operator
B) > operator
C) compareTo method
D) equals method
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
33
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 49 flashcards in this deck.
Unlock Deck
k this deck
34
The method to test a checked property is the ____ method.
A) getChecked()
B) isChecked()
C) checked()
D) setChecked()
A) getChecked()
B) isChecked()
C) checked()
D) setChecked()
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
35
Strings in Java are compared for equality by using the ____.
A) = operator
B) == operator
C) compareTo method
D) equals method
A) = operator
B) == operator
C) compareTo method
D) equals method
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
36
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 49 flashcards in this deck.
Unlock Deck
k this deck
37
A toast notification uses ____ to display a message.
A) half of the screen
B) only the amount of space needed
C) one line
D) the whole screen
A) half of the screen
B) only the amount of space needed
C) one line
D) the whole screen
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
38
The most common mistake with an If statement is using the ____ instead of the equals operator.
A) assignment operator
B) compareTo method
C) greater than operator
D) less than operator
A) assignment operator
B) compareTo method
C) greater than operator
D) less than operator
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
39
____________________ controls are used to select and deselect an option.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
40
When an If statement is placed inside another If statement, the inner If statement is considered to be ____.
A) folded
B) internal
C) nested
D) stacked
A) folded
B) internal
C) nested
D) stacked
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
41
The color code for black is ____________________.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
42
The code to display the short toast message "Hi mom" is _________________________________________________________________.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
43
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 49 flashcards in this deck.
Unlock Deck
k this deck
44
The isChecked method makes use of the ____________________ property of the RadioButton or CheckBox control.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
45
Instead of eyeballing 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 49 flashcards in this deck.
Unlock Deck
k this deck
46
A toast message is best used for ____________________ messages.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
47
When two Strings are compared, they are ordered ____________________.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
48
The truth value of the expression !(false && (true || !false) && (!false || !true)) is ____________________.
Unlock Deck
Unlock for access to all 49 flashcards in this deck.
Unlock Deck
k this deck
49
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 49 flashcards in this deck.
Unlock Deck
k this deck