Python Unit 7

  1. Random access memory is ________.




    A. volatile
  2. Which is true of text files?




    A. Text files contain data that can be read in a text editor.
  3. Every file on a storage device has a __________. 




    C. both of the above
  4. Which of the following is true regarding the data hierarchy?




    A. Files contain records
  5. The process of ________ a file locates it on a storage device and associates a variable name within your program with the file.




    C. opening
  6. When you write to a file, you ____________.




    C. copy data from memory to a storage device
  7. Unlike when you print a report or display information on a screen, when a program's output is a data file, you do not ________.




    A. include explanations or formatting such as dollar signs
  8. When you close a file, it ____________.




    B. is no longer available to the program
  9. A file in which records are stored one after another in order based on the contents of a field is a(n) _________ file.




    C. sequential
  10. When you combine two or more sorted files while maintaining their sequential order based on a field, you are ________ the files.




    B. merging
  11. A control break occurs when a program ___________.




    B. pauses to perform special processing based on the value of a field
  12. Which of the following is an example of a control  break report?




    C. a list of all customers of a business in zip code order, with a count of the number of customers who reside in each zip code
  13. A control break field ___________.




    A. causes special processing to occur
  14. Wherever a control break occurs during record processing in any control break program, you must ________.




    D. update the value in the control break field
  15. Assume that you are writing a program to merge two files named FallStudents and SpringStudents. Each file contains a list of students enrolled in a programming logic course during the semester indicated, and each file is sorted in student ID number order. After the program compares two records and subsequently writes a Fall student to output, the next step is to __________.





    A. read a FallStudents record
  16. When you merge records from two or more sequential files, the usual case is that the records in the files __________.




    A. have the same format
  17. A file that holds more permanent data than a transaction file is a ______ file.




    A. Master
  18. A transaction file is often used to ___________ another file>




    B. update
  19. The saved version of a file that does not contain the most recently applied transactions is known as a _______ file.




    C. parent
  20. Random access files are used most frequently in all of the following EXCEPT _____________.




    A. batch processing
Author
jdavis123
ID
357570
Card Set
Python Unit 7
Description
Updated