Preview

CHAPTER 4 ASSESSMENT

Satisfactory Essays
Open Document
Open Document
467 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
CHAPTER 4 ASSESSMENT
CHAPTER 4: VARIABLES AND ARITHMETIC OPERATION
1. Name three numeric data types that can contain a decimal point.
2. Write a Dim statement for each of the following variables using the variable type and variable name that would be best for each value.
a. Population of the Philippines
b. Your weekly baon
c. The smallest data type you can use for your age.
d. A constant for the first initial of your first name
e. The minimum allowance in a month
f. The name of the city in which you live
g. The answer to a true/false question
3. Determine if each of the following variable names is valid or invalid. Please state the error in the invalid variable names.
a. _intRadian
b. PercentOfScale#
c. first_Input_Value
d. R734-L56
e. 3BZT477
f. Close
g. Name Of Client
4. List the steps specifying how you would perfectly align a group of textbox objects along left edges.
5. Which data type would be best for currency amounts?
6. Explain the precedence for the order of operations.
7. What is the solution to each of the following arithmetic expressions?
a. 5 + 8* 3 + 1
b. 16/ 2 * 4 – 3
c. 40 – 6 ^ 2 /3
d. 74 Mod 8
e. 9\4 + 3
f. 2 ^ 3 + (8-5)
g. (15 Mod 2) – 1 + 4 * (16 \ 5)
8. What is the difference between a method and procedure?
9. What is the difference between a variable and a literal?
10. Correct the following statements:
a. Dim iTAge as Integr
b. Dim dblDiscount as Dbl
c. Constant cstrCollege as String = “CVCC”
d. Dim strLastName as String strLastName = ‘ McNamara’
e. 1.5 * decHourlyPay = decOverTimePayRate
11. Write a statement that sets the focus on the Textbox object txtLastName.
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 interger value and place the integer value in a variable named intWaistSize.
15. Write a statement to convert the value in the String variable named

You May Also Find These Documents Helpful