Thursday, July 30, 2009

Visual Basic questions on array and structure?

Could you please help me out with the practice questions.


1. The value stored in an array’s Length property is always ____ the highest subscript in the array.


a. exactly the same as c. one number more than


b. twice d. one number less than











2. You refer to a member variable in an array element using the syntax ____.


a. arrayname(subscript).memberVariable...


b. arrayname(subscript)-%26gt;memberVariabl...


c. arrayname(subscript)[memberVariable...


d. arrayname(subscript)@memberVariable...














3. When referring to a member variable of a structure variable, you use the ____ member access operator to separate the structure variable’s name from the member variable’s name.


a. indirection c. asterisk


b. arrow d. dot











4. In most applications, you enter the Structure statement in the form’s ____ section in the Code Editor window.


a. MainForm c. Declarations


b. Load d. Definitions








5. The members of a structure can be variables, constants, or ____.


a. structures c. procedures


b. classes d. control characters











6. You can create your own data types in Visual Basic using the ____ statement.


a. DataType c. UserDefinedType


b. Structure d. Define











7. When defining a structure, each member variable’s definition contains the keyword ____ followed by the name of the variable, the keyword As, and the variable’s datatype.


a. Dim c. Private


b. Member d. Public

Visual Basic questions on array and structure?
c, a, d, c, c, b, a/c/d. That is what I would say...
Reply:take a time to study this VB tutorial:





http://www.vbtutor.net/
Reply:A, C, D,


No comments:

Post a Comment