Deck 11: Structures and Sequential Files

ملء الشاشة (f)
exit full mode
سؤال
In Visual Basic, you use a ____ object to read data from a sequential access file.

A) StreamReaderWriter
B) StreamWriter
C) StreamRandom
D) StreamReader
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
The "____" filename extension typically is used when naming sequential access files.

A) ini
B) txt
C) wri
D) rtf
سؤال
The Structure statement ends with the ____ keyword(s).

A) Stop Structure
B) Exit Structure
C) End
D) End Structure
سؤال
Sending data to a file is referred to as ____ the file.

A) interfacing with
B) burning
C) reading
D) writing to
سؤال
A class-level structure variable is declared using the keyword ____.

A) Dim
B) Private
C) Public
D) Structure
سؤال
In a Structure statement, each member variable's definition contains the keyword ____ followed by the variable's name.

A) Public
B) Private
C) Dim
D) As
سؤال
You can use a structure to declare a variable.
سؤال
Getting data from a file is referred to as ____ the file.

A) interfacing with
B) burning
C) reading
D) writing to
سؤال
Programmers use ____ to group related items into one unit.

A) members
B) constants
C) scalar variables
D) structures
سؤال
A sequential access file is often referred to as a ____ file.

A) text
B) random
C) binary
D) byte
سؤال
The ____ method can be used to avoid the run time error that occurs when the computer cannot locate an input file..

A) Check
B) File
C) Exists
D) Ready
سؤال
You can write data to a sequential access file using the ____ method.

A) Save
B) Write
C) Append
D) Open
سؤال
In most cases, an application will not need to read each line of text contained in a sequential access file.
سؤال
A form's ____ event occurs when a form is about to be closed.

A) FormClosing
B) Exiting
C) FormExit
D) FormEnding
سؤال
The PadLeft and PadRight methods pad a string with a character until the string is a specified length.
سؤال
You can create your own data types in Visual Basic using the ____ statement.

A) Call
B) Structure
C) Data
D) Assignment
سؤال
The only time that a form's FormClosing event occurs is when the user clicks the Close button on the form's title bar.
سؤال
The members included in a structure can be variables, constants, or procedures.
سؤال
The Exists method returns a(n) ____ value.

A) string
B) integer
C) Boolean
D) character
سؤال
You refer to a member variable in an array element using the syntax ____.

A) arrayName.memberVariableName(subscript)
B) arrayName(subscript).memberVariableName
C) arrayName(memberVariableName)(subscript)
D) arrayName(subscript).variables(memberVariableName)
سؤال
A form's FormClosing event can occur when the computer processes the ____ statement in the form's code.

A) My.Computer.Close()
B) MyComputer.Close()
C) Me.Close()
D) My.Close()
سؤال
A(n) ____ is a single item of information about a person, place, or thing.

A) table
B) entity
C) field
D) attribute
سؤال
Match each item with a statement below.
a.input file
f.dot member access operator
b.Private
g.record
c.AppendText
h.output file
d.Dim
i.field
e.structure
Used to declare a class-level structure variable.
سؤال
Match each item with a statement below.
a.input file
f.dot member access operator
b.Private
g.record
c.AppendText
h.output file
d.Dim
i.field
e.structure
A file to which information is written.
سؤال
You should use the ____________________ method to close an output sequential access file as soon as you are finished using it.
سؤال
Match each item with a statement below.
a.input file
f.dot member access operator
b.Private
g.record
c.AppendText
h.output file
d.Dim
i.field
e.structure
Used to create a procedure-level structure variable.
سؤال
You can prevent the computer from closing a form by setting the Cancel property of the FormClosing procedure's ____ parameter to True.

A) form
B) e
C) load
D) start
سؤال
Match each item with a statement below.
a.input file
f.dot member access operator
b.Private
g.record
c.AppendText
h.output file
d.Dim
i.field
e.structure
Contains all of the necessary data about a specific person, place, or thing
سؤال
Match each item with a statement below.
a.input file
f.dot member access operator
b.Private
g.record
c.AppendText
h.output file
d.Dim
i.field
e.structure
New data is written after existing data in the file
سؤال
Match each item with a statement below.
a.input file
f.dot member access operator
b.Private
g.record
c.AppendText
h.output file
d.Dim
i.field
e.structure
A user-defined data type.
سؤال
Match each item with a statement below.
a.input file
f.dot member access operator
b.Private
g.record
c.AppendText
h.output file
d.Dim
i.field
e.structure
A file that is read by a computer.
سؤال
Which of the following statements removes the first item from the booksList box?

A) booksListBox.Remove(0)
B) booksListBox.RemoveAt(1)
C) booksListBox.Items.RemoveAt(0)
D) booksListBox.Items.RemoveAt(1)
سؤال
You can use the ____ method to write a specific number of space characters in a string.

A) Strings.Space
B) Strings.Write
C) Strings.Character
D) Strings.Add
سؤال
Match each item with a statement below.
a.input file
f.dot member access operator
b.Private
g.record
c.AppendText
h.output file
d.Dim
i.field
e.structure
A single item of information about a person, place, or thing
سؤال
A(n) ____ is a group of related fields that contain all of the necessary data about a specific person, place, or thing.

A) record
B) table
C) column
D) entity
سؤال
Match each item with a statement below.
a.input file
f.dot member access operator
b.Private
g.record
c.AppendText
h.output file
d.Dim
i.field
e.structure
Used to separate the structure variable's name from the member variable's name.
سؤال
Variables included in a structure are referred to as ____________________ variables.
سؤال
When using the ____________________ method, the next character written to a file will appear on the line immediately below the string.
سؤال
Variables declared using a structure are often referred to as ____________________ variables.
سؤال
Data types created by the Structure statement are referred to as ____________________ data types.
سؤال
Under what situations does a form's FormClosing event occur?
سؤال
When using the Exists method for determining whether a file exists, explain what happens if you do not include a folder path.
سؤال
Write a statement to declare a class-level variable named salaried of a structure named Employee.
سؤال
What is the Split function used for?
سؤال
Suppose a structure variable named manager contains a salary member variable. Write a statement that multiplies the contents of the salary member variable by 1.05, and then assigns the result to the member variable.
سؤال
Explain what a delimiter character is used for.
سؤال
Explain the difference between a field and a record and provide an example of each.
سؤال
Explain what it means to access data sequentially from a sequential access file.
سؤال
Write a statement to declare a procedure-level variable named manager of a structure named Employee.
سؤال
Describe the advantage of passing a structure variable to a procedure.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 11: Structures and Sequential Files
1
In Visual Basic, you use a ____ object to read data from a sequential access file.

A) StreamReaderWriter
B) StreamWriter
C) StreamRandom
D) StreamReader
D
2
The "____" filename extension typically is used when naming sequential access files.

A) ini
B) txt
C) wri
D) rtf
B
3
The Structure statement ends with the ____ keyword(s).

A) Stop Structure
B) Exit Structure
C) End
D) End Structure
D
4
Sending data to a file is referred to as ____ the file.

A) interfacing with
B) burning
C) reading
D) writing to
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
A class-level structure variable is declared using the keyword ____.

A) Dim
B) Private
C) Public
D) Structure
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
In a Structure statement, each member variable's definition contains the keyword ____ followed by the variable's name.

A) Public
B) Private
C) Dim
D) As
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
You can use a structure to declare a variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
Getting data from a file is referred to as ____ the file.

A) interfacing with
B) burning
C) reading
D) writing to
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
Programmers use ____ to group related items into one unit.

A) members
B) constants
C) scalar variables
D) structures
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
A sequential access file is often referred to as a ____ file.

A) text
B) random
C) binary
D) byte
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
The ____ method can be used to avoid the run time error that occurs when the computer cannot locate an input file..

A) Check
B) File
C) Exists
D) Ready
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
You can write data to a sequential access file using the ____ method.

A) Save
B) Write
C) Append
D) Open
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
In most cases, an application will not need to read each line of text contained in a sequential access file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
A form's ____ event occurs when a form is about to be closed.

A) FormClosing
B) Exiting
C) FormExit
D) FormEnding
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
The PadLeft and PadRight methods pad a string with a character until the string is a specified length.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
You can create your own data types in Visual Basic using the ____ statement.

A) Call
B) Structure
C) Data
D) Assignment
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
The only time that a form's FormClosing event occurs is when the user clicks the Close button on the form's title bar.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
The members included in a structure can be variables, constants, or procedures.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
The Exists method returns a(n) ____ value.

A) string
B) integer
C) Boolean
D) character
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
You refer to a member variable in an array element using the syntax ____.

A) arrayName.memberVariableName(subscript)
B) arrayName(subscript).memberVariableName
C) arrayName(memberVariableName)(subscript)
D) arrayName(subscript).variables(memberVariableName)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
A form's FormClosing event can occur when the computer processes the ____ statement in the form's code.

A) My.Computer.Close()
B) MyComputer.Close()
C) Me.Close()
D) My.Close()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
A(n) ____ is a single item of information about a person, place, or thing.

A) table
B) entity
C) field
D) attribute
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
Match each item with a statement below.
a.input file
f.dot member access operator
b.Private
g.record
c.AppendText
h.output file
d.Dim
i.field
e.structure
Used to declare a class-level structure variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
Match each item with a statement below.
a.input file
f.dot member access operator
b.Private
g.record
c.AppendText
h.output file
d.Dim
i.field
e.structure
A file to which information is written.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
You should use the ____________________ method to close an output sequential access file as soon as you are finished using it.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
Match each item with a statement below.
a.input file
f.dot member access operator
b.Private
g.record
c.AppendText
h.output file
d.Dim
i.field
e.structure
Used to create a procedure-level structure variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
You can prevent the computer from closing a form by setting the Cancel property of the FormClosing procedure's ____ parameter to True.

A) form
B) e
C) load
D) start
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
Match each item with a statement below.
a.input file
f.dot member access operator
b.Private
g.record
c.AppendText
h.output file
d.Dim
i.field
e.structure
Contains all of the necessary data about a specific person, place, or thing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
Match each item with a statement below.
a.input file
f.dot member access operator
b.Private
g.record
c.AppendText
h.output file
d.Dim
i.field
e.structure
New data is written after existing data in the file
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
Match each item with a statement below.
a.input file
f.dot member access operator
b.Private
g.record
c.AppendText
h.output file
d.Dim
i.field
e.structure
A user-defined data type.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
Match each item with a statement below.
a.input file
f.dot member access operator
b.Private
g.record
c.AppendText
h.output file
d.Dim
i.field
e.structure
A file that is read by a computer.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
Which of the following statements removes the first item from the booksList box?

A) booksListBox.Remove(0)
B) booksListBox.RemoveAt(1)
C) booksListBox.Items.RemoveAt(0)
D) booksListBox.Items.RemoveAt(1)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
You can use the ____ method to write a specific number of space characters in a string.

A) Strings.Space
B) Strings.Write
C) Strings.Character
D) Strings.Add
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
Match each item with a statement below.
a.input file
f.dot member access operator
b.Private
g.record
c.AppendText
h.output file
d.Dim
i.field
e.structure
A single item of information about a person, place, or thing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
A(n) ____ is a group of related fields that contain all of the necessary data about a specific person, place, or thing.

A) record
B) table
C) column
D) entity
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
Match each item with a statement below.
a.input file
f.dot member access operator
b.Private
g.record
c.AppendText
h.output file
d.Dim
i.field
e.structure
Used to separate the structure variable's name from the member variable's name.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
Variables included in a structure are referred to as ____________________ variables.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
When using the ____________________ method, the next character written to a file will appear on the line immediately below the string.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
Variables declared using a structure are often referred to as ____________________ variables.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
Data types created by the Structure statement are referred to as ____________________ data types.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
Under what situations does a form's FormClosing event occur?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
When using the Exists method for determining whether a file exists, explain what happens if you do not include a folder path.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
Write a statement to declare a class-level variable named salaried of a structure named Employee.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
What is the Split function used for?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
Suppose a structure variable named manager contains a salary member variable. Write a statement that multiplies the contents of the salary member variable by 1.05, and then assigns the result to the member variable.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
Explain what a delimiter character is used for.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
Explain the difference between a field and a record and provide an example of each.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
Explain what it means to access data sequentially from a sequential access file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
Write a statement to declare a procedure-level variable named manager of a structure named Employee.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
Describe the advantage of passing a structure variable to a procedure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.