Questions: 619

Answers by our Experts: 487

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

What is the value of times(2,1) in the array that follows?

Dim times(,) As Decimal = { {23.0d, 3.5d}, {22.4d, 3.6d}, {21.3d, 3.7d} }


Select one:


a. 3.7

b. 22.4

c. 3.5

d. 21.3

e. 3.6
Which of the following statements declares a valid rectangular array?


Select one:


a. Dim ra As String

b. Dim ra(4,4) As String

c. Dim ra( ) ( ) As String

d. Dim ra( )( ) As String(4)(4)
Which of the following statements would you use to pass a variable named message by reference to a procedure named DisplayMessage?



Select one:


a. DisplayMessage(ByRef message)

b. DisplayMessage(message ByRef)

c. DisplayMessage(message As Reference)

d. DisplayMessage(message)
When you call a procedure with a parameter list, the arguments in the argument list must



Select one:


a. be coded in the same sequence as the parameters.

b. be declared with the same data types as the parameters.

c. have the same names as the parameters.

d. be coded in the same sequence and have the same data types as the parameters.

e. be coded in the same sequence with the same data types and the same names as the parameters.
Give an example of when a variable is scoped to a block of code. Explain why this is good programming practice.
If you code an Exit statement in a loop, it will cause the application to


a. jump to the beginning of the loop.

b. jump to the end of the loop.

c. enter break mode.

d. jump out of the loop.
Assuming Age = 34 and Height = 78, state whether each of the following expressions is true or false.

1. (Age > 12) AND (Height < 60)
2. (Age > 12) OR (Height < 60)
3. NOT ((Age > 12) AND (Height < 60))
Which of the following statements about If statements is not true?

a. An If statement is the Visual Basic implementation of the selection structure.

b. An If statement can have an unlimited number of ElseIf clauses.

c. Every If statement must include an Else clause.

d. You can nest If statements within the If, ElseIf, or Else clauses of other If statements.
What is the value of sum after the following code is executed? Why?

Dim sum As Integer = 5
For i As Integer = 1 To 5
sum += i
Next
Why is the order of evaluation of arithmetic expressions important? Illustrate your answer with an example showing the effect parentheses can have on the way an expression is evaluated.
LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS