Deck 4: Variables and Arithmetic Operations
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/107
العب
ملء الشاشة (f)
Deck 4: Variables and Arithmetic Operations
1
When naming a Label object, the ____ prefix should be used.
A) label
B) lbl
C) lab
D) txtlbl
A) label
B) lbl
C) lab
D) txtlbl
B
2
A green squiggly underline beneath a variable name in a declaration statement indicates that the variable is unused in the program.
True
3
A(n) ____ data type must be used in arithmetic operations.
A) string
B) numeric
C) character
D) Either A or B
A) string
B) numeric
C) character
D) Either A or B
B
4
The prefix ____ should be used for naming a TextBox object.
A) tbox
B) txtbox
C) txt
D) obj
A) tbox
B) txtbox
C) txt
D) obj
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
5
When defining a variable, the keyword ____ appears at the beginning of the statement.
A) Assign
B) Declare
C) Define
D) Dim
A) Assign
B) Declare
C) Define
D) Dim
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
6
The ____ indicates that a statement is an assignment statement.
A) keyword Set
B) ampersand (&)
C) equal sign (=)
D) keyword Assign
A) keyword Set
B) ampersand (&)
C) equal sign (=)
D) keyword Assign
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
7
The ampersand character at the end of a line in the code editor indicates that the line of code continues on the next line.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
8
The memory allocation for the Char data type is ____ bytes.
A) 2
B) 4
C) 8
D) 16
A) 2
B) 4
C) 8
D) 16
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
9
A prefix of ____ is used for variables defined as a String data type.
A) chr
B) wrd
C) str
D) txt
A) chr
B) wrd
C) str
D) txt
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
10
A ____ beneath a variable name in a declaration statement indicates that the variable has not been used in the program.
A) blue squiggly underline
B) green squiggly underline
C) red squiggly underline
D) yellow squiggly underline
A) blue squiggly underline
B) green squiggly underline
C) red squiggly underline
D) yellow squiggly underline
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
11
A variable that will be used to hold only True or False values should be declared as a(n) ____ data type.
A) Boolean
B) Decimal
C) Integer
D) Single
A) Boolean
B) Decimal
C) Integer
D) Single
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
12
A prefix of ____ is used to denote a variable defined as an Integer data type
A) num
B) dec
C) nbr
D) int
A) num
B) dec
C) nbr
D) int
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
13
The CancelButton property of the Form object allows you to specify which button is activated when the CTRL key on the keyboard is pressed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
14

فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
15
The event handler of a button designated as the Cancel button will be processed when the user presses the ____ key on the keyboard.
A) ESC
B) ENTER
C) CTRL
D) ALT
A) ESC
B) ENTER
C) CTRL
D) ALT
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
16

A) GoButton
B) AcceptButton
C) EnterButton
D) ReturnButton
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
17
A variable that will be used to contain only whole numbers should be declared as a(n) ____ data type.
A) Decimal
B) Double
C) Integer
D) Single
A) Decimal
B) Double
C) Integer
D) Single
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
18
When defining a variable to be used to hold textual information containing multiple characters, the declaration statement should have ____ at the end of the statement.
A) As Char
B) As Char Type
C) As String
D) As String Type
A) As Char
B) As Char Type
C) As String
D) As String Type
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
19
A(n) ____ variable should be used for values that will consist of a single character only.
A) Boolean
B) Char
C) Decimal
D) Integer
A) Boolean
B) Char
C) Decimal
D) Integer
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
20
The Void procedure is used to empty the contents of a TextBox object at runtime.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
21
The prefix ____ should be used for a Double variable.
A) dbl
B) dub
C) dou
D) dob
A) dbl
B) dub
C) dou
D) dob
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
22
The character C is the literal type character for the ____ data type.
A) Char
B) Short
C) Integer
D) Decimal
A) Char
B) Short
C) Integer
D) Decimal
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
23
The ____ operator is used for exponentiation.
A) *
B) ^
C) ~
D) \
A) *
B) ^
C) ~
D) \
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
24
The ____ operator is used to concatenate two strings.
A) &
B) #
C) @
D) +
A) &
B) #
C) @
D) +
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
25
The \ operator is the arithmetic operator for ____ division.
A) integer
B) decimal
C) modular
D) linear
A) integer
B) decimal
C) modular
D) linear
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
26
When the user interacts with an object in the graphical user interface, the ____ shifts to that object.
A) scope
B) focus
C) visibility
D) precision
A) scope
B) focus
C) visibility
D) precision
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
27
Used with the ToString function, the ____ format specifier will display the value 8976.43561 as 8976.44.
A) Fixed (F)
B) Number (N)
C) General (G)
D) Currency (C)
A) Fixed (F)
B) Number (N)
C) General (G)
D) Currency (C)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
28
A prefix of ____ is used to denote a variable defined as a Decimal data type.
A) dec
B) dml
C) num
D) int
A) dec
B) dml
C) num
D) int
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
29
The ____ statement prevents automatic conversion of data types.
A) Manual Conversion On
B) Option Strict Off
C) Manual Conversion Off
D) Option Strict On
A) Manual Conversion On
B) Option Strict Off
C) Manual Conversion Off
D) Option Strict On
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
30
The dtm prefix is used to denote a(n) ____ data type.
A) Boolean
B) Char
C) Single
D) Date
A) Boolean
B) Char
C) Single
D) Date
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
31
The ____ of a variable indicates how long the variable remains active.
A) lifetime
B) scope
C) range
D) duration
A) lifetime
B) scope
C) range
D) duration
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
32
Used with the ToString function, the ____ format specifier will display the value 8976.43561 as 8,976.44.
A) Fixed (F)
B) Number (N)
C) Currency (C)
D) General ( G)
A) Fixed (F)
B) Number (N)
C) Currency (C)
D) General ( G)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
33
When using ____ division (\), any remainder amount is dropped or truncated.
A) modular
B) integer
C) linear
D) decimal
A) modular
B) integer
C) linear
D) decimal
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
34
The ____ of a variable specifies where a variable can be referenced within a program.
A) range
B) lifetime
C) scope
D) scale
A) range
B) lifetime
C) scope
D) scale
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
35
A variable that has been defined as a Single data type is denoted with the ____ prefix.
A) sng
B) sin
C) num
D) sge
A) sng
B) sin
C) num
D) sge
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
36
Used with the ToString function, the ____ format specifier will display the value 8976.43561 as $8,976.44.
A) Fixed (F)
B) Number (N)
C) General (G)
D) Currency (C)
A) Fixed (F)
B) Number (N)
C) General (G)
D) Currency (C)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
37
A prefix of ____ is used to denote a variable defined as a Char data type.
A) str
B) chr
C) txt
D) wrd
A) str
B) chr
C) txt
D) wrd
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
38
Used with the ToString function, the ____ format specifier will display the value 8976.43561 as 8976.43561.
A) Fixed (F)
B) Number (N)
C) General (G)
D) Currency (C)
A) Fixed (F)
B) Number (N)
C) General (G)
D) Currency (C)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
39
A prefix of ____ is used to denote that a variable has been defined as a Boolean data type.
A) tru
B) tfl
C) bln
D) trf
A) tru
B) tfl
C) bln
D) trf
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
40
The character D is the literal type character for the ____ data type.
A) Single
B) Integer
C) Double
D) Decimal
A) Single
B) Integer
C) Double
D) Decimal
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
41
A Label object allows a user to enter text into a program at runtime.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
42
A Short data type is used for a very short string value of 10 bytes or less.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
43
A ____ Exception occurs when code attempts to divide a number by zero.
A) Divide by Zero
B) Zero denominator
C) Zero error
D) Division Error
A) Divide by Zero
B) Zero denominator
C) Zero error
D) Division Error
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
44
A(n) ____ Exception occurs when the user enters a value larger than the maximum value that can be processed by the statement.
A) Excessive input
B) MaxSize
C) Stack
D) Overflow
A) Excessive input
B) MaxSize
C) Stack
D) Overflow
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
45
A TextBox object allows a user to enter programming code into the program at runtime.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
46
A Double variable can be used in arithmetic operations.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
47
A(n) ____ Exception occurs when a calculation creates a value larger than one that can be processed by a procedure.
A) Excessive input
B) MaxSize
C) Stack
D) Overflow
A) Excessive input
B) MaxSize
C) Stack
D) Overflow
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
48
Char variables can be used in arithmetic operations.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
49
The process of joining two string values together is called ____.
A) addition
B) alignment
C) combination
D) concatenation
A) addition
B) alignment
C) combination
D) concatenation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
50
The variable name on the left of an assignment statement is the variable that receives the data that results from the evaluation of the expression on the right side of the assignment statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
51
The maximum size of a TextBox object often is determined by the design of the user interface, so it looks and feels good in the user interface.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
52
String data types can be used in arithmetic operations.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
53
You must enclose a value in parentheses to assign it to a variable declared as Char data type.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
54
A numeric data type must be used in arithmetic operations.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
55
A ____ Exception occurs when the user enters data that a statement cannot properly handle.
A) Style
B) Substance
C) Format
D) Setting
A) Style
B) Substance
C) Format
D) Setting
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
56
A String data type allows for the storing of the standard English letters only.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
57
When setting up a mask for a MaskedTextBox object, select the Use Validating Type check box to cause the object to verify that the user entered valid numeric data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
58
The style of the text displayed in a TextBox object can be set using the Font property.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
59
Integer variables can be used to store fractional values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
60
By default, a text box will display as many lines of text as the user enters.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
61
Calculations are preformed from right to left, working towards the equal sign.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
62
To force a literal value to be treated as a specific data type, you must use a literal-type character designator.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
63
An Overflow Exception will occur if the user enters a value greater than the maximum value that can be processed by the statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
64
The ____________________ property of a TextBox object controls the alignment of the text content.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
65
A property identifies a value required by a procedure that must be passed into the procedure when it is called.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
66

فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
67
A(n) ____________________ is a named location in RAM that can store a value that may change during program execution.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
68
In an assignment statement, the value to the right of the equal sign will be ____________________ to the variable on the left.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
69
The ____________________ data type holds a nondecimal whole number value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
70
A(n) ____________________ text box allows the user to enter multiple lines in a text box.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
71
The event handler of a button designated as the Accept button will be processed when the user presses the ____________________ key on the keyboard.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
72
A procedure that does not return a value is called a function.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
73
The ToString function requires a format specifier argument.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
74

فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
75
A variable that can be used in multiple regions of code is called a universal variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
76

فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
77
A(n) ____________________ object is a GUI object that allows users to enter data into a program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
78
A local variable is a variable that can only be accessed in the region in which it was defined.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
79
The Option Strict On statement enables automatic data type conversions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck
80
MOD operations occur before any other arithmetic operations.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 107 في هذه المجموعة.
فتح الحزمة
k this deck