creation: 8/13/99; revised 05/21/03, 06/17/15


Fill in the Blanks

Instructions:   This is a fill-in-the-blank exercise. Each question consists of a sentence with one or two words left out. For each question, think of the word or phrase that should fill each blank, then click on the blanks to see if you are correct.


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 is only a collection of _________ .



5.     In a ____ _____ the bytes represent printable characters and control characters.



6.     A source file for a computer program is usually a file of this type: ____ _____ .



7.     A program that usually sends its output to the monitor can send its output to a disk file by 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.

go to home page