Deck 21: Building Your Own Structure Structures

Full screen (f)
exit full mode
Question
Pascal case means capitalizing the first letter in the name and the first letter of each subsequent word in the name.
Use Space or
up arrow
down arrow
to flip the card.
Question
Variables declared using a structure as their data type are often referred to as ____ variables.

A) object
C) static
B) structure
D) internal
Question
You can create your own data types in Visual Basic using the ____ statement.

A) UserType
C) DateType
B) UserStructure
D) Structure
Question
A structure variable can be stored in an array only when its members have the same data type.
Question
The members of a structure can be ____.

A) variables only
C) variables or procedures
B) procedures only
D) neither variables nor procedures
Question
When you pass a structure variable to a procedure, all of its members are passed automatically.
Question
Data types created using the Structure statement are referred to as ____.

A) structures
C) object structures
B) objects
D) data objects
Question
The Structure statement itself reserves locations in the computer's internal memory.
Question
Between the Structure and End Structure clauses, you define the ____ included in the structure.

A) members
C) parameters
B) objects
D) structs
Question
The convention with structure statements is to enter structure names using ____ case.

A) LISP
C) COBOL
B) Pascal
D) FORTRAN
Question
Between the Structure and End Structure clauses, you define the members included in the structure.
Question
Most times, the "best" way to solve a problem is simply a matter of personal preference.
Question
The items in a structure must have the same data type.
Question
In most structures, the member variables are defined using the keyword ____ followed by the variable's name, the keyword As, and the variable's data type.

A) Private
C) Dim
B) Static
D) Public
Question
In a structure, you can group together items having the String data type along with items having a numeric data type.
Question
You use the ____ keyword to declare a procedure-level structure variable.

A) Dim
C) Static
B) Public
D) Internal
Question
The Structure statement provides the pattern for a data type that can be used to reserve a memory location.
Question
The ability to pass a structure variable and its members as one unit is the only advantage of using a structure.
Question
Most programmers use the Structure statement to create data types that contain procedures.
Question
You can use a structure to group together related items.
Question
You refer to a member variable by preceding the member's name with the name of the ____ variable.

A) member
C) module
B) object
D) structure
Question
The dot member access operator is a(n) ____.

A) asterisk
C) period
B) semicolon
D) colon
Question
You use the ____ to separate the structure variable's name from the member variable's name.

A) dot member access operator
C) dot member access
B) access operator
D) dot access operator
Question
To access a member of a structure variable in an array, you use the syntax ____.

A) memberVariableName.arrayName(subscript)
B) arrayName(subscript).memberVariableName
C) arrayName.memberVariableName(subscript)
D) memberVariableName(subscript).arrayName
Question
You use the ____ keyword to declare a class-level structure variable.

A) Public
C) Private
B) Dim
D) Static
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 21: Building Your Own Structure Structures
1
Pascal case means capitalizing the first letter in the name and the first letter of each subsequent word in the name.
True
2
Variables declared using a structure as their data type are often referred to as ____ variables.

A) object
C) static
B) structure
D) internal
B
3
You can create your own data types in Visual Basic using the ____ statement.

A) UserType
C) DateType
B) UserStructure
D) Structure
D
4
A structure variable can be stored in an array only when its members have the same data type.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
The members of a structure can be ____.

A) variables only
C) variables or procedures
B) procedures only
D) neither variables nor procedures
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
When you pass a structure variable to a procedure, all of its members are passed automatically.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
Data types created using the Structure statement are referred to as ____.

A) structures
C) object structures
B) objects
D) data objects
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
The Structure statement itself reserves locations in the computer's internal memory.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
Between the Structure and End Structure clauses, you define the ____ included in the structure.

A) members
C) parameters
B) objects
D) structs
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
The convention with structure statements is to enter structure names using ____ case.

A) LISP
C) COBOL
B) Pascal
D) FORTRAN
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
Between the Structure and End Structure clauses, you define the members included in the structure.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
Most times, the "best" way to solve a problem is simply a matter of personal preference.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
The items in a structure must have the same data type.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
In most structures, the member variables are defined using the keyword ____ followed by the variable's name, the keyword As, and the variable's data type.

A) Private
C) Dim
B) Static
D) Public
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
In a structure, you can group together items having the String data type along with items having a numeric data type.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
You use the ____ keyword to declare a procedure-level structure variable.

A) Dim
C) Static
B) Public
D) Internal
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
The Structure statement provides the pattern for a data type that can be used to reserve a memory location.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
The ability to pass a structure variable and its members as one unit is the only advantage of using a structure.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
Most programmers use the Structure statement to create data types that contain procedures.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
You can use a structure to group together related items.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
You refer to a member variable by preceding the member's name with the name of the ____ variable.

A) member
C) module
B) object
D) structure
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
The dot member access operator is a(n) ____.

A) asterisk
C) period
B) semicolon
D) colon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
You use the ____ to separate the structure variable's name from the member variable's name.

A) dot member access operator
C) dot member access
B) access operator
D) dot access operator
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
To access a member of a structure variable in an array, you use the syntax ____.

A) memberVariableName.arrayName(subscript)
B) arrayName(subscript).memberVariableName
C) arrayName.memberVariableName(subscript)
D) memberVariableName(subscript).arrayName
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
You use the ____ keyword to declare a class-level structure variable.

A) Public
C) Private
B) Dim
D) Static
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.