Deck 11: Structures and Sequential Files
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
العب
ملء الشاشة (f)
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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)
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()
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
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.
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.
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.
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
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
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
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.
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.
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)
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
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
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
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.
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