Chapter 21 A structure variable can be stored in an array only when

subject Type Homework Help
subject Pages 3
subject Words 580
subject Authors Diane Zak

Unlock document.

This document is partially blurred.
Unlock all pages and 1 million more documents.
Get Access
page-pf1
Chapter 21: Building Your Own Structure (Structures)
TRUE/FALSE
1. Pascal case means capitalizing the first letter in the name and the first letter of each subsequent word
in the name.
2. Between the Structure and End Structure clauses, you define the members included in the structure.
3. Most programmers use the Structure statement to create data types that contain procedures.
4. The variables defined in a structure are referred to as member variables.
5. The Structure statement itself reserves locations in the computer’s internal memory.
6. The Structure statement provides the pattern for a data type that can be used to reserve a memory
location.
7. The items in a structure must have the same data type.
8. In a structure, you can group together items having the String data type along with items having a
numeric data type.
9. In most applications, you enter the Structure statement in the form’s Declarations section.
10. The member variables in a structure variable cannot be used just like any other variables.
11. You can use a structure to group together related items.
12. When you pass a structure variable to a procedure, all of its members are passed automatically.
page-pf2
13. The ability to pass a structure variable and its members as one unit is the not an advantage of using a
structure.
14. A structure variable can be stored in an array only when its members have the same data type.
MULTIPLE CHOICE
1. You can create your own data types in Visual Basic using the ____ statement.
a.
UserType
c.
DateType
b.
UserStructure
d.
Structure
2. Data types created using the Structure statement are referred to as ____.
a.
structures
c.
object structures
b.
objects
d.
data objects
3. The convention with structure statements is to enter structure names using ____ case.
a.
LISP
c.
COBOL
b.
Pascal
d.
FORTRAN
4. Between the Structure and End Structure clauses, you define the ____ included in the structure.
a.
members
c.
parameters
b.
objects
d.
structs
5. The members of a structure can be ____.
a.
variables only
c.
variables or procedures
b.
procedures only
d.
neither variables nor procedures
6. 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
7. Variables declared using a structure as their data type are often referred to as ____ variables.
a.
object
c.
static
b.
structure
d.
internal
page-pf3
8. You use the ____ keyword to declare a procedure-level structure variable.
a.
Dim
c.
Static
b.
Public
d.
Internal
9. You use the ____ keyword to declare a class-level structure variable.
a.
Public
c.
Private
b.
Dim
d.
Static
10. 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
11. 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
12. The dot member access operator is a(n) ____.
a.
asterisk
c.
period
b.
semicolon
d.
colon
13. A structure variable can be passed to a procedure or stored in a(n) ____.
a.
function
c.
variable
b.
constant
d.
array
14. 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

Trusted by Thousands of
Students

Here are what students say about us.

Copyright ©2022 All rights reserved. | CoursePaper is not sponsored or endorsed by any college or university.