Answer to Question #50512 in Visual Basic for Bender

Question #50512
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)
1
Expert's answer
2015-01-30T03:31:57-0500
Answer: B

An array isa set of values that are logically related to each other, such as the number of
students in each grade in a grammar school.
You candefine the size of an array several ways. You can supply the size when the
array is declared.
So, A – isscalar variable (is not consist brackets)
B– is array 4x4;
C– is declare array variables but don’t assign arraysto them, and must be still create an array, initialize it, and assign it to the
variable; so, it might be isn’t rectangle
D– is mistake description of variable

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS