Deck 3: Using Variables and Constants

ملء الشاشة (f)
exit full mode
سؤال
Which of the following statements declares a Double variable named dblAverage?

A) Dim dblAverage As Double
B) Dim As Double dblAverage
C) Const dblAverage As Constant
D) Dim dblAverage As Single
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Date variables are automatically set to which value when created?

A) 1/1/1980 12:00:00 AM
B) 1/1/2000 12:00:00 AM
C) 1/1/0001 12:00:00 AM
D) 1/1/0000 12:00:00 AM
سؤال
Every numeric data type in Visual Basic has a ____ method that can be used to convert a string to that numeric data type.

A) Convert
B) Format
C) TryParse
D) Number
سؤال
A memory variable that is a Double data type requires ____ bytes of storage.

A) 2
B) 4
C) 6
D) 8
سؤال
All numeric variables are automatically initialized to 0 if no initial value is specified when the variable is declared.
سؤال
The assignment operator in Visual Basic is the ____ symbol.

A) ^
B) <
C) >
D) =
سؤال
A variable name must begin with a letter or a(n)____.

A) ampersand (&)
B) percent sign (%)
C) exclamation mark (!)
D) underscore (_)
سؤال
Which of the following can store a number containing a decimal place?

A) Single
B) Long
C) String
D) Integer
سؤال
A named constant's value cannot be changed while the application is running.
سؤال
Object and String variables are automatically initialized using ____.

A) spaces
B) the keyword Nothing (no data at all)
C) the word "Nothing"
D) 0
سؤال
Calculations involving Decimal variables are not subject to the small rounding errors that may occur when using Double or Single variables.
سؤال
You cannot associate a procedure with more than one object or event.
سؤال
A Boolean variable is initialized to the value True if no initial value is stated when the variable is declared.
سؤال
Data types and classes are not related to each other.
سؤال
Spaces are allowed in variable names.
سؤال
Instead of storing data in the properties of various controls,programmers can create ____,which are memory locations inside the computer,to store data.

A) characters
B) variables
C) integers
D) strings
سؤال
A variable declared in the Declaration section of a form is called a procedure-level variable.
سؤال
Which of the following statements subtracts the contents of the intNum1 variable from the contents of the intNum2 variable,and then multiples the difference by 3? The result is assigned to the intResult variable. Which of the following statements subtracts the contents of the intNum1 variable from the contents of the intNum2 variable,and then multiples the difference by 3? The result is assigned to the intResult variable.  <div style=padding-top: 35px>
سؤال
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.
سؤال
The value returned by the InputBox function depends on the button the user chooses.
سؤال
The ControlChars.NewLine constant instructs the computer to ____.

A) advance the insertion point to the next line in a control
B) exit the routine and restart
C) restart from the beginning of the subroutine
D) strip the remainder of the routine
سؤال
Which of the following statements formats the contents of the dblPay variable with a dollar sign and no decimal places? Which of the following statements formats the contents of the dblPay variable with a dollar sign and no decimal places?  <div style=padding-top: 35px>
سؤال
When using the Visual Basic 2012 InputBox function,which of the following is the Windows standard?

A) sentence capitalization for both the prompt and the title
B) book title capitalization for the title and sentence capitalization for the prompt
C) book title capitalization for both the prompt and the title
D) Pascal case for both the prompt and the title
سؤال
The ____ of a variable determines where in the application's code a variable can be used.

A) dimension
B) type
C) scope
D) extent
سؤال
Which of the following statements declares a class-level variable?

A) Private Dim dblHeight As Double
B) Dim dblHeight As Double
C) Class dblHeight As Double
D) Private dblHeight As Double
سؤال
The data entered by the users is currently stored in properties of controls of the form.Your first task to improve the application is to ____.

A) declare variables for all of the input data
B) rename the controls
C) change the layout of the form
D) add a colorful logo to the form
سؤال
A default button is identified by setting the form's ____ property.

A) AcceptButton
B) DefaultButton
C) SelectedButton
D) CancelButton
سؤال
A variable that was not assigned a specific data type is assigned the ____ data type.

A) Char
B) String
C) Boolean
D) Object
سؤال
If Option Strict is set to On,which of the following statements will assign the contents of the txtLateFee control to a Decimal variable named decLateFee? If Option Strict is set to On,which of the following statements will assign the contents of the txtLateFee control to a Decimal variable named decLateFee?  <div style=padding-top: 35px>
سؤال
The pet's temperature is recorded at every visit,and it may contain a decimal place.What data type is best for storing this data?

A) String
B) Integer
C) Decimal
D) Double
سؤال
The strFirstName and strLastName variables contain the strings "Jane" and "Jones",respectively.Which of the following statements will display a string as "Jones,Jane" (the last name,a comma,a space,and the first name)in the lblFullName control? The strFirstName and strLastName variables contain the strings Jane and Jones,respectively.Which of the following statements will display a string as Jones,Jane (the last name,a comma,a space,and the first name)in the lblFullName control?  <div style=padding-top: 35px>
سؤال
A form's CancelButton property specifies the button whose Click event procedure is processed when the user presses the ____ key.

A) Enter
B) Shift
C) Tab
D) Esc
سؤال
When a button is selected,the computer processes the code contained in the button's ____ event procedure.

A) Submit
B) Press
C) On
D) Click
سؤال
You use the ____ operator to concatenate strings together.

A) @
B) %
C) &
D) #
سؤال
Specifying the number of decimal places and the special characters to display in a number is called ____.

A) formatting
B) concatenating
C) shredding
D) designing
سؤال
The ____ clause in an event procedure's header indicates the object and event associated with the procedure.

A) Handles
B) Private
C) Local
D) Associate
سؤال
You declare a class-level variable using the ____ keyword.

A) Dim
B) Mod
C) Private
D) Static
سؤال
You create a named constant using the ____ statement.

A) Fixed
B) Const
C) ConstantFixed
D) Perm
سؤال
The line continuation character is a(n)____.

A) ampersand (&)
B) underscore (_)
C) equal sign (=)
D) pound sign (#)
سؤال
A control's ____ event occurs when a change is made to the contents of a control's Text property.

A) CodeChanged
B) TextChanged
C) ChangedText
D) TextModified
سؤال
What is a static variable? How is it different from a class-level variable?
سؤال
To simplify the coding of the InputBox function,the prompt and the title for the InputBox can be declared as ____ because they will not change while the application runs.

A) string variables
B) static variables
C) Boolean variables
D) named constants
سؤال
The veterinarian wants to document and display the name of the technician who performs the initial evaluation of the pet.You decide to use an InputBox function to prompt the user to enter this data first.The InputBox function should be coded in the ____.

A) Save button's Click event procedure
B) form's Load event procedure
C) Print button's Click event procedure
D) Exit button's Click event procedure
سؤال
A local gym needs an application to apply a 10% discount for all new members who present a coupon during enrollment.Write the statements to declare a variable to record if a customer has a coupon,and to assign the discount rate.The discount rate will not change while the application is running.
سؤال
An application allows a user to enter an item price and a quantity to be used in a calculation.The item price may contain a decimal place,and the quantity will always be a whole number.Write the appropriate Dim statements to declare the variables.Write the related statements needed to convert the strings entered by the user into numeric data types.
سؤال
A procedure in an application needs to store data used to calculate the total price of purchasing tires.The price of the tires will contain a decimal place.The number of tires will always be a whole number.Write the appropriate Dim statements to declare the variables.Make sure to use appropriate naming conventions.
سؤال
Write a statement to display an input dialog box that shows "Car Make:" as the prompt,"Car" in the title bar,and an empty input area.When the user closes the dialog box,the assignment statement assigns the function's return value to the strCar variable.
سؤال
The Decimal,Double,and Single variable data types can all store what type of numeric data? Explain the differences among these three data types and problems that can occur with their use.
سؤال
The decBalance variable contains the number 1368.52.Write the assignment statement to display the value with a dollar sign,a thousands separator,and two decimal places in the lblBalance control.
سؤال
What are the Convert class methods and why are they sometimes used instead of conversion functions?
سؤال
A procedure in an application needs to store tax rate data.The county of residence and the tax rate need to be stored.Write the appropriate Dim statements to declare the variables.Write an assignment statement that assigns .08 to the tax rate variable.
سؤال
The account number for each pet must be available to be used by all procedures in the form.You should make sure the account number is declared using the ____ keyword.

A) Public
B) Dim
C) Private
D) Val
سؤال
A procedure in an application needs to store student data.The student first name,student last name,student GPA,and whether or not the student is registered all need to be stored.Write the appropriate Dim statements to declare the variables.Make sure to use appropriate naming conventions.
سؤال
An application allows a user to enter an employee code,a salary amount,and a bonus rate to be used in a calculation.The salary amount will always be a whole number,and the bonus rate may contain a decimal place.Write the appropriate Dim statements to declare the variables.Write the related statements needed to convert the strings entered by the user into numeric data types.
سؤال
The decRate variable contains the number .03.Write the assignment statement to display the value as 3% in the lblRate control.
سؤال
Explain the scope and lifetime of variables.How are a variable's scope and lifetime determined? List the three scopes available for a variable.
سؤال
An application translates English words into French words and displays the results as a message in a Label control.The strEnglish variable contains the string "apple".The strFrench variable contains the string "pomme".Write an assignment statement to display the string "The French word for apple is pomme." in the lblMessage control.
سؤال
What is a TextChanged event? How can it be used within an application?
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/58
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 3: Using Variables and Constants
1
Which of the following statements declares a Double variable named dblAverage?

