creation: 8/13/99; revised 05/21/03


Fill in the Blanks

Instructions:   This is an ungraded fill-in-the-blank exercise. Each question consists of a sentence with one or two words left out. A button represents the missing word(s). For each question, think of the word or phrase that should fill each blank, then click on the buttons to see if you are correct. No grade is calculated for this exercise.


1.     From an application programmer's point of view the only way to store information semi-permanently is to place it in a .



2.     A file is a ,   ,   collection of



3.     Files are usually stored on .



4.     As far as the hardware of a computer system is concerned, a file consists of .



5.     A is a file that contains bytes that represent characters, and bytes that represent control characters.



6.     The type of file usually used as the source file for a computer program is a .



7.     With most operating systems, any program that sends its output to the monitor can send its output to a file using .



8.     Fill in the blank so that the following will create a file called output.txt. Assume that the program Hello ordinarily writes characters to the monitor.

C:\MyDir> java Hello        



9.     Say that there is already a file named output.txt in the current directory. What happens to it when the above command is given? Its old contents are .



10.     Say you want to append the output of the program to the end of a file called output.txt. Fill in the blanks to do this.

C:\MyDir> java Hello        



End of the Exercise. If you want to do it again, click on "Refresh" in your browser window. Click here to go back to the main menu.