Deck 4: Explore Icons and Decision Making Controls

ملء الشاشة (f)
exit full mode
سؤال
Launcher icons form the first impression of your app on prospective users in Google Play.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
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
سؤال
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
سؤال
In what graphics format should launcher icons be saved?

A) . p n g
B) . j p g
C) .tif
D) . G I f
سؤال
Never offer a default selection, as it complicates user input.
سؤال
The statement 6 is true.
سؤال
RadioButton controls are circular in shape, while CheckBox controls are square.
سؤال
What is the icon used to start your app called?

A) boot icon
B) launcher icon
C) master icon
D) starter icon
سؤال
A toast notification communicates messages to the user.
سؤال
The following condition is valid: (6 || ticketPrice) > (450.45 == "vacation") .
سؤال
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
سؤال
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
سؤال
Whenever possible, you should use the default launcher icon so your app looks as uniform as possible with other apps.
سؤال
Java automatically indents statements within an If Else statement to indicate that the statements are within the If Else structure.
سؤال
Which term can be used to change the spacing around each object in your layout?

A) borders
B) margins
C) cellpadding
D) cellspacing
سؤال
When you are comparing one string to another string, use the == operator.
سؤال
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 toast notification is an easy way to inform the user of a failed data validation.
سؤال
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
سؤال
Decision-making statements in Java allow you to test which of the following?

A) conditions
B) data types
C) imperatives
D) syntax
سؤال
What is used to compare Strings in Java for equality?

A) = operator
B) == operator
C) compareTo method
D) equals method
سؤال
What method call is used to display a toast notification?

A) Toast. alert
B) Toast. makeText
C) Toast. showText
D) Toast. toastNotify
سؤال
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 custom launcher icon image can be placed in the res/mipmap folder by adding a(n) _______________________ using a built-in wizard in Android Studio.
سؤال
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.
سؤال
For a extra high-density screen, the pixel size of an icon should be ____________________ (state as number x number ).
سؤال
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.
سؤال
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
سؤال
To compare the alphabetical order of two strings, what should be used?

A) operator
B) > operator
C) compareTo method
D) equals method
سؤال
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
سؤال
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.
سؤال
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
سؤال
____________________ controls are used to select and deselect an option.
سؤال
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
سؤال
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
سؤال
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
سؤال
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
سؤال
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;
سؤال
Which symbol is the operator for "equal to?"

A) =
B) ==
C) !=
D) -
سؤال
Which term defines a fundamental control structure used in computer programming?

A) choice point
B) code block
C) decision structure
D) referential structure
سؤال
The code to display the short toast message "Hi mom" is _________________________________________________________________.
سؤال
When two Strings are compared, they are ordered ____________________.
سؤال
The hexadecimal color code for red is ____________________.
سؤال
The truth value of the expression !(false && (true || !false) && (!false || !true)) is ____________________.
سؤال
To create a toast message of long duration, you use the _____________________ keyword in the makeText method.
سؤال
Let the String variable city be set to the value "Boston" . The truth value of the expression (city.compareTo("Anaheim") > 0) is ____________________.
سؤال
The condition necessary to test if a variable stockPrice is below 0.30 is ____________________.
سؤال
The isChecked method makes use of the ____________________ property of the RadioButton or CheckBox control.
سؤال
The process of verifying that a value entered by a user is acceptable for what the program is expecting is called ________________.
سؤال
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 Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
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
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
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
Never offer a default selection, as it complicates user input.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
The statement 6 is true.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
RadioButton controls are circular in shape, while CheckBox controls are square.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
A toast notification communicates messages to the user.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
The following condition is valid: (6 || ticketPrice) > (450.45 == "vacation") .
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
Whenever possible, you should use the default launcher icon so your app looks as uniform as possible with other apps.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
Java automatically indents statements within an If Else statement to indicate that the statements are within the If Else structure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
When you are comparing one string to another string, use the == operator.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
A toast notification is an easy way to inform the user of a failed data validation.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
What is used to compare Strings in Java for equality?

A) = operator
B) == operator
C) compareTo method
D) equals method
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
For a extra high-density screen, the pixel size of an icon should be ____________________ (state as number x number ).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
____________________ controls are used to select and deselect an option.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
Which symbol is the operator for "equal to?"

A) =
B) ==
C) !=
D) -
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
The code to display the short toast message "Hi mom" is _________________________________________________________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
When two Strings are compared, they are ordered ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
The hexadecimal color code for red is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
The truth value of the expression !(false && (true || !false) && (!false || !true)) is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
To create a toast message of long duration, you use the _____________________ keyword in the makeText method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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 ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
The condition necessary to test if a variable stockPrice is below 0.30 is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
The isChecked method makes use of the ____________________ property of the RadioButton or CheckBox control.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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 ________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.