Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

CSCI 105 Spring 2009 Quiz 12: Computer Programming File I/O Matching Questions, Quizzes of Computer Science

The questions and answers for a surprise quiz in a computer science 105: introduction to computer programming course, focusing on file i/o operations in c#. Students are required to match each item with its corresponding description.

Typology: Quizzes

Pre 2010

Uploaded on 08/07/2009

koofers-user-8rv
koofers-user-8rv 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
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:
pf2

Partial preview of the text

Download CSCI 105 Spring 2009 Quiz 12: Computer Programming File I/O Matching Questions and more Quizzes Computer Science in PDF only on Docsity!

CSCI 105 Introduction to Computer Programming Spring, 2009 Surprise Quiz # 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:
  1. Who is not listed on page 10-9 of your textbook? a) Adam Archer b) Bonnie Baker c) Carl Collins d) Donna Drake e) Ernie Evans