Exam 3: Variables, Constants, and Calculations
Exam 1: Introduction to Visual Basic 201054 Questions
Exam 2: User Interface Design74 Questions
Exam 3: Variables, Constants, and Calculations58 Questions
Exam 4: Decisions and Conditions51 Questions
Exam 5: Menus, Common Dialog Boxes, Sub Procedures, and Function38 Questions
Exam 6: Multiform Projects69 Questions
Exam 7: Lists, loops, and Printing76 Questions
Exam 8: Arrays and Collections50 Questions
Exam 9: Web Applications66 Questions
Exam 10: Database Applications43 Questions
Exam 11: Data Files43 Questions
Exam 12: OOP: Creating Object-Oriented Programs51 Questions
Exam 13: Graphics, Animation, Sound, and Drag-And-Drop62 Questions
Exam 14: Additional Topics in Visual Basic60 Questions
Select questions type
A variable that is declared in the Declarations section of a form is a(n)_______.
Free
(Multiple Choice)
4.8/5
(30)
Correct Answer:
A
A _______ variable is declared inside a procedure.
Free
(Multiple Choice)
4.9/5
(32)
Correct Answer:
C
Which of the following does not follow the conventions for naming identifiers?
(Multiple Choice)
4.8/5
(38)
Write code using nested Try/Catch blocks where you will store data from text boxes named QuantityTextBox and PriceTextBox into variables named QuantityInteger and PriceDecimal.Handle any exceptions by displaying a message in a message box if the text boxes do not contain valid data.
(Essay)
4.9/5
(33)
Which of the following has the highest order of precedence in arithmetic expressions?
(Multiple Choice)
4.9/5
(43)
If you are declaring a variable that will be used in calculations,you may use the string data type.
(True/False)
4.9/5
(46)
Explain how you would decide which data type to use when declaring variables and constants.
(Essay)
4.8/5
(34)
It is a good idea to set Option Strict On,in the Visual Basic environment in order to detect misspelled variable names when the project is run.
(True/False)
4.8/5
(33)
Which of the following is a valid statement that can be used to declare a local variable that will store whole numbers?
(Multiple Choice)
4.8/5
(33)
The data type that is used for decimal fractions is _______.
(Multiple Choice)
4.9/5
(52)
Although it is best to always declare the data type on a Dim statement,the data type is optional.
(True/False)
4.9/5
(34)
Which of the following is the correct code that will display the value in TotalSalesDecimal with a percent sign and 2 decimals?
(Multiple Choice)
4.8/5
(36)
Message boxes can be used to notify the user if input data is not a reasonable value.
(True/False)
4.8/5
(38)
What will be the value of TotalInteger after execution of this statement? Assume that ValueInteger = 2.
TotalInteger = ((ValueInteger + 2)* (ValueInteger + 4))/ ValueInteger + 1
(Multiple Choice)
4.8/5
(37)
A variable that will store totals and that will be available to all procedures in the form must be declared as a constant.
(True/False)
4.8/5
(33)
A numeric variable that is declared with the Dim statement in a local procedure is initialized to zero each time the procedure is called.
(True/False)
4.9/5
(45)
Which of the following is NOT a rule for naming identifiers?
(Multiple Choice)
4.8/5
(36)
What statement should be used to declare a variable that is accessible from all procedures of a form?
(Multiple Choice)
4.8/5
(29)
Showing 1 - 20 of 58
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)