O GoConqr está de visual novo! Conte para nós o que você achou.

Flashcards

Chapter 10 (Files)

Usuário eliminado O usuário eliminou as informações de disciplina Inglês 29 flashcards

Flashcards do conjunto (29)

  1. 1A file that data is written to is known as an _____.Output File
  2. 2A file that data is read from is known as an _____.Input File
  3. 3Before a file can be used by a program, it must be _____.Opened
  4. 4When a program is finished using a file, the file should be _____.Closed
  5. 5The contents of this type of file can be viewed in editor such as Notepad. Contents have been encoded as text, using a scheme such as ASCII or Unicode.Text File
  6. 6This type of file contains data that has not been converted to text.Binary File
  7. 7When working with this type of file, you access its data from the beginning of the file to the end of the file. All data must be read and no skips can be made.Sequential Access File
  8. 8When working with this type of file, you can jump directly to any piece of data in the file without reading the data that comes before it.Direct Access File (Random Access File)
  9. 9This is a small "holding section" in memory that many systems write data to before writing the data to a file. Increases system's performance. When this is full or when the file is closing, the computer's OS writes the contents to the file.Buffer
  10. 10This is a character or set of characters that marks the end of a piece of data. Used to separate the different items that are stored in a file.Delimiter
  11. 11This is a character or set of characters that marks the end of a file.EOF Marker (End-of-File Marker)
  12. 12This marks the location of the next item that will be read from a file. When an input file is opened, it will automatically be set to the first item in the file.Read Position
  13. 13When a file is opened in this module, data will be written at the end of the file's existing contents (the existing contents won't be erased upon reopening). If the file doesn't exist, it will be created.Append Mode
  14. 14True/False: The expression "NOT eof(myFile)" is equivalent to "eof(myFile) == False".True
  15. 15This is a single piece of data within a record.Field
  16. 16Short sequence of characters that appear at the end of a filename preceded by a period. (Example: .jpg, .txt, .doc)Filename Extension
  17. 17A complete set of data that describes one item.Record
  18. 18Document that describes the fields that are stored in a particular file, including their data types.File Specification Document
  19. 19Program that performs an ongoing task, but temporarily interrupts the task when a control variable changes its value. When this happens, some other action is performed and then the program resumes its ongoing task.Control-Break Processing
  20. 20A _____ is used to design the appearance of the printed report. Its a sheet of paper that has a grid, similar to graph paper.Print Spacing Chart
  21. 21There are always three steps that must be taken when a file is used by a program. What are they?Open the file, Process the file, and Close the file.
  22. 22True/False: In most languages, if a file with the specified external name already exists when the file is opened, the contents of the existing file will be erased.True
  23. 23Where are files normally stored?On the computer's disk.
  24. 24When writing a program that performs an operations on a file, what two file-associated names do you have to work with in your code?The file's external name and internal name. The external name is the file name that identifies the file on the disk. The internal is like a variable name. It identifies the file in your program code.
  25. 25What is the purpose of opening a file?Opening a file creates a connection between the file and the program. It also creates an association between the file and its internal name.
  26. 26What is the purpose of closing a file?Closing a file disconnects the file from the program.
  27. 27What is the purpose of the "eof" function?To determine whether or not the end of a file has been reached.
  28. 28Is it acceptable for a program to attempt to read beyond the end of a file?No, this would usually cause an error.
  29. 29What would it mean if the expression "eof(myFile)" were to return "True"?The the end of the file "myFile" has been reached.

Informações

Descrição
O usuário eliminou as informações de disciplina FlashCards sobre Chapter 10 (Files), criado por Usuário eliminado em 12-01-2021.
Criado por
Usuário eliminado · jan 2021
Atualizado
12 jan 2021
Visualizações
18
Histórico
  • Criado por Andrew Lewis · 14 dez 2020
  • Copiado por Andrew Lewis · 12 jan 2021
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?