
CSCI 105 Introduction to Computer Programming Spring,
2009
Surprise Quiz #12
20 Points
MATCHING: Select the item from below that best matches the description.
1. _____ A file that is stored as plain text (ASCII) characters.
2. _____ A file that is stored in its internal binary format.
3. _____ This C# namespace directive is needed at the top of your program when you are accessing files.
4. _____ This variable type is needed when you are going to be reading data from a text file.
5. _____ This variable type is needed when you are going to be writing data to a text file.
6. _____ This dialog box allows users to search for a file to be used for reading data.
7. _____ This dialog box allows users to search for a file to be used for writing data.
8. _____ A variable of this type allows you to check the status of a data file (e.g., does the file exist?).
9. _____ A method that opens a file in the append mode.
10. _____ A method that opens a file in the read mode.
11. _____ A method that opens a file in the write mode.
12. _____ This method will write a line of data to a text file.
13. _____ This method will read a line of data from a text file.
14. _____ This method should be called when you are finished using a data file.
15. _____ This character is well known for hopping and hiding eggs for children.
16. _____ A Windows control that contains several lines of text and possible a scroll bar.
17. _____ A Windows control that contains a TextBox component coupled with a drop-down menu.
18. _____ A special character (e.g., comma) that is used to break up a line of data into multiple pieces.
19. _____ This method will break up a multiple-piece data item based on a given parsing character.
20. _____ This method can be overridden to generate a custom string to be returned for a given object.
CHOICES:
a) AppendText() b) binary file
c) Close() d) comboBox
e) CreateText() ab) delimiter
ac) Easter Bunny ad) FileInfo
ae) listBox bc) openFileDialog
bd) OpenText() be) ReadLine()
cd) saveFileDialog ce) split
de) streamReader abc) streamWriter
abd) text file abe) toString
ace) using System.IO; ade) WriteLine()
Extra Credit Super Mega Bonus Question: