Need answers to these questions 11. Write a statement that sets the focus on the
ID: 3789025 • Letter: N
Question
Need answers to these questions
11. Write a statement that sets the focus on the txtLastName TextBox object. 12. Write a statement that removes the contents of the txtAge TextBox object. 13. Write a statement that blanks the Text property of the lblEligibilityAge Label object. 14. Write a statement to convert the value in the String variable strWaistSize to an integer value and place the integer value in a variable named intWaistSize. 15. Write a statement to convert the value in the String variable strHourlyPay to a Decimal value and place the Decimal value in a variable named decWage. 16. Write a statement to close a form that currently is open. 17. Write a statement that declares a constant named decInsuranceDeductible as a Decimal data type and set its value to 379.25. 18. Which Windows Form property allows the user to press the enter key while the form is active and activate a button's event handler? 19. What is a local variable? How does its scope differ from that of a global variable? 20. When the following statements are executed, what would be displayed in the lblHourlyWage Label object? decHourlyWage = 12.637 lblHourlyWage.Text = decHourlyWage.ToString(“C”)
Explanation / Answer
Answers to questions
11. The answer is txtLastName.Focus()
The statement that sets the focus or control on to text box
object, txtLastName
----------------------------------------------------------------------------
12.The answer is txtAge.Clear()
The statement that claer the context of the text box
object, txtAge control
----------------------------------------------------------------------------
13.The answer is lblEligibilityAge.Text=""
The statement that sets the blank to the text box
object, lblEligibilityAge control
----------------------------------------------------------------------------
14.The answer is intWaistSize = Convert.ToInt32(strWaistSize)
The above statement converts the string, strWaistSize to integer type
using Convert.ToInt32 and store the result in the variable , intWaistSize
of integer type.
----------------------------------------------------------------------------
15. The answer is decWage = Convert.ToDecimal(strHourlyPay)
The above statement converts the string, strHourlyPay to decimal
value, decWage of Decimal type.
----------------------------------------------------------------------------
16.The answer is Me.close()
The above statement close the current active window
----------------------------------------------------------------------------
17. The answer is Const decInsuranceDeductible As Decimal = 379.25. 18D
where D represents the decimal type value.
----------------------------------------------------------------------------
18.The answer is AcceptButton property that allows user to press
Enter key while the form is active and activate a button's event handler.
----------------------------------------------------------------------------
19.The scope of a local variable is only valid within the body in which
the variable is declared
The score of the global variable is allowed the variable to use
throughtout the method or class.
----------------------------------------------------------------------------
20.
decHourlyWage = 12.637
lblHourlyWage.Text = decHourlyWage.ToString(“C”)
When the above statement is executed , the value 12.637 is assigned to
decHourlyWage and then statement converts the value to string and
set the value to label, lblHourlyWage
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.