Exam 3: Variables, Constants, and Calculations

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

What will be the value of AnswerInteger after execution of these statements? Const NumberAInteger as Integer = 6 Const NumberBInteger as Integer = 4 Const NumberCInteger as Integer = 2 AnswerInteger = NumberAInteger + NumberBInteger * NumberCInteger

(Multiple Choice)
4.8/5
(35)

To trap or catch exceptions,use a _______ block and enclose any statement(s)that might cause an error.

(Multiple Choice)
4.9/5
(32)

If a procedure contains a Dim statement and NameString is assigned as the identifier,NameString can be used _______.

(Multiple Choice)
4.8/5
(45)

Which of the following is NOT a valid rule for naming identifiers?

(Multiple Choice)
4.9/5
(33)

Variables that are declared inside a procedure can be used as counters and accumulators.(Ignore Static variables. )

(True/False)
4.9/5
(36)

Using the order of precedence and the formula below,what is AnswerInteger if?: NumberOneInteger = 2,NumberTwoInteger = 12,NumberThreeInteger = 20,and NumberFourInteger = 6 AnswerInteger = NumberOneInteger * (NumberTwoInteger + NumberThreeInteger)- NumberFourInteger / NumberOneInteger

(Multiple Choice)
4.8/5
(38)

Which of the following is NOT a valid Visual Basic data type?

(Multiple Choice)
4.9/5
(34)

If Option Strict is turned off and a declaration statement does not specify a data type,it will default to _______.

(Multiple Choice)
4.9/5
(31)

In order to control the number of decimals that will appear when a number is displayed,you can use _______.

(Multiple Choice)
4.9/5
(43)

Constants can store string or numeric values.

(True/False)
4.7/5
(38)

A constant contains data whose value may be changed during the execution of a project.

(True/False)
4.8/5
(40)

What will be the value of AnswerInteger after execution of the following line of code? Assume that NumberAInteger = 6,NumberBInteger = 4,NumberCInteger = 2 AnswerInteger = (NumberAInteger + NumberBInteger)* (NumberAInteger / NumberCInteger)

(Multiple Choice)
4.7/5
(38)

Which of the following is NOT a valid method for parsing?

(Multiple Choice)
4.8/5
(34)

When Option Explicit is turned on,you can use any variable name without first declaring it.

(True/False)
4.8/5
(37)

When naming a constant,you should use uppercase characters in the name with an underscore between the words and the data type at the end of the name.

(True/False)
4.8/5
(37)

Numeric constants may contain only the digits ( 0 - 9 ),a decimal point,and a sign ( + or - )at the left side.

(True/False)
4.8/5
(30)

GrandTotalDecimal is a valid variable name.

(True/False)
4.7/5
(38)

The reserved Visual Basic word,Dim,is short for dimension,which means _______.

(Multiple Choice)
4.8/5
(39)

The length of identifiers is limited to _______.

(Multiple Choice)
4.8/5
(43)

Variables that are declared in the Declarations section of a form module are available to all procedures in the form.

(True/False)
4.8/5
(35)
Showing 21 - 40 of 58
close modal

Filters

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