logic cis-140 ch 9-pretest
DESCRIPTION
Logic Cis-140 Ch 9-PretestTRANSCRIPT
7/14/2019 Logic Cis-140 Ch 9-Pretest
http://slidepdf.com/reader/full/logic-cis-140-ch-9-pretest 1/14
/ ► CIS-140-M2E-2013-SECA
Week 8 Pre-Test - Attempt 1
Question1
Marks: 1
When you write a program that stores a value in a variable, you are using ____ storage.
Choose one answer.
a. permanent
b. temporary
c. resilient
d. resident
Question2
Marks: 1
To generate a control break report, your input records must be organized in ____ order based on the field that will caus
the breaks.
Choose one answer.
a. random
b. ascending
c. sequential
d. repeatable
Question3
Marks: 1
A ____ is a file in which records are stored one after another in some order.
Choose one answer.
a. random access file
b. serial file
c. retired file
d. sequential file
Question4
Marks: 1
As pages in a book have numbers, computer memory and storage locations have ____.
Choose one answer.
7/14/2019 Logic Cis-140 Ch 9-Pretest
http://slidepdf.com/reader/full/logic-cis-140-ch-9-pretest 2/14
a. positions
b. pointers
c. addresses
d. references
Question5 Marks: 1
____ are arrays that have more than one dimension.
Choose one answer.
a. Multidimensional arrays
b. One-dimensional arrays
c. Diverse dimensioned arrays
d. Unary dimensional arrays
Question6
Marks: 1
Each element in a two-dimensional array requires ____ subscript(s) to reference it.
Choose one answer.
a. one
b. two
c. three
d. four
Question7
Marks: 1
A ____ is a collection of data stored on a nonvolatile device in a computer system.
Choose one answer.
a. computer message
b. computer interface
c. computer file
d. computer selector
Question8
Marks: 1
7/14/2019 Logic Cis-140 Ch 9-Pretest
http://slidepdf.com/reader/full/logic-cis-140-ch-9-pretest 3/14
The ____ is used as a statistic in many cases because it represents a more typical case.
Choose one answer.
a. mode
b. mean
c. average
d. median
Question9
Marks: 1
When you copy data from a file on a storage device into RAM, you ____ from the file.
Choose one answer.
a. delete
b. upload
c. output
d. read
Question10
Marks: 1
The combination of the disk drive plus the complete hierarchy of directories in which a file resides is its ____.
Choose one answer.
a. pointer
b. path
c. locator
d. stream
Question11
Marks: 1
The sorting process is usually reserved for a relatively large number of data items.
Answer:
True False
Question12
Marks: 1
In a ____, items in a list are compared with each other in pairs.
Choose one answer.
7/14/2019 Logic Cis-140 Ch 9-Pretest
http://slidepdf.com/reader/full/logic-cis-140-ch-9-pretest 4/14
a. quick sort
b. shell sort
c. bubble sort
d. selection sort
Question13 Marks: 1
An array whose elements you can access using a single subscript is a/an ____ array.
Choose one answer.
a. one-dimensional
b. multi-dimensional
c. non-dimensional
d. differential
Question14
Marks: 1
When computers sort data, they always use ____ values when making comparisons between values.
Choose one answer.
a. numeric
b. alphanumeric
c. alphabetic
d. binary
Question15
Marks: 1
____ involves combining two or more files while maintaining the sequential order.
Choose one answer.
a. Merging files
b. Sorting files
c. Splitting files
d. Dividing files
Question16
Marks: 1
7/14/2019 Logic Cis-140 Ch 9-Pretest
http://slidepdf.com/reader/full/logic-cis-140-ch-9-pretest 5/14
When you base a class on another using inheritance, the original class is the ____.
Choose one answer.
a. peer
b. subordinate
c. parent
d. child
Question17
Marks: 1
Because they enable you to locate a particular record directly (without reading all of the preceding records), random acc
files are also called ____ files.
Choose one answer.
a. direct access
b. indirect access
c. sequential access
d. temporary access
Question18
Marks: 9
Match each item with a statement below.
Groups of related records
Thousands of bytes
Letters, numbers, and special symbols, such as “A”, “7”, and “$”
Not lost when a computer loses power
Holds complete and relatively permanent data
Millions of bytes
Lost when the program ends or the computer loses power
Single useful data items that are composed of one or more characters
Billions of bytes
Question19
7/14/2019 Logic Cis-140 Ch 9-Pretest
http://slidepdf.com/reader/full/logic-cis-140-ch-9-pretest 6/14
Marks: 1
A ____ break is a break in the logic of the program that is based on the value of a single variable.
Choose one answer.
a. multiple-level control
b. simple control
c. serial control
d. single-level control
Question20
Marks: 1
____ are groups of fields that go together for some logical reason.
Choose one answer.
a. Tables
b. Databases
c. Columns
d. Records
Question21
Marks: 1
____ is the more general term to mean an entity that organizes files.
Choose one answer.
a. Folder
b. Path
c. Structure
d. Directory
Question22 Marks: 1
Every time you add a new record to a linked list, you search through the list for the correct ____ location of the new rec
Choose one answer.
a. physical
b. interpreted
c. logical
7/14/2019 Logic Cis-140 Ch 9-Pretest
http://slidepdf.com/reader/full/logic-cis-140-ch-9-pretest 7/14
d. inferred
Question23
Marks: 1
The terms “parent” and “child” refer to file backup generations, but they are used for a different purpose in object-orien
programming.
Answer:
True False
Question24
Marks: 1
Every time you add a new record to a linked list, you search through the list for the correct logical location of the new
record.
Answer:
True False
Question25
Marks: 1
You declare files in the same way you declare variables and constants—by giving each file a data type and an identifier.
Answer:
True False
Question26
Marks: 1
A two-dimensional array contains two dimensions: ____.
Choose one answer.
a. size and scope
b. breadth and height
c. height and width
d. depth and width
Question27
Marks: 1
When you write a program and save it to a disk, you are using volatile storage.
Answer:
True False
Question28
Marks: 1
Files exist on ____, such as hard disks, DVDs, USB drives, and reels of magnetic tape.
Choose one answer.
7/14/2019 Logic Cis-140 Ch 9-Pretest
http://slidepdf.com/reader/full/logic-cis-140-ch-9-pretest 8/14
a. permanent storage devices
b. transient storage devices
c. scalable storage devices
d. optical storage devices
Question29 Marks: 1
A bubble sort is sometimes called a ____.
Choose one answer.
a. dropping sort
b. sinking sort
c. ring sort
d. pair sort
Question30
Marks: 1
You can easily merge files even if each file contains a different record layout.
Answer:
True False
Question31
Marks: 1
Directories and ____ are organization units on storage devices.
Choose one answer.
a. folders
b. files
c. partitions
d. streams
Question32
Marks: 1
One way to access records in a desired order, even though they might not be physically stored in that order, is to create
a/an ____.
Choose one answer.
a. linked list
7/14/2019 Logic Cis-140 Ch 9-Pretest
http://slidepdf.com/reader/full/logic-cis-140-ch-9-pretest 9/14
b. array
c. indexed file
d. table
Question33
Marks: 1
You do not need to determine a record’s exact physical address in order to use it.
Answer:
True False
Question34
Marks: 1
In most programming languages, before an application can use a data file, it must ____.
Choose one answer.
a. open the file
b. close the file
c. read the file
d. prepare the file
Question35
Marks: 1
When you use an index, you can store records on a ____ storage device.
Choose one answer.
a. linear-access
b. random-access
c. sequential-access
d. uniform-access
Question36 Marks: 1
When you ____ a file, it is no longer available to your application.
Choose one answer.
a. examine
b. rewrite
c. close
7/14/2019 Logic Cis-140 Ch 9-Pretest
http://slidepdf.com/reader/full/logic-cis-140-ch-9-pretest 10/14
d. index
Question37
Marks: 1
When a record is removed from an indexed file, it has to be physically removed.
Answer:
True False
Question38
Marks: 1
When records are in ____ order, they are arranged one after another on the basis of the value in a particular field.
Choose one answer.
a. random
b. sequential
c. some
d. incremental
Question39
Marks: 1
A ____ is a temporary detour in the logic of a program.
Choose one answer.
a. sequence break
b. control break
c. control sequence
d. break control
Question40
Marks: 1
When you create a ____ report, the records must have been sorted in order by a key field.
Choose one answer.
a. summary
b. control break
c. detail
d. control option
Question41
Marks: 1
7/14/2019 Logic Cis-140 Ch 9-Pretest
http://slidepdf.com/reader/full/logic-cis-140-ch-9-pretest 11/14
In every popular computer coding scheme, “A” is numerically one greater than “B.”
Answer:
True False
Question42
Marks: 9
Match each item with a statement below.
a “real” order for storage
arranging records from lowest to highest value within a field
a number that indicates the position of a particular item within an array
the arithmetic average
arranging records from highest to lowest value
a virtual order based on any criterion you choose
placed in order, based on the contents of one or more fields
a series or list of values in computer memory, all of which have the same name and data type but are
differentiated with special numbers called subscripts
the value of the middle item when the values are listed in order
Question43
Marks: 1
Characters are made up of smaller elements called ____.
Choose one answer.
a. fields
b. records
c. bits
d. bytes
Question44
Marks: 1
When you ____ records, you store a list of key fields paired with the storage address for the corresponding data record
Choose one answer.
7/14/2019 Logic Cis-140 Ch 9-Pretest
http://slidepdf.com/reader/full/logic-cis-140-ch-9-pretest 12/14
a. store
b. tab
c. underscore
d. index
Question45 Marks: 1
When mathematicians use a two-dimensional array, they often call it a ____ or a table.
Choose one answer.
a. vector
b. matrix
c. ray
d. cube
Question46
Marks: 1
____ is processing that involves performing the same tasks with many records, one after the other.
Choose one answer.
a. Volume processing
b. Batch processing
c. Online processing
d. Standard processing
Question47
Marks: 1
When you store data records, they exist in ____.
Choose one answer.
a. some type of order
b. the reverse order from how they were entered
c. the same default ordering for all systems
d. a random order
Question48
Marks: 1
7/14/2019 Logic Cis-140 Ch 9-Pretest
http://slidepdf.com/reader/full/logic-cis-140-ch-9-pretest 13/14
To correctly swap two values, you create a/an ____ variable to hold one of the values.
Choose one answer.
a. per-swap
b. inversion
c. conversion
d. temporary
Question49
Marks: 1
____ is not lost when a computer loses power.
Choose one answer.
a. Temporary storage
b. Intermediate storage
c. Permanent storage
d. Variable storage
Question50
Marks: 1
The ____ is skewed by a few very high or low values.
Choose one answer.
a. mode
b. median
c. mean
d. standard deviation
Question51
Marks: 1
A ____ is a copy that is kept in case values need to be restored to their original state.
Choose one answer.
a. read-only file
b. backup file
c. primary file
7/14/2019 Logic Cis-140 Ch 9-Pretest
http://slidepdf.com/reader/full/logic-cis-140-ch-9-pretest 14/14
d. secondary file
Question52
Marks: 1
A record’s ____ field is the field whose contents make the record unique among all records in a file.
Choose one answer.
a. row
b. column
c. secondary
d. key
Question53
Marks: 1
Because “A” is always less than “B”, alphabetic sorts are ____ sorts.
Choose one answer.
a. descending
b. reversing
c. ascending
d. downward
Question54 Marks: 1
The mainline logic for a program that merges two files contains preliminary, housekeeping tasks; a detail module that
repeats until the end of the program; and some clean-up, end-of-job tasks.
Answer:
True False