Deck 3: Engage Android User Input, Variables, Operations

ملء الشاشة (f)
exit full mode
سؤال
A physical keyboard on a smartphone is also called a ____.

A) button board
B) hard keyboard
C) strict keyboard
D) tactile keyboard
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Good programming practice dictates that variable names should reflect the values placed in the variables.
سؤال
A(n) ____ is a short description of a field that is visible as light-colored text.

A) abstract
B) clue
C) hint
D) synopsis
سؤال
A hint is also known as a(n) ____.

A) clue
B) label
C) tutorial
D) watermark
سؤال
Java variables are case sensitive.
سؤال
A(n) ____ is used in a Java program to contain data that changes during the execution of the program.

A) constant
B) item
C) literal
D) variable
سؤال
Plus ( + ) and minus ( - ) have the highest order of precedence in the order of operations.
سؤال
A(n) ____ Text Field only allows numbers to be entered into it.

A) E-mail
B) Date
C) Number
D) Password
سؤال
The only data type that has a default value is boolean .
سؤال
A file called ____ is a default file that contains commonly used strings for an application.

A) consts.xml
B) data.xml
C) strings.xml
D) values.xml
سؤال
It is possible to code a predefined system theme or a customized theme of your own design.
سؤال
A(n) ____ control is a widget similar to a drop-down list for selecting a single item from a fixed listing.

A) EditText
B) Message
C) Spinner
D) TextView
سؤال
The String type is a class, not a primitive data type.
سؤال
An application with an appealing graphical design is preferred over applications that are textual in nature.
سؤال
The aim of requesting input from the user is to ensure that every user experience is the same every time the app is used.
سؤال
The on-screen keyboard is also called a(n) ____.

A) electric keyboard
B) screenboard
C) soft keyboard
D) touch keyboard
سؤال
A(n) ____ is a series of alphanumeric characters that can include spaces.

A) constant
B) interface
C) string
D) variable
سؤال
The ____ TextView can suggest completion of a word after the first few letters.

A) AutoComplete
B) Date
C) Person Name
D) Plain Text
سؤال
Heavy use of text and low use of graphics engages the user.
سؤال
You can use int and long data types to store decimal values.
سؤال
____ is the Java class that can be used to format numbers for display.

A) DecimalFormat
B) DollarFormat
C) NumericFormat
D) StringFormat
سؤال
When you select the ____________________ Text Field, Android deactivates the letters on the keyboard. 
سؤال
The method to get the selected item from a Spinner control is ____.

A) getItem()
B) getSelectedItem()
C) getText()
D) selectedItem()
سؤال
Due to user error, it is often easier to input from a finite set of options using a(n) ____.

A) Button
B) EditText
C) Number TextView
D) Spinner
سؤال
A(n) ____________________ is a style applied to an Activity or an entire application.
سؤال
A String can be a single ____ .

A) character
B) digit
C) space
D) truth value
سؤال
The operator with the highest order of precedence is ____.

A) ()
B) ++
C) %
D) -
سؤال
Variables that have not been used in a program have a ____.

A) curly underline
B) green dashed line
C) red squiggly line
D) yellow highlight
سؤال
Which data type is not a numeric primitive?

A) byte
B) char
C) int
D) short
سؤال
To display text in a TextView control, use the method ____.

A) assignText()
B) displayText()
C) setText()
D) showText()
سؤال
____________________ are multitouch interactions such as pressing two fingers to pan, rotate, or zoom.
سؤال
A(n) ____ can be used to display instructions at the top of Spinner controls.

A) abstract
B) hint
C) lead-in
D) prompt
سؤال
To assign a phrase as the value of a String variable, place the text in ____.

A) brackets
B) double quotation marks
C) parentheses
D) single quotation marks
سؤال
The set of resources available to an app is referenced by ____.

A) res
B) R
C) S
D) V
سؤال
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
B) float
C) int
D) long
سؤال
A ____ variable can only be initialized once.

A) final
B) local
C) static
D) temporary
سؤال
Android loads text resources from the project's ____________________ table.
سؤال
There are ____ primitive data types in Java.

A) three
B) five
C) eight
D) twelve
سؤال
After declaring a variable you must ____ before you use it.

A) assign it a value
B) check its data type
C) display it
D) store it in the manifest
سؤال
The code necessary to display the light holographic theme is as follows: _______________________________________________________.
سؤال
The Parse type to extract a double from a String is ____________________.
سؤال
The code to format a decimal format as U.S. currency is as follows: ____________________________________________________________.
سؤال
The code to decrement an integer variable called counter by 1 is as follows: ____________________.
سؤال
A Spinner control displays a prompt with a list of strings, called ____________________, in a pop-up window.
سؤال
The code necessary to read a number out of an EditText control called txtNumberOfTickets and convert it to an integer, assigned to the variable numTickets , is as follows: ____________________.
سؤال
The property that connects a Spinner control to a list of items is called ____________________.
سؤال
The code necessary to find an EditText by the name of txtTickets is as follows: ____________________.
سؤال
____________________ is the use of the String table to change text based on the user's preferred language.
سؤال
When a plus sign is placed between two strings, it ____________________ the two strings to create a new string value.
سؤال
The code needed to declare a variable called costPerTicket and initialize it to the value $79.99 is ____________________.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 3: Engage Android User Input, Variables, Operations
1
A physical keyboard on a smartphone is also called a ____.

A) button board
B) hard keyboard
C) strict keyboard
D) tactile keyboard
B
2
Good programming practice dictates that variable names should reflect the values placed in the variables.
True
3
A(n) ____ is a short description of a field that is visible as light-colored text.

A) abstract
B) clue
C) hint
D) synopsis
C
4
A hint is also known as a(n) ____.

A) clue
B) label
C) tutorial
D) watermark
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
Java variables are case sensitive.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
A(n) ____ is used in a Java program to contain data that changes during the execution of the program.

A) constant
B) item
C) literal
D) variable
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
Plus ( + ) and minus ( - ) have the highest order of precedence in the order of operations.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
A(n) ____ Text Field only allows numbers to be entered into it.

A) E-mail
B) Date
C) Number
D) Password
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
The only data type that has a default value is boolean .
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
A file called ____ is a default file that contains commonly used strings for an application.

A) consts.xml
B) data.xml
C) strings.xml
D) values.xml
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
It is possible to code a predefined system theme or a customized theme of your own design.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
A(n) ____ control is a widget similar to a drop-down list for selecting a single item from a fixed listing.

A) EditText
B) Message
C) Spinner
D) TextView
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
The String type is a class, not a primitive data type.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
An application with an appealing graphical design is preferred over applications that are textual in nature.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
The aim of requesting input from the user is to ensure that every user experience is the same every time the app is used.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
The on-screen keyboard is also called a(n) ____.

A) electric keyboard
B) screenboard
C) soft keyboard
D) touch keyboard
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
A(n) ____ is a series of alphanumeric characters that can include spaces.

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

A) AutoComplete
B) Date
C) Person Name
D) Plain Text
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
Heavy use of text and low use of graphics engages the user.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
You can use int and long data types to store decimal values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
____ is the Java class that can be used to format numbers for display.

A) DecimalFormat
B) DollarFormat
C) NumericFormat
D) StringFormat
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
When you select the ____________________ Text Field, Android deactivates the letters on the keyboard. 
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
The method to get the selected item from a Spinner control is ____.

A) getItem()
B) getSelectedItem()
C) getText()
D) selectedItem()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 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
B) EditText
C) Number TextView
D) Spinner
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
A(n) ____________________ is a style applied to an Activity or an entire application.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
A String can be a single ____ .

A) character
B) digit
C) space
D) truth value
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
The operator with the highest order of precedence is ____.

A) ()
B) ++
C) %
D) -
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
Variables that have not been used in a program have a ____.

A) curly underline
B) green dashed line
C) red squiggly line
D) yellow highlight
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
Which data type is not a numeric primitive?

A) byte
B) char
C) int
D) short
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
To display text in a TextView control, use the method ____.

A) assignText()
B) displayText()
C) setText()
D) showText()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
____________________ are multitouch interactions such as pressing two fingers to pan, rotate, or zoom.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
A(n) ____ can be used to display instructions at the top of Spinner controls.

A) abstract
B) hint
C) lead-in
D) prompt
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
To assign a phrase as the value of a String variable, place the text in ____.

A) brackets
B) double quotation marks
C) parentheses
D) single quotation marks
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
The set of resources available to an app is referenced by ____.

A) res
B) R
C) S
D) V
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
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
B) float
C) int
D) long
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
A ____ variable can only be initialized once.

A) final
B) local
C) static
D) temporary
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
Android loads text resources from the project's ____________________ table.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
There are ____ primitive data types in Java.

A) three
B) five
C) eight
D) twelve
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
After declaring a variable you must ____ before you use it.

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