Deck 4: Explore Icons and 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
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/50
Play
Full screen (f)
Deck 4: Explore Icons and Decision Making Controls
1
Launcher icons form the first impression of your app on prospective users in Google Play.
True
2
Which of the following types of controls always operates independently, therefore selecting it will never deselect any other controls?
A) CheckBox control
B) EachButton control
C) SingleSelect control
D) TextView control
A) CheckBox control
B) EachButton control
C) SingleSelect control
D) TextView control
A
3
Which of the following types of graphics are best to use for icon design because the images can be scaled without loss of detail?
A) Composite graphics
B) Raster graphics
C) Scanned graphics
D) Vector-based graphics
A) Composite graphics
B) Raster graphics
C) Scanned graphics
D) Vector-based graphics
D
4
In what graphics format should launcher icons be saved?
A) . p n g
B) . j p g
C) .tif
D) . G I f
A) . p n g
B) . j p g
C) .tif
D) . G I f
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
Never offer a default selection, as it complicates user input.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
The statement 6 is true.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
RadioButton controls are circular in shape, while CheckBox controls are square.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
What is the icon used to start your app called?
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 50 flashcards in this deck.
Unlock Deck
k this deck
9
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
10
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
11
Which property can center a control horizontally as well as position it at other places on the screen?
A) elastic property
B) gravity property
C) rubber band property
D) stretch property
A) elastic property
B) gravity property
C) rubber band property
D) stretch property
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
Which of the following terms best describes 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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
Whenever possible, you should use the default launcher icon so your app looks as uniform as possible with other apps.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
Java automatically indents statements within an If Else statement to indicate that the statements are within the If Else structure.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
Which term can be used to change 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 50 flashcards in this deck.
Unlock Deck
k this deck
16
When you are comparing one string to another string, use the == operator.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
In what are RadioButton controls usually used together, which causes 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 50 flashcards in this deck.
Unlock Deck
k this deck
18
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
19
The icon on the home screen that represents your application is referred to as which of the following?
A) home icon
B) logo icon
C) launcher icon
D) app icon
A) home icon
B) logo icon
C) launcher icon
D) app icon
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
Decision-making statements in Java allow you to test which of the following?
A) conditions
B) data types
C) imperatives
D) syntax
A) conditions
B) data types
C) imperatives
D) syntax
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
What is used to compare Strings in Java for equality?
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 50 flashcards in this deck.
Unlock Deck
k this deck
22
What method call is used to display a toast notification?
A) Toast. alert
B) Toast. makeText
C) Toast. showText
D) Toast. toastNotify
A) Toast. alert
B) Toast. makeText
C) Toast. showText
D) Toast. toastNotify
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
What is a common mistake made when forming a conditional statement?
A) using the assignment operator instead of the comparison operator
B) using the compareTo method instead of the assignment operator
C) using the greater than operator instead of the assignment operator
D) using the less than operator instead of the comparison operator
A) using the assignment operator instead of the comparison operator
B) using the compareTo method instead of the assignment operator
C) using the greater than operator instead of the assignment operator
D) using the less than operator instead of the comparison operator
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
A custom launcher icon image can be placed in the res/mipmap folder by adding a(n) _______________________ using a built-in wizard in Android Studio.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
When does a toast notification disappear from the screen?
A) It always fades after one second.
B) It automatically fades after a set amount of time.
C) It never goes away.
D) It requires a button push to fade.
A) It always fades after one second.
B) It automatically fades after a set amount of time.
C) It never goes away.
D) It requires a button push to fade.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
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
27
You can 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
28
When an If statement is placed inside another If statement, what is the inner If statement 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 50 flashcards in this deck.
Unlock Deck
k this deck
29
To compare the alphabetical order of two strings, what should be used?
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 50 flashcards in this deck.
Unlock Deck
k this deck
30
What is the method used to test a checked property on a radio button?
A) getChecked() method
B) isChecked() method
C) checked() method
D) setChecked() method
A) getChecked() method
B) isChecked() method
C) checked() method
D) setChecked() method
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
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
32
What does a toast notification use 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 50 flashcards in this deck.
Unlock Deck
k this deck
33
____________________ 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
34
What tool does Java provide 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 50 flashcards in this deck.
Unlock Deck
k this deck
35
When more than one condition is included in an If statement, what is the condition called?
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 50 flashcards in this deck.
Unlock Deck
k this deck
36
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, which statement would you use?
A) If statement
B) If Else statement
C) While statement
D) Do statement
A) If statement
B) If Else statement
C) While statement
D) Do statement
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
What is the resulting value of the expression "sears".compareTo("chicago") ?
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 50 flashcards in this deck.
Unlock Deck
k this deck
38
Which of the following is the correct syntax for displaying a toast message for a long length of time?
A) Toast.makeText(MainActivity.this, Toast.LENGTH_LONG.show("A toast message");
B) Toast.makeText(MainActivity.this, "A toast message", Toast.LENGTH_LONG).show( );
C) Toast.LENGTH_LONG(MainActivity.this, "A toast message", Toast.makeText).show( );
D) Toast.show(MainActivity.this, "A toast message", Toast.makeTest).LENGTH_LONG;
A) Toast.makeText(MainActivity.this, Toast.LENGTH_LONG.show("A toast message");
B) Toast.makeText(MainActivity.this, "A toast message", Toast.LENGTH_LONG).show( );
C) Toast.LENGTH_LONG(MainActivity.this, "A toast message", Toast.makeText).show( );
D) Toast.show(MainActivity.this, "A toast message", Toast.makeTest).LENGTH_LONG;
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
Which symbol is the operator for "equal to?"
A) =
B) ==
C) !=
D) -
A) =
B) ==
C) !=
D) -
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
Which term defines a fundamental control structure used in computer programming?
A) choice point
B) code block
C) decision structure
D) referential structure
A) choice point
B) code block
C) decision structure
D) referential structure
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
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
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 hexadecimal color code for red is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
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
45
To create a toast message of long duration, you use the _____________________ keyword in the makeText method.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
Let the String variable city be set to the value "Boston" . The truth value of the expression (city.compareTo("Anaheim") > 0) is ____________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
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
48
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
49
The process of verifying that a value entered by a user is acceptable for what the program is expecting is called ________________.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
Instead of eyeballing the controls on the user interface for alignment, you can use the ____________________ property to create the desired spacing around controls.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck