Deck 3: Using Variables and Constants
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
العب
ملء الشاشة (f)
Deck 3: Using Variables and Constants
1
A blank space must precede and follow the concatenation operator (&).
True
2
A variable can be declared in more than one procedure without generating an error.
True
3
A static variable is a procedure-level variable that retains its value even when the procedure in which it is declared ends.
True
4
Integer, Long, and Short memory variables can store floating-point numbers.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
Data types and classes are not related to each other.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
Named constants make programs more self-documenting and easier to modify.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
The data type returned by the Val function is Short data type.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
Computers can process data stored in memory variables faster than data stored in a property of a control.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
Data declared as Decimal data type is not subject to small rounding errors that may occur with floating-point numbers.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
A named constant in a program can never be changed during program execution.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
A variable declared in the declaration section of a form is called a procedure-level variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
A form button that has a darkened border when it does not have the focus is called the default button.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
A variable that has procedure scope is available to all procedures in the application.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
All numeric variables are initialized to zero lacking code to the contrary.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
The distance to the sun is 93,000,000 miles, which can be written using exponential notation as 93.0E5.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
Boolean variables, when created, are always true unless otherwise stated.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
Single and Double type memory variables can hold floating-point numbers.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
A Short memory variable uses twice the amount of memory as an Integer variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
When the Cancel button or the Close button is clicked on a dialog box created by the InputBox function, default value of the dialog box is used.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
It is a good practice to use the data type with the largest storage requirements to maintain program efficiency.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
A variable that was not assigned a specific data type is assigned which data type?
A) Char
B) String
C) Boolean
D) Object
A) Char
B) String
C) Boolean
D) Object
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
A memory variable that is a Decimal data type requires ____ bytes of storage.
A) 2
B) 4
C) 8
D) 16
A) 2
B) 4
C) 8
D) 16
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
When using the Visual Basic .NET InputBox function which of the following is the recommended standard?
A) sentence capitalization for both prompt and title
B) book title capitalization for the title and sentence capitalization for the prompt
C) book title capitalization for both prompt and title
D) Pascal case for both
A) sentence capitalization for both prompt and title
B) book title capitalization for the title and sentence capitalization for the prompt
C) book title capitalization for both prompt and title
D) Pascal case for both
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
The Visual Basic .NET verb to create a variable is ____.
A) Declare
B) Create
C) Dim
D) Const
A) Declare
B) Create
C) Dim
D) Const
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
The assignment symbol in Visual Basic .NET is the ____ symbol.
A) ^
B) <
C) >
D) =
A) ^
B) <
C) >
D) =
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
The least efficient data type, because the computer must determine the contents of the memory location first, is the ____ data type.
A) Boolean
B) Short
C) Integer
D) Object
A) Boolean
B) Short
C) Integer
D) Object
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
A literal constant is an item of data whose value does not change while the application is running.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
The Visual Basic .NET operator that concatenates two or more strings together is ____.
A) @
B) %
C) &
D) #
A) @
B) %
C) &
D) #
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
Date variables are automatically set to which value when created?
A) 12:00 AM January 1, 1980
B) 12:00 AM January 1, 2000
C) 12:00 AM January 1, 0001
D) 12:00 AM January 1, 0000
A) 12:00 AM January 1, 1980
B) 12:00 AM January 1, 2000
C) 12:00 AM January 1, 0001
D) 12:00 AM January 1, 0000
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
You can eliminate the problems that occur as a result of implicit type conversions by entering the Option Explicit On statement in the General Declarations section of the Code Editor window.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
Spaces are allowed in variable names.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
String and object variables are initialized to ____ when created.
A) spaces
B) Nothing (no data at all)
C) the word "Nothing"
D) zero
A) spaces
B) Nothing (no data at all)
C) the word "Nothing"
D) zero
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
The practice of capitalizing the first letter in the second and subsequent words in variable names is referred to as the Hungarian notation.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
Which of the following keys is used to select the default button?
A) Enter
B) Esc
C) Tab
D) Shift
A) Enter
B) Esc
C) Tab
D) Shift
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
A memory variable that is a Single data type requires ____ bytes of storage.
A) 2
B) 4
C) 6
D) 8
A) 2
B) 4
C) 6
D) 8
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
A variable's lifetime indicates how long the variable remains in the computer's internal memory.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
To force a procedure-level variable to retain its value even when the procedure in which it is declared ends execution, you must make it a ____ variable.
A) constant
B) persistent
C) static
D) const
A) constant
B) persistent
C) static
D) const
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
This combination of characters Chr(13) & Chr(10) forces Visual Basic .NET ____.
A) to issue a carriage return followed by a line feed
B) to exit the routine and restart
C) to restart from the beginning of the subroutine
D) to strip the remainder of the routine
A) to issue a carriage return followed by a line feed
B) to exit the routine and restart
C) to restart from the beginning of the subroutine
D) to strip the remainder of the routine
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
A memory variable that is a Double data type requires ____ bytes of storage.
A) 2
B) 4
C) 6
D) 8
A) 2
B) 4
C) 6
D) 8
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
A default button is identified by setting the Windows form's ____ property.
A) DefaultButton
B) AcceptButton
C) SelectedButton
D) CancelButton
A) DefaultButton
B) AcceptButton
C) SelectedButton
D) CancelButton
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
A variable name must begin with a letter or the ____.
A) ampersand (&)
B) percent sign (%)
C) exclamation mark (!)
D) underscore (_)
A) ampersand (&)
B) percent sign (%)
C) exclamation mark (!)
D) underscore (_)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
A control's ____ event occurs when the contents of a control's Text property are altered.
A) CodeChanged
B) TextChanged
C) ChangedText
D) TextModified
A) CodeChanged
B) TextChanged
C) ChangedText
D) TextModified
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
The keyword ____ is used to create a named constant within a Visual Basic .NET program.
A) Fixed
B) Const
C) ConstantFixed
D) Perm
A) Fixed
B) Const
C) ConstantFixed
D) Perm
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
The ____ keyword in a procedure header is used to associate a procedure with different objects or events.
A) private
B) handles
C) local
D) associate
A) private
B) handles
C) local
D) associate
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
The ____ class contains methods that you can use to convert a numeric value to a specified data type.
A) Convert
B) Format
C) Parse
D) Number
A) Convert
B) Format
C) Parse
D) Number
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
Which of the following can store a floating-point number?
A) Single
B) Long
C) String
D) Integer
A) Single
B) Long
C) String
D) Integer
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
To produce output of the number 125 as $125.00 you would use which of the following functions?
A) CurrencyFormat
B) Format$
C) Format
D) FormatOutput
A) CurrencyFormat
B) Format$
C) Format
D) FormatOutput
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
Every numeric data type in Visual Basic .NET has a ____ method that can be used to convert a string to that numeric data type.
A) Convert
B) Format
C) Parse
D) Number
A) Convert
B) Format
C) Parse
D) Number
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
Instead of storing data in the properties of various controls, programmers can create ____, which are named memory locations to store data.
A) characters
B) variables
C) integers
D) strings
A) characters
B) variables
C) integers
D) strings
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
The ____ of a variable determines where in the program a variable can be used.
A) dim
B) type
C) scope
D) extent
A) dim
B) type
C) scope
D) extent
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck