Professional Documents
Culture Documents
Full download Starting Out with Programming Logic and Design 4th Edition Tony Gaddis Test Bank all chapter 2024 pdf
Full download Starting Out with Programming Logic and Design 4th Edition Tony Gaddis Test Bank all chapter 2024 pdf
Full download Starting Out with Programming Logic and Design 4th Edition Tony Gaddis Test Bank all chapter 2024 pdf
https://testbankfan.com/product/starting-out-with-programming-
logic-and-design-4th-edition-tony-gaddis-solutions-manual/
https://testbankfan.com/product/starting-out-with-programming-
logic-and-design-3rd-edition-tony-gaddis-test-bank/
https://testbankfan.com/product/starting-out-with-programming-
logic-and-design-3rd-edition-tony-gaddis-solutions-manual/
https://testbankfan.com/product/starting-out-with-alice-3rd-
edition-tony-gaddis-test-bank/
Starting Out with Python 4th Edition Gaddis Test Bank
https://testbankfan.com/product/starting-out-with-python-4th-
edition-gaddis-test-bank/
https://testbankfan.com/product/starting-out-with-visual-c-4th-
edition-gaddis-test-bank/
https://testbankfan.com/product/starting-out-with-c-from-control-
structures-through-objects-7th-edition-tony-gaddis-test-bank/
https://testbankfan.com/product/starting-out-with-java-from-
control-structures-through-objects-5th-edition-tony-gaddis-test-
bank/
https://testbankfan.com/product/starting-out-with-java-from-
control-structures-through-objects-5th-edition-tony-gaddis-
solutions-manual/
Gaddis: Starting Out with Programming Logic & Design Test Bank
Chapter Ten
MULTIPLE CHOICE
1. Programmers usually refer to the process of saving data to a file as _______________a file.
a. saving data to
b. copying data to
c. writing data to
d. put data to
e. None of the above
ANS: C
2. When a web page is visited, the browser stores a small file on the user's computer, known as a
___________.
a. cookie
b. biscuit
c. web file
d. temp file
e. None of the above
ANS: A
3. What is the term used to describe a file that data is read from?
a. In file
b. Out file
c. Output file
d. Input file
e. None of the above
ANS: D
ANS: C
5. Opening a(n) ________ file creates a file on disk and allows the program to write data to it.
a. In
b. Out
c. Output
d. Input
e. None of the above
ANS: C
©2016 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved.
Gaddis: Starting Out with Programming Logic & Design Test Bank Chapter Ten 2
6. In the _________ step the data is either written to the file or read from the file.
a. opening
b. processing
c. closing
d. I/O
e. None of the above
ANS: B
7. What type of data file can be opened and viewed in an editor such as Notepad?
a. Text file
b. Output file
c. Input file
d. Binary file
e. None of the above
ANS: A
8. What type of data file cannot be opened and viewed in an editor such as Notepad?
a. Text file
b. Output file
c. Input file
d. Binary file
e. None of the above
ANS: D
9. Which type of data file access starts from the beginning of the file and proceeds to the end of
the file?
a. Direct access
b. Sequential access
c. Input access
d. Output access
e. None of the above
ANS: B
10. Which type of data file access allows access to any piece of data in the file without reading the
data that comes before it?
a. Direct access
b. Sequential access
c. Input access
d. Output access
e. None of the above
ANS: A
11. What is a short sequence of characters that appears at the end of a filename and is preceded
by a period called?
a. File extension
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved.
Gaddis: Starting Out with Programming Logic & Design Test Bank Chapter Ten 3
b. Filetype extension
c. Filename extension
d. Fileaccess extension
e. None of the above
ANS: C
12. Which flowcharting symbol is used for opening and closing files?
a. Rectangle
b. Parallelogram
c. Diamond
d. Oval
e. None of the above
ANS: A
13. In an input file, what maintains the location of the next item that will be read from the file?
a. Marker
b. Locator
c. Read locator
d. Read marker
e. Read position
ANS: E
ANS: B
15. What is the terminology used when a task is temporarily interrupted as a control variable
reaches a specific value?
a. Control break
b. End of page
c. Break
d. Control break logic
e. None of the above
ANS: D
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved.
Gaddis: Starting Out with Programming Logic & Design Test Bank Chapter Ten 4
d. Web browsers
e. All of the above
ANS: E
17. When a piece of data is written to a file, it is copied from a variable in ____________ to the file.
a. cyberspace
b. RAM
c. flash memory
d. All of the above
e. None of the above
ANS: B
ANS: B
TRUE/FALSE
1. True/False: The data saved in a file will remain there even after the program stops running but
will be wiped out when the computer is turned off.
ANS: F
2. True/False: Data files are less and less needed in current gaming software.
ANS: F
ANS: T
ANS: F
5. True/False: The sequential access file is similar to the way a cassette player works.
ANS: T
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved.
Gaddis: Starting Out with Programming Logic & Design Test Bank Chapter Ten 5
6. True/False: The direct access file is similar to the way an MP3 player works: the player starts
from the beginning.
ANS: F
7. True/False: A file with the extension .doc usually indicates that the file contains a note written by
a doctor.
ANS: F
8. True/False: The use of a buffer increases the system’s performance because writing data to
memory is faster than writing to a disk.
ANS: T
9. True/False: When an input file is opened, the read position is initially set to the first item in the
file.
ANS: T
10. True/False: The programmer has the option to append data anywhere in an output file.
ANS: F
11. True/False: The term output file is used to describe a file that data is read from.
ANS: F
12. True/False: The term input file is used to describe a file that data is written to.
ANS: F
ANS: file
ANS: Cookies
3. The ________ file is used to describe a file that data is written to.
ANS: output
4. When a program performs the task of retrieving data from a file, it is known as __________ data
from/to the file.
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved.
Gaddis: Starting Out with Programming Logic & Design Test Bank Chapter Ten 6
ANS: reading
5. The process of ________ a file creates a connection between the file and the program.
ANS: opening
6. When a program ________ a file, it disconnects the file from the program.
ANS: closes
7. A ________ file contains data that has been encoded as text, using one of the computer's
encoding schemes.
ANS: text
ANS: random
9. The ________________ usually indicates the type of data stored in the file.
10. When writing a program to perform a file operation, there are _________ names that you have
to work with in the program’s code.
ANS: two
11. The word OutputFile indicates the _________ in which the file is used.
ANS: mode
ANS: buffer
13. The _________ marker indicates where the file’s content ends.
14. Data in a file is organized in _______, which are a complete set of data about an item.
ANS: records
15. In flowcharting, the _________ symbol is used to read data from a file.
ANS: parallelogram
16. There are always ________ steps that must be taken when a file is used by a program.
ANS: three
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved.
Gaddis: Starting Out with Programming Logic & Design Test Bank Chapter Ten 7
17. ____________ access files are easy to work with, and you can use them to gain an
understanding of basic file operations.
ANS: Sequential
18. 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 ____________.
ANS: erased
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved.
Another random document with
no related content on Scribd:
Gould, Michael, clerk, 249
Gould, William, lieutenant of marines, 52
Gower, the Hon. John Leveson, rear-admiral, 64;
a ‘tight hand of the watch,’ 65;
used to ‘play hell and turn up Jack,’ ib.;
to get up early, 65–6;
an able tactician, 67;
had an astonishing memory, ib.;
hated puppyism, ib.; 90
Graham, Aaron, admiral’s secretary, 45;
afterwards magistrate at Bow Street, 53
Granger, William, midshipman, 94
Grant, Charles, midshipman, 118
Grant, George, secretary and purser, 124
Grant, Gregory, midshipman, 94
Grasse, Count de, French commander-in-chief, prisoner, 23
Graves, John, midshipman, at Leghorn, 139;
posse of friars, 141;
his afternoon nap disturbed, 149–50, 153
Graves, Lord Thomas, admiral, 10–13
Gray, George, gunner, 96
Greene, Pitt Burnaby, midshipman, 116
Grey, George, gunner, 70
Grey, George, lieutenant, 113
Grindall, Richard, captain, 228
Grouchy, French general, in Bantry Bay, 188
Guichen, Count de, French admiral, 16
Gullet, Christopher, midshipman, 63
Gunter, captain, 180
Hacker, Jerry, the purser, messed by himself, 165;
a miser, 166;
detests midshipmen, 166–7;
curses the peas, 168;
a most unaccountable fellow, 171
Hall, James, boatswain, 53
Hallowell, afterwards Carew, Benjamin, lieutenant, 113
Hamilton, Sir C., captain, 156
Hamilton, Edward, lieutenant, 172–3, 175;
captain, recaptured the Hermione, 176
Hamlin, midshipman, 63
Hamlin, D., midshipman, 63
Hamond, G. E., midshipman, 177
Hancock, Richard Turner, signal midshipman, 116
Hand organs, 20 n., 88
Handkerchiefs, black silk, worn by seamen, 130 n., 144
Hanwell, lieutenant, 32
Hardy, James, captain, inspects and praises the Blonde, 204–5;
sends her some buckets of paint, 205
Harley, Henry Roland, clerk, 55;
purser, 194–5
Harmood, Harry, captain, 11, 13;
commissioner, 174
Harrison, Mr., private secretary to Lord Spencer, 176
Harrison, John, gunner, 224
Harrison, William, mate, 248
Hartley, Martin Pert, midshipman, 40
Hastings, points of interest near, 254–5
Hawford, Richard, lieutenant, lost in the Rover, 8
Hearle, Benjamin, carpenter, 14
Hell-fire club, 44;
members’ dress, 48–9 and n.
Hemmings, Mr., master attendant at Plymouth, 191
Henikoff, Russian admiral, 184, 207
Herbert, Richard, midshipman, 53
Hervey, John, midshipman, 117
Hervey, Lady, pelted with sugar plums, 140
Hervey, Lord, ambassador, pelted with sugar plums, 140
Hewlett, Thomas, midshipman, 153
Heycock, Richard, midshipman, 94, 118;
refuses to pay mess fines, 108
Hickey, Frederick, lieutenant, sells his prize money, 181;
put on shore in the mutiny, 193, 201
Hill, John, boatswain, 63
Hinton, John, midshipman, 116
Hinton, Martin, lieutenant, 176
Hodges, John, midshipman, died of yellow fever, 249
Hodgskin, John A., midshipman, 125
Holland, John Wentworth, midshipman, 54
Hollingsworth, John, midshipman, killed in battle, 95 n.
Holloway, John, rear-admiral, memoir of, criticised, 27–8, 226, 247
Holmes, midshipman, is ‘caught napping,’ 86–7
Holmes, James, lieutenant of marines, 248
Home, Sir George, captain, 22
Hood, Lord, admiral, commands the Russian armament, 99;
sails for the Mediterranean, 126;
Toulon fleet surrenders to, 128;
chases the French fleet into Gourjean Bay, 146;
siege of Bastia, 148, 145 n., 172, 176
Hoops, iron, taken on board, 230;
not worth their carriage, 231
Hope, Robert, surgeon, 124
Horsley, Richard, midshipman, 249
Hotham, William (afterwards Lord), vice-admiral, 126, 143;
misses a great opportunity, 145–7;
an able second in command, 147–8
Houghton, Charles, midshipman, 225
Houghton, Daniel, major, the African traveller, 225
Houghton, Frederick, midshipman, drowned, 225
Howe, Lord, admiral, 21, 25;
aspersions on, 28;
action off Cape Spartel, 29–33;
hoists the union flag, 98 n., 80 n., 99, 100
Huish, Robert, purser, his terror in a boat, 219–20, 224
Humphries, Christopher, boatswain, 202
Hungerford, Emanuel, lieutenant, an amusing fellow, 238;
strikes his former captain, 242;
a very able officer, 243, 247
Hunt, Peter, midshipman, a droll fellow, 125
Hutchins, Henry, purser, 13
Hutchinson, Edward, mate, 152
Hutt, John, captain, 121;
an excellent sailor, 122;
killed on 1st of June, 124
Ince, midshipman, 55
Incledon, Charles, the singer, 182 and n.
Inglis, Charles, midshipman, 92, 118;
captain, 229
Ireland, rebellion in, 204
Ireland, Thomas, lieutenant, killed on 1st of June, 115
Ireland, William, gunner, 124
Irwin, John, lieutenant, 91 n.
Irwin, J. S., midshipman, 95, 114