A) Dim dblAverage As Double
B) Dim As Double dblAverage
C) Const dblAverage As Constant
D) Dim dblAverage As Single
A
2
Date variables are automatically set to which value when created?

A) 1/1/1980 12:00:00 AM
B) 1/1/2000 12:00:00 AM
C) 1/1/0001 12:00:00 AM
D) 1/1/0000 12:00:00 AM
C
3
Every numeric data type in Visual Basic has a ____ method that can be used to convert a string to that numeric data type.

A) Convert
B) Format
C) TryParse
D) Number
C
4
A memory variable that is a Double data type requires ____ bytes of storage.

A) 2
B) 4
C) 6
D) 8
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
5
All numeric variables are automatically initialized to 0 if no initial value is specified when the variable is declared.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
6
The assignment operator in Visual Basic is the ____ symbol.

A) ^
B) <
C) >
D) =
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
7
A variable name must begin with a letter or a(n)____.

A) ampersand (&)
B) percent sign (%)
C) exclamation mark (!)
D) underscore (_)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
8
Which of the following can store a number containing a decimal place?

A) Single
B) Long
C) String
D) Integer
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
9
A named constant's value cannot be changed while the application is running.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
10
Object and String variables are automatically initialized using ____.

A) spaces
B) the keyword Nothing (no data at all)
C) the word "Nothing"
D) 0
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
11
Calculations involving Decimal variables are not subject to the small rounding errors that may occur when using Double or Single variables.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
12
You cannot associate a procedure with more than one object or event.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
13
A Boolean variable is initialized to the value True if no initial value is stated when the variable is declared.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
14
Data types and classes are not related to each other.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
15
Spaces are allowed in variable names.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
16
Instead of storing data in the properties of various controls,programmers can create ____,which are memory locations inside the computer,to store data.

A) characters
B) variables
C) integers
D) strings
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
17
A variable declared in the Declaration section of a form is called a procedure-level variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
18
Which of the following statements subtracts the contents of the intNum1 variable from the contents of the intNum2 variable,and then multiples the difference by 3? The result is assigned to the intResult variable. Which of the following statements subtracts the contents of the intNum1 variable from the contents of the intNum2 variable,and then multiples the difference by 3? The result is assigned to the intResult variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
19
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
20
The value returned by the InputBox function depends on the button the user chooses.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
21
The ControlChars.NewLine constant instructs the computer to ____.

A) advance the insertion point to the next line in a control
B) exit the routine and restart
C) restart from the beginning of the subroutine
D) strip the remainder of the routine
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
22
Which of the following statements formats the contents of the dblPay variable with a dollar sign and no decimal places? Which of the following statements formats the contents of the dblPay variable with a dollar sign and no decimal places?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
23
When using the Visual Basic 2012 InputBox function,which of the following is the Windows standard?

A) sentence capitalization for both the prompt and the title
B) book title capitalization for the title and sentence capitalization for the prompt
C) book title capitalization for both the prompt and the title
D) Pascal case for both the prompt and the title
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
24
The ____ of a variable determines where in the application's code a variable can be used.

A) dimension
B) type
C) scope
D) extent
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
25
Which of the following statements declares a class-level variable?

A) Private Dim dblHeight As Double
B) Dim dblHeight As Double
C) Class dblHeight As Double
D) Private dblHeight As Double
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
26
The data entered by the users is currently stored in properties of controls of the form.Your first task to improve the application is to ____.

A) declare variables for all of the input data
B) rename the controls
C) change the layout of the form
D) add a colorful logo to the form
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
27
A default button is identified by setting the form's ____ property.

A) AcceptButton
B) DefaultButton
C) SelectedButton
D) CancelButton
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
28
A variable that was not assigned a specific data type is assigned the ____ data type.

A) Char
B) String
C) Boolean
D) Object
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
29
If Option Strict is set to On,which of the following statements will assign the contents of the txtLateFee control to a Decimal variable named decLateFee? If Option Strict is set to On,which of the following statements will assign the contents of the txtLateFee control to a Decimal variable named decLateFee?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
30
The pet's temperature is recorded at every visit,and it may contain a decimal place.What data type is best for storing this data?

A) String
B) Integer
C) Decimal
D) Double
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
31
The strFirstName and strLastName variables contain the strings "Jane" and "Jones",respectively.Which of the following statements will display a string as "Jones,Jane" (the last name,a comma,a space,and the first name)in the lblFullName control? The strFirstName and strLastName variables contain the strings Jane and Jones,respectively.Which of the following statements will display a string as Jones,Jane (the last name,a comma,a space,and the first name)in the lblFullName control?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
32
A form's CancelButton property specifies the button whose Click event procedure is processed when the user presses the ____ key.

A) Enter
B) Shift
C) Tab
D) Esc
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
33
When a button is selected,the computer processes the code contained in the button's ____ event procedure.

A) Submit
B) Press
C) On
D) Click
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
34
You use the ____ operator to concatenate strings together.

A) @
B) %
C) &
D) #
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
35
Specifying the number of decimal places and the special characters to display in a number is called ____.

A) formatting
B) concatenating
C) shredding
D) designing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
36
The ____ clause in an event procedure's header indicates the object and event associated with the procedure.

A) Handles
B) Private
C) Local
D) Associate
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
37
You declare a class-level variable using the ____ keyword.

A) Dim
B) Mod
C) Private
D) Static
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
38
You create a named constant using the ____ statement.

A) Fixed
B) Const
C) ConstantFixed
D) Perm
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
39
The line continuation character is a(n)____.

A) ampersand (&)
B) underscore (_)
C) equal sign (=)
D) pound sign (#)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
40
A control's ____ event occurs when a change is made to the contents of a control's Text property.

A) CodeChanged
B) TextChanged
C) ChangedText
D) TextModified
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
41
What is a static variable? How is it different from a class-level variable?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
42
To simplify the coding of the InputBox function,the prompt and the title for the InputBox can be declared as ____ because they will not change while the application runs.

A) string variables
B) static variables
C) Boolean variables
D) named constants
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
43
The veterinarian wants to document and display the name of the technician who performs the initial evaluation of the pet.You decide to use an InputBox function to prompt the user to enter this data first.The InputBox function should be coded in the ____.

A) Save button's Click event procedure
B) form's Load event procedure
C) Print button's Click event procedure
D) Exit button's Click event procedure
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
44
A local gym needs an application to apply a 10% discount for all new members who present a coupon during enrollment.Write the statements to declare a variable to record if a customer has a coupon,and to assign the discount rate.The discount rate will not change while the application is running.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
45
An application allows a user to enter an item price and a quantity to be used in a calculation.The item price may contain a decimal place,and the quantity will always be a whole number.Write the appropriate Dim statements to declare the variables.Write the related statements needed to convert the strings entered by the user into numeric data types.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
46
A procedure in an application needs to store data used to calculate the total price of purchasing tires.The price of the tires will contain a decimal place.The number of tires will always be a whole number.Write the appropriate Dim statements to declare the variables.Make sure to use appropriate naming conventions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
47
Write a statement to display an input dialog box that shows "Car Make:" as the prompt,"Car" in the title bar,and an empty input area.When the user closes the dialog box,the assignment statement assigns the function's return value to the strCar variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
48
The Decimal,Double,and Single variable data types can all store what type of numeric data? Explain the differences among these three data types and problems that can occur with their use.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
49
The decBalance variable contains the number 1368.52.Write the assignment statement to display the value with a dollar sign,a thousands separator,and two decimal places in the lblBalance control.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
50
What are the Convert class methods and why are they sometimes used instead of conversion functions?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
51
A procedure in an application needs to store tax rate data.The county of residence and the tax rate need to be stored.Write the appropriate Dim statements to declare the variables.Write an assignment statement that assigns .08 to the tax rate variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
52
The account number for each pet must be available to be used by all procedures in the form.You should make sure the account number is declared using the ____ keyword.

A) Public
B) Dim
C) Private
D) Val
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
53
A procedure in an application needs to store student data.The student first name,student last name,student GPA,and whether or not the student is registered all need to be stored.Write the appropriate Dim statements to declare the variables.Make sure to use appropriate naming conventions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
54
An application allows a user to enter an employee code,a salary amount,and a bonus rate to be used in a calculation.The salary amount will always be a whole number,and the bonus rate may contain a decimal place.Write the appropriate Dim statements to declare the variables.Write the related statements needed to convert the strings entered by the user into numeric data types.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
55
The decRate variable contains the number .03.Write the assignment statement to display the value as 3% in the lblRate control.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
56
Explain the scope and lifetime of variables.How are a variable's scope and lifetime determined? List the three scopes available for a variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
57
An application translates English words into French words and displays the results as a message in a Label control.The strEnglish variable contains the string "apple".The strFrench variable contains the string "pomme".Write an assignment statement to display the string "The French word for apple is pomme." in the lblMessage control.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
58
What is a TextChanged event? How can it be used within an application?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 58 في هذه المجموعة.