Exam 3: Variables, Constants, and Calculations

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Declaration statements _______.

Free
(Multiple Choice)
4.7/5
(26)
Correct Answer:
Verified

C

A variable that is declared in the Declarations section of a form is a(n)_______.

Free
(Multiple Choice)
4.8/5
(30)
Correct Answer:
Verified

A

A _______ variable is declared inside a procedure.

Free
(Multiple Choice)
4.9/5
(32)
Correct Answer:
Verified

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)

MessageBox.Show("Hello","Goodbye")will display _______.

(Multiple Choice)
4.7/5
(30)

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)