Deck 3: Engage Android User Input, Variables, Operations
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
العب
ملء الشاشة (f)
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
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
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
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
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
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
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
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
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
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
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
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()
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
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
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) -
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
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
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()
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
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
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
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
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
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
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
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