Deck 3: Engage Android User Input, Variables, and Operations

ملء الشاشة (f)
exit full mode
سؤال
By requesting input, an app can guarantee that every user experience is the same every time the app is used.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
A physical keyboard on a smartphone is also called a ____.

A) button board
C) strict keyboard
B) hard keyboard
D) tactile keyboard
سؤال
Plus (+) and minus (-) have the highest order of precedence in the order of operations.
سؤال
An application with an appealing graphical design is preferred over applications that are textual in nature.
سؤال
Heavy use of text and low use of graphics engages the user.
سؤال
The set of resources available to an app is referenced by ____.

A) res
C) S
B) R
D) V
سؤال
The String type is a class, not a primitive data type.
سؤال
Good programming practice dictates that variable names should reflect the values placed in the variables.
سؤال
The on-screen keyboard is also called a(n) ____.

A) electric keyboard
C) soft keyboard
B) screenboard
D) touch keyboard
سؤال
The ____ TextView can suggest completion of a word after the first few letters.

A) AutoComplete
C) Person Name
B) Date
D) Plain Text
سؤال
A(n) ____ is used in a Java program to contain data that changes during the execution of the program.

A) constant
C) literal
B) item
D) variable
سؤال
A(n) ____ Text Field only allows numbers to be entered into it.

A) E-mail
C) Number
B) Date
D) Password
سؤال
Java variables are case sensitive.
سؤال
You can use int and long data types to store decimal values.
سؤال
A(n) ____ control is a widget similar to a drop-down list for selecting a single item from a fixed listing.

A) EditText
C) Spinner
B) Message
D) TextView
سؤال
A(n) ____ is a short description of a field that is visible as light-colored text.

A) abstract
C) hint
B) clue
D) synopsis
سؤال
A ____ variable can only be initialized once.

A) final
C) static
B) local
D) temporary
سؤال
A hint is also known as a(n) ____.

A) clue
C) tutorial
B) label
D) watermark
سؤال
The only data type that has a default value is boolean.
سؤال
It is possible to code a predefined system theme or a customized theme of your own design.
سؤال
____ is the Java class that can be used to format numbers for display.

A) DecimalFormat
C) NumericFormat
B) DollarFormat
D) StringFormat
سؤال
The ____________________ Text Field allows for input that only appears as stars, thus hiding the actual content.
سؤال
The code necessary to display the light holographic theme is _______________________________________________________.
سؤال
Due to user error, it is often easier to input from a finite set of options using a(n) ____.

A) Button
C) Number TextView
B) EditText
D) Spinner
سؤال
To assign a phrase as the value of a String variable, place the text in ____.

A) brackets
C) parentheses
B) double quote marks
D) single quote marks
سؤال
To display text in a TextView control, use the method ____.

A) assignText()
C) setText()
B) displayText()
D) showText()
سؤال
You have a variable that will only assume values between 0 and 100. The most compact primitive type to use is a(n) ____.

A) byte
C) int
B) float
D) long
سؤال
The method to get the selected item from a Spinner control is ____.

A) getItem()
C) getText()
B) getSelectedItem()
D) selectedItem()
سؤال
After declaring a variable you must ____ before you use it.

A) assign it a value
C) display it
B) check its data type
D) store it in the manifest
سؤال
The operator with the highest order of precedence is ____.

A) ()
C) %
B) ++
D) -
سؤال
A(n) ____ can be used to display instructions at the top of Spinner controls.

A) abstract
C) lead-in
B) hint
D) prompt
سؤال
A String can be a single ____.

A) character
C) space
B) digit
D) truth value
سؤال
There are ____ primitive data types in Java.

A) three
C) eight
B) five
D) twelve
سؤال
____________________ is a popular Android app that provides a voice-recognition system for user input.
سؤال
____ is not a numeric primitive data type.

A) byte
C) int
B) char
D) short
سؤال
A file called ____ is a default file that contains commonly used strings for an application.

A) consts.xml
C) strings.xml
B) data.xml
D) values.xml
سؤال
Variables that have not been used have a ____.

A) curly underline
C) red squiggly line
B) green dashed line
D) yellow highlight
سؤال
A(n) ____________________ is a style applied to an Activity or an entire application.
سؤال
A(n) ____ is a series of alphanumeric characters that can include spaces.

A) constant
C) string
B) interface
D) variable
سؤال
____________________ are multitouch interactions such as pressing two fingers to pan, rotate, or zoom.
سؤال
A Spinner control displays a prompt with a list of strings, called ____________________, in a pop-up window.
سؤال
The Parse type to extract a double from a String is ____________________.
سؤال
The code to decrement an integer variable called counter by 1 is ____________________.
سؤال
When a plus sign is placed between two strings, it ____________________ the two strings to create a new string value.
سؤال
____________________ is the use of the String table to change text based on the user's preferred language.
سؤال
The code to format a decimal format as U.S. currency is as follows: ____________________________________________________________.
سؤال
The code necessary to read a number out of an EditText control called txtNumberOfOranges and convert it to an integer, assigned to the variable numOranges, is ____________________.
سؤال
The property that connects a Spinner control to a list of items is called ____________________.
سؤال
The code needed to declare a variable called ticketPrice and initialize it to the value $45.95 is ____________________.
سؤال
The code necessary to find an EditText by the name of txtTickets is ____________________.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 3: Engage Android User Input, Variables, and Operations
1
By requesting input, an app can guarantee that every user experience is the same every time the app is used.
False
2
A physical keyboard on a smartphone is also called a ____.

A) button board
C) strict keyboard
B) hard keyboard
D) tactile keyboard
B
3
Plus (+) and minus (-) have the highest order of precedence in the order of operations.
False
4
An application with an appealing graphical design is preferred over applications that are textual in nature.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
Heavy use of text and low use of graphics engages the user.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
The set of resources available to an app is referenced by ____.

A) res
C) S
B) R
D) V
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
The String type is a class, not a primitive data type.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
Good programming practice dictates that variable names should reflect the values placed in the variables.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
The on-screen keyboard is also called a(n) ____.

A) electric keyboard
C) soft keyboard
B) screenboard
D) touch keyboard
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
The ____ TextView can suggest completion of a word after the first few letters.

A) AutoComplete
C) Person Name
B) Date
D) Plain Text
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
A(n) ____ is used in a Java program to contain data that changes during the execution of the program.

A) constant
C) literal
B) item
D) variable
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
A(n) ____ Text Field only allows numbers to be entered into it.

A) E-mail
C) Number
B) Date
D) Password
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
Java variables are case sensitive.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
You can use int and long data types to store decimal values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
A(n) ____ control is a widget similar to a drop-down list for selecting a single item from a fixed listing.

A) EditText
C) Spinner
B) Message
D) TextView
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
A(n) ____ is a short description of a field that is visible as light-colored text.

A) abstract
C) hint
B) clue
D) synopsis
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
A ____ variable can only be initialized once.

A) final
C) static
B) local
D) temporary
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
A hint is also known as a(n) ____.

A) clue
C) tutorial
B) label
D) watermark
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
The only data type that has a default value is boolean.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
It is possible to code a predefined system theme or a customized theme of your own design.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
____ is the Java class that can be used to format numbers for display.

A) DecimalFormat
C) NumericFormat
B) DollarFormat
D) StringFormat
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
The ____________________ Text Field allows for input that only appears as stars, thus hiding the actual content.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
The code necessary to display the light holographic theme is _______________________________________________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
Due to user error, it is often easier to input from a finite set of options using a(n) ____.

A) Button
C) Number TextView
B) EditText
D) Spinner
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
To assign a phrase as the value of a String variable, place the text in ____.

A) brackets
C) parentheses
B) double quote marks
D) single quote marks
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
To display text in a TextView control, use the method ____.

A) assignText()
C) setText()
B) displayText()
D) showText()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
You have a variable that will only assume values between 0 and 100. The most compact primitive type to use is a(n) ____.

A) byte
C) int
B) float
D) long
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
The method to get the selected item from a Spinner control is ____.

A) getItem()
C) getText()
B) getSelectedItem()
D) selectedItem()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
After declaring a variable you must ____ before you use it.

A) assign it a value
C) display it
B) check its data type
D) store it in the manifest
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
The operator with the highest order of precedence is ____.

A) ()
C) %
B) ++
D) -
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
A(n) ____ can be used to display instructions at the top of Spinner controls.

A) abstract
C) lead-in
B) hint
D) prompt
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
A String can be a single ____.

A) character
C) space
B) digit
D) truth value
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
There are ____ primitive data types in Java.

A) three
C) eight
B) five
D) twelve
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
____________________ is a popular Android app that provides a voice-recognition system for user input.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
____ is not a numeric primitive data type.

A) byte
C) int
B) char
D) short
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
A file called ____ is a default file that contains commonly used strings for an application.

A) consts.xml
C) strings.xml
B) data.xml
D) values.xml
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
Variables that have not been used have a ____.

A) curly underline
C) red squiggly line
B) green dashed line
D) yellow highlight
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
A(n) ____________________ is a style applied to an Activity or an entire application.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
A(n) ____ is a series of alphanumeric characters that can include spaces.

A) constant
C) string
B) interface
D) variable
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
____________________ are multitouch interactions such as pressing two fingers to pan, rotate, or zoom.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
A Spinner control displays a prompt with a list of strings, called ____________________, in a pop-up window.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
The Parse type to extract a double from a String is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
The code to decrement an integer variable called counter by 1 is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
When a plus sign is placed between two strings, it ____________________ the two strings to create a new string value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
____________________ is the use of the String table to change text based on the user's preferred language.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
The code to format a decimal format as U.S. currency is as follows: ____________________________________________________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
The code necessary to read a number out of an EditText control called txtNumberOfOranges and convert it to an integer, assigned to the variable numOranges, is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
The property that connects a Spinner control to a list of items is called ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
The code needed to declare a variable called ticketPrice and initialize it to the value $45.95 is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
The code necessary to find an EditText by the name of txtTickets is ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.