Answer the following statements true (T) or false (F)

1. The members of a structure must all be of the same data type.
2. Suppose a structure is created with the code
Structure stateUSA
Dim capCity As String
Dim yearFounded As Integer
End Structure
in the Declarations section of the Code window. In this structure, the variable capCity is
known as a member.
3. Suppose a structure is created with the code
Structure stateUSA
Dim capCity As String
Dim stateNum As Integer
End Structure
in the Declarations section of the Code window. The following statement correctly makes
use of the stateNum member of this structure.
Dim stateWA As stateUSA
StateWA.stateNum = 42
4. A structure can contain members that are simple variables only; members cannot be arrays.
5. When a variable with a user-defined data type is passed to a procedure, the corresponding
parameter in the Sub or Function statement must be declared to be of the same data type.


1. F
2. T
3. T
4. F
5. T

Computer Science & Information Technology

You might also like to view...

UNIX relies on __________ to manage memory space.

a. virtual memory b. segmentation techniques c. both A and B d. neither A nor B

Computer Science & Information Technology

How many edges does a complete graph with n vertices have?

a. (n*(n-1))/2 b. n! c. n^2 d. n

Computer Science & Information Technology

Which of the following is not true about tables in a database?

A) They do not actually hold the data; forms hold the data, tables point to the data in the form. B) They hold the data in an organized grid of columns and rows. C) Databases can contain one or more tables. D) Tables contain one or more fields with various data types.

Computer Science & Information Technology

In computer simulation, the objects being studied are usually represented as ____.

A. data structures B. processes C. programs D. data

Computer Science & Information Technology