Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

     You are here -- http://www.myVBnotes.netfirms.com    

.Home ] Up ] [ Memo ]


Test Questions

Jump to question:

[ 110 ]

[ 120 ]

[ 130 ]

[ 140 ]

[ 150 ]

 

101. A person's name, address, phone, and social security number are examples of a _____ .
.
a.. file
b record
c field
d character
.
102. You use the _____ variable to get data from a file.
.
a StreamWriter
b StreamReader
c StreamProcessor
d StreamData
.
103. You use the _____ character to combine two fields together in a file.
.
a addition (+)
b ampersand (&)
c at (@)
d tilde (~)
.
104. The statement _____ is the correct way to open a sequential file called names to read its contents.
.
a sreStreamWriter = IO.File.OpenText("names.txt")
b sreStreamReader = IO.File.OpenText(names.txt)
c sreStreamReader = IO.File.OpenText("names.txt")
d sreStreamreader = IO.File.CreateText("names.txt")
.
105. You use the _____ variable to output data to a file.
.
a StreamWriter
b StreamReader
c StreamProcessor
d StreamData
.

Back to Top

106. The _____ function allows you to add a specific number of spaces to a file.
.
a add
b space
c pad
d buffer
.
107. The statement _____ is the correct way to open a sequential file called names to add to its contents.
.
a mswrStreamWriter = IO.File.AppendText("names.txt")
b mswrStreamWriter = IO.File.AppendText(names.txt)
c mswrStreamWriter = IO.File.OpenText("names.txt")
d mswrStreamWriter = IO.File.CreateText("names.txt")
.
108. The IO prefix for accessing a file stands for _____ .
.
a InOrder
b InputOutput
c InputOrder
d InOutput
.
109. The word "Line" in the ReadLine method means _____.
.
a all data in the file
b a sequence of characters
c a sequence of characters, followed by the line terminator
d a line of Visual Basic .NET code
.
110. The statement _____ is the correct way to open a sequential file called names for the first time.
.
a mswrStreamWriter = IO.File.AppendText("names.txt")
b mswrStreamWriter = IO.File.CreateText(names.txt)
c mswrStreamWriter = IO.File.OpenText("names.txt")
d mswrStreamWriter = IO.File.CreateText("names.txt")
.

Back to Top

111. The _____ method cannot be used to access a sequential file.
.
a OpenText
b AddText
c AppendText
d CreateText
.
112. To check if there is more data in a sequential file you use the _____ method.
.
a look ahead
b check
c peek
d search
.
113.
 

All content on this site is free for private use only  |  Contributions are encouraged  |  Thank you to Netfirms for the free hosting  |  If copyright content is published here or links to certain content violates some right/law, contact the Webmaster to have it removed immediately.

 

Site launched: October 2005  |  Updated: July 20, 2006  |  Link exchange  |  Site map  |  Contact us