Site MapHelpFeedbackMultiple Choice Quiz
Multiple Choice Quiz
(See related pages)

1
Which of the following would not be better stored in a data file rather than a database.
A)employee file
B)date of the last program run
C)highest ID number assigned
D)a user preference
2
A stream is designed to transfer a series of ________________ from one location to another.
A)bytes
B)fields
C)records
D)databases
3
A(n) _______________ is the object that is used to transfer a series of bytes from one location to another in Visual Studio.
A)file
B)stream
C)database
D)element
4
Which of the following is not an advantage of XML files?
A)platform-independent
B)not tied to a specific language
C)text-based
D)All of these are advantages of XML
5
The process of storing data in a file is called _______________.
A)reading
B)input
C)writing
D)storing
6
What is the name of the method used by the StreamWriter object to copy data to a buffer in memory?
A)CopyLine
B)WriteLine
C)MoveBuffer
D)WriteBuffer
7
Which of the following statements will declare a new StreamWriter object correctly?
A)StreamWriter itemsStreamWriter = new StreamWriter"ItemFile.txt";
B)StreamWriter itemsStreamWriter = StreamWriter(ItemFile.txt);
C)StreamWriter itemsStreamWriter = StreamWriter("ItemFile.txt")
D)StreamWriter itemsStreamWriter = new StreamWriter("ItemFile.txt");
8
When is the data file that is used by a StreamWriter object actually opened?
A)when the WriteLine method is executed for the first time
B)when the Open method is executed
C)when the StreamWriter object is declared
D)none of these
9
Which of the following methods of the StreamWriter object writes items to a file with an Enter (carriage return) between the items?
A)WriteLine
B)Write
C)WriteLine and WriteItem
D)WriteItem
10
Code using the WriteLine method of the StreamWriter object is typically placed in a(n) _______________ event handler.
A)form open
B)button click
C)form close
D)update







Programming in Visual C# 2005Online Learning Center

Home > Chapter 11 > Multiple Choice Quiz