Deck 8: Advanced Data Handling Techniques

Full screen (f)
exit full mode
Question
You can make additional improvements to a bubble sort to reduce unnecessary comparisons.
Use Space or
up arrow
down arrow
to flip the card.
Question
In a ____, items in a list are compared with each other in pairs.

A) quick sort
B) shell sort
C) bubble sort
D) matrix sort
Question
You do not need to determine a record's exact physical address in order to use it.
Question
When a large data file needs to be processed in ascending or descending order based on a particular field, the most efficient approach is usually to store and access records based on their logical order.
Question
When you create a ____ report, the records must have been sorted in order by a key field.

A) summary
B) control break
C) detail
D) totals
Question
When you store data records, they exist in ____.

A) some type of order
B) the reverse order from how they were entered
C) the same default ordering for all systems
D) ascending order
Question
Because "A" is always less than "B", alphabetic sorts are ____ sorts.

A) descending
B) reversing
C) ascending
D) downward
Question
The ____ is often used as a statistic in many cases because it represents a more typical case.

A) mode
B) mean
C) average
D) median
Question
An insertion sort is another name for a bubble sort.
Question
Two-dimensional arrays are never actually required in order to achieve a useful program.
Question
The most popular computer coding schemes include ASCII, Numeric, and EBCDIC.
Question
When you learn a method like sorting, programmers say you are learning a(n) ____.

A) matrix
B) addressed location
C) algorithm
D) linked list
Question
When records are in ____ order, they are arranged one after another on the basis of the value in a particular field.

A) random
B) sequential
C) binary
D) incremental
Question
It is relatively easy for people to keep track of arrays with more than three dimensions.
Question
When a record is removed from an indexed file, it has to be physically removed.
Question
The sorting process is usually reserved for a relatively large number of data items.
Question
Some programming languages allow multidimensional arrays.
Question
When computers sort data, they always use ____ values when making comparisons between values.

A) numeric
B) alphanumeric
C) alphabetic
D) ascending
Question
The ____ is skewed by a few very high or low values.

A) mode
B) median
C) mean
D) standard deviation
Question
A bubble sort is sometimes called a ____.

A) dropping sort
B) sinking sort
C) compare sort
D) pair sort
Question
Each element in a two-dimensional array requires ____ subscript(s) to reference it.

A) one
B) two
C) three
D) four
Question
Every time you add a new record to a linked list, you search through the list for the correct ____ location of the new record.

A) physical
B) spatial
C) logical
D) key
Question
A(n) ____________________ is a list of instructions that accomplishes a task.
Question
A common method of accessing records in logical order is to use a(n) ____________________.
Question
If you are performing a(n) ____________________ bubble sort, then after you have made one pass through the list, the largest value is guaranteed to be in its correct final position at the bottom of the list.
Question
In a(n) ____, if an element is out of order relative to any of the items earlier in the list, you move each earlier item down one position and then insert the tested element.

A) selection sort
B) bubble sort
C) sync sort
D) insertion sort
Question
When you ____________________ values stored in two variables, you exchange their values.
Question
When you use an index, you can store records on a ____ storage device.

A) linear-access
B) random-access
C) sequential-access
D) uniform-access
Question
A ____sort is a sorting algorithm in which list values are divided into sorted and unsorted sublists.

A) selection
B) insertion
C) bubble
D) sinking
Question
In its simplest form, creating a(n) ____________________ list involves creating one extra field in every record of stored data.
Question
To correctly swap two values, you create a(n) ____ variable to hold one of the values.

A) per-swap
B) inversion
C) conversion
D) temporary
Question
A record's ____ field is the field whose contents make the record unique among all records in a file.

A) primary
B) column
C) secondary
D) key
Question
When you ____ records, you store a list of key fields paired with the storage address for the corresponding data record.

A) store
B) tab
C) reference
D) index
Question
An array whose elements you can access using a single subscript is a ____ array.

A) one-dimensional
B) multi-dimensional
C) non-dimensional
D) single-dimensional
Question
A two-dimensional array contains two dimensions: ____.

A) size and scope
B) breadth and height
C) height and width
D) depth and width
Question
When using a bubble sort to sort a 10-element array, on the fourth pass through the array list you detect that no swap has occurred. This indicates ____.

A) the elements in the array were badly out of order
B) all elements in the array are already in the correct order
C) you must make one more pass through the array
D) you must make a total of 10 passes through the array
Question
As pages in a book have numbers, computer memory and storage locations have ____.

A) positions
B) pointers
C) addresses
D) references
Question
When mathematicians use a two-dimensional array, they often call it a ____ or a table.

A) vector
B) matrix
C) square
D) grid
Question
One way to access records in a desired order, even though they might not be physically stored in that order, is to create a(n) ____.

A) linked list
B) array
C) matrix
D) table
Question
When you sort records, two possible approaches are to place related data items in parallel arrays and to ____.

A) sort records as a whole
B) sort fields in records individually
C) place unrelated data items in parallel arrays
D) sort data in spreadsheets
Question
Match between columns
The value of the middle item when the values are listed in order
sequential order
The value of the middle item when the values are listed in order
ascending order
The value of the middle item when the values are listed in order
descending order
The value of the middle item when the values are listed in order
median
The value of the middle item when the values are listed in order
mean
The value of the middle item when the values are listed in order
a list of instructions that accomplish a task
The value of the middle item when the values are listed in order
table
The value of the middle item when the values are listed in order
physical order
The value of the middle item when the values are listed in order
logical order
The value of the middle item when the values are listed in order
addresses
A "real" order for storage
sequential order
A "real" order for storage
ascending order
A "real" order for storage
descending order
A "real" order for storage
median
A "real" order for storage
mean
A "real" order for storage
a list of instructions that accomplish a task
A "real" order for storage
table
A "real" order for storage
physical order
A "real" order for storage
logical order
A "real" order for storage
addresses
A virtual order based on any criterion you choose
sequential order
A virtual order based on any criterion you choose
ascending order
A virtual order based on any criterion you choose
descending order
A virtual order based on any criterion you choose
median
A virtual order based on any criterion you choose
mean
A virtual order based on any criterion you choose
a list of instructions that accomplish a task
A virtual order based on any criterion you choose
table
A virtual order based on any criterion you choose
physical order
A virtual order based on any criterion you choose
logical order
A virtual order based on any criterion you choose
addresses
The arithmetic average
sequential order
The arithmetic average
ascending order
The arithmetic average
descending order
The arithmetic average
median
The arithmetic average
mean
The arithmetic average
a list of instructions that accomplish a task
The arithmetic average
table
The arithmetic average
physical order
The arithmetic average
logical order
The arithmetic average
addresses
Algorithm
sequential order
Algorithm
ascending order
Algorithm
descending order
Algorithm
median
Algorithm
mean
Algorithm
a list of instructions that accomplish a task
Algorithm
table
Algorithm
physical order
Algorithm
logical order
Algorithm
addresses
Arranging records from highest to lowest value within a field
sequential order
Arranging records from highest to lowest value within a field
ascending order
Arranging records from highest to lowest value within a field
descending order
Arranging records from highest to lowest value within a field
median
Arranging records from highest to lowest value within a field
mean
Arranging records from highest to lowest value within a field
a list of instructions that accomplish a task
Arranging records from highest to lowest value within a field
table
Arranging records from highest to lowest value within a field
physical order
Arranging records from highest to lowest value within a field
logical order
Arranging records from highest to lowest value within a field
addresses
Used to identify computer memory and storage locations
sequential order
Used to identify computer memory and storage locations
ascending order
Used to identify computer memory and storage locations
descending order
Used to identify computer memory and storage locations
median
Used to identify computer memory and storage locations
mean
Used to identify computer memory and storage locations
a list of instructions that accomplish a task
Used to identify computer memory and storage locations
table
Used to identify computer memory and storage locations
physical order
Used to identify computer memory and storage locations
logical order
Used to identify computer memory and storage locations
addresses
A two-dimensional array
sequential order
A two-dimensional array
ascending order
A two-dimensional array
descending order
A two-dimensional array
median
A two-dimensional array
mean
A two-dimensional array
a list of instructions that accomplish a task
A two-dimensional array
table
A two-dimensional array
physical order
A two-dimensional array
logical order
A two-dimensional array
addresses
Arranging records one after another based on the value in a particular field
sequential order
Arranging records one after another based on the value in a particular field
ascending order
Arranging records one after another based on the value in a particular field
descending order
Arranging records one after another based on the value in a particular field
median
Arranging records one after another based on the value in a particular field
mean
Arranging records one after another based on the value in a particular field
a list of instructions that accomplish a task
Arranging records one after another based on the value in a particular field
table
Arranging records one after another based on the value in a particular field
physical order
Arranging records one after another based on the value in a particular field
logical order
Arranging records one after another based on the value in a particular field
addresses
Arranging records from lowest to highest value within a field
sequential order
Arranging records from lowest to highest value within a field
ascending order
Arranging records from lowest to highest value within a field
descending order
Arranging records from lowest to highest value within a field
median
Arranging records from lowest to highest value within a field
mean
Arranging records from lowest to highest value within a field
a list of instructions that accomplish a task
Arranging records from lowest to highest value within a field
table
Arranging records from lowest to highest value within a field
physical order
Arranging records from lowest to highest value within a field
logical order
Arranging records from lowest to highest value within a field
addresses
Question
Why might you never need to write a program that sorts data as a professional programmer?
Question
Discuss how you declare one-dimensional and two-dimensional arrays.
Question
List and describe the general rules for sorting an array with a bubble sort.
Question
Describe how you access a two-dimensional array value using two subscripts.
Question
Explain why you might want to use a two-dimensional array.
Question
Describe an insertion sort.
Question
Describe a bubble sort.
Question
Describe a two-dimensional array.
Question
Describe a one-dimensional array.
Question
Give an example of an occasion when you would need to sort records.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/51
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 8: Advanced Data Handling Techniques
1
You can make additional improvements to a bubble sort to reduce unnecessary comparisons.
True
2
In a ____, items in a list are compared with each other in pairs.

A) quick sort
B) shell sort
C) bubble sort
D) matrix sort
C
3
You do not need to determine a record's exact physical address in order to use it.
True
4
When a large data file needs to be processed in ascending or descending order based on a particular field, the most efficient approach is usually to store and access records based on their logical order.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
5
When you create a ____ report, the records must have been sorted in order by a key field.

A) summary
B) control break
C) detail
D) totals
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
6
When you store data records, they exist in ____.

A) some type of order
B) the reverse order from how they were entered
C) the same default ordering for all systems
D) ascending order
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
7
Because "A" is always less than "B", alphabetic sorts are ____ sorts.

A) descending
B) reversing
C) ascending
D) downward
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
8
The ____ is often used as a statistic in many cases because it represents a more typical case.

A) mode
B) mean
C) average
D) median
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
9
An insertion sort is another name for a bubble sort.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
10
Two-dimensional arrays are never actually required in order to achieve a useful program.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
11
The most popular computer coding schemes include ASCII, Numeric, and EBCDIC.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
12
When you learn a method like sorting, programmers say you are learning a(n) ____.

A) matrix
B) addressed location
C) algorithm
D) linked list
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
13
When records are in ____ order, they are arranged one after another on the basis of the value in a particular field.

A) random
B) sequential
C) binary
D) incremental
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
14
It is relatively easy for people to keep track of arrays with more than three dimensions.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
15
When a record is removed from an indexed file, it has to be physically removed.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
16
The sorting process is usually reserved for a relatively large number of data items.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
17
Some programming languages allow multidimensional arrays.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
18
When computers sort data, they always use ____ values when making comparisons between values.

A) numeric
B) alphanumeric
C) alphabetic
D) ascending
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
19
The ____ is skewed by a few very high or low values.

A) mode
B) median
C) mean
D) standard deviation
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
20
A bubble sort is sometimes called a ____.

A) dropping sort
B) sinking sort
C) compare sort
D) pair sort
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
21
Each element in a two-dimensional array requires ____ subscript(s) to reference it.

A) one
B) two
C) three
D) four
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
22
Every time you add a new record to a linked list, you search through the list for the correct ____ location of the new record.

A) physical
B) spatial
C) logical
D) key
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
23
A(n) ____________________ is a list of instructions that accomplishes a task.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
24
A common method of accessing records in logical order is to use a(n) ____________________.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
25
If you are performing a(n) ____________________ bubble sort, then after you have made one pass through the list, the largest value is guaranteed to be in its correct final position at the bottom of the list.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
26
In a(n) ____, if an element is out of order relative to any of the items earlier in the list, you move each earlier item down one position and then insert the tested element.

A) selection sort
B) bubble sort
C) sync sort
D) insertion sort
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
27
When you ____________________ values stored in two variables, you exchange their values.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
28
When you use an index, you can store records on a ____ storage device.

A) linear-access
B) random-access
C) sequential-access
D) uniform-access
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
29
A ____sort is a sorting algorithm in which list values are divided into sorted and unsorted sublists.

A) selection
B) insertion
C) bubble
D) sinking
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
30
In its simplest form, creating a(n) ____________________ list involves creating one extra field in every record of stored data.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
31
To correctly swap two values, you create a(n) ____ variable to hold one of the values.

A) per-swap
B) inversion
C) conversion
D) temporary
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
32
A record's ____ field is the field whose contents make the record unique among all records in a file.

A) primary
B) column
C) secondary
D) key
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
33
When you ____ records, you store a list of key fields paired with the storage address for the corresponding data record.

A) store
B) tab
C) reference
D) index
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
34
An array whose elements you can access using a single subscript is a ____ array.

A) one-dimensional
B) multi-dimensional
C) non-dimensional
D) single-dimensional
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
35
A two-dimensional array contains two dimensions: ____.

A) size and scope
B) breadth and height
C) height and width
D) depth and width
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
36
When using a bubble sort to sort a 10-element array, on the fourth pass through the array list you detect that no swap has occurred. This indicates ____.

A) the elements in the array were badly out of order
B) all elements in the array are already in the correct order
C) you must make one more pass through the array
D) you must make a total of 10 passes through the array
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
37
As pages in a book have numbers, computer memory and storage locations have ____.

A) positions
B) pointers
C) addresses
D) references
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
38
When mathematicians use a two-dimensional array, they often call it a ____ or a table.

A) vector
B) matrix
C) square
D) grid
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
39
One way to access records in a desired order, even though they might not be physically stored in that order, is to create a(n) ____.

A) linked list
B) array
C) matrix
D) table
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
40
When you sort records, two possible approaches are to place related data items in parallel arrays and to ____.

A) sort records as a whole
B) sort fields in records individually
C) place unrelated data items in parallel arrays
D) sort data in spreadsheets
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
41
Match between columns
The value of the middle item when the values are listed in order
sequential order
The value of the middle item when the values are listed in order
ascending order
The value of the middle item when the values are listed in order
descending order
The value of the middle item when the values are listed in order
median
The value of the middle item when the values are listed in order
mean
The value of the middle item when the values are listed in order
a list of instructions that accomplish a task
The value of the middle item when the values are listed in order
table
The value of the middle item when the values are listed in order
physical order
The value of the middle item when the values are listed in order
logical order
The value of the middle item when the values are listed in order
addresses
A "real" order for storage
sequential order
A "real" order for storage
ascending order
A "real" order for storage
descending order
A "real" order for storage
median
A "real" order for storage
mean
A "real" order for storage
a list of instructions that accomplish a task
A "real" order for storage
table
A "real" order for storage
physical order
A "real" order for storage
logical order
A "real" order for storage
addresses
A virtual order based on any criterion you choose
sequential order
A virtual order based on any criterion you choose
ascending order
A virtual order based on any criterion you choose
descending order
A virtual order based on any criterion you choose
median
A virtual order based on any criterion you choose
mean
A virtual order based on any criterion you choose
a list of instructions that accomplish a task
A virtual order based on any criterion you choose
table
A virtual order based on any criterion you choose
physical order
A virtual order based on any criterion you choose
logical order
A virtual order based on any criterion you choose
addresses
The arithmetic average
sequential order
The arithmetic average
ascending order
The arithmetic average
descending order
The arithmetic average
median
The arithmetic average
mean
The arithmetic average
a list of instructions that accomplish a task
The arithmetic average
table
The arithmetic average
physical order
The arithmetic average
logical order
The arithmetic average
addresses
Algorithm
sequential order
Algorithm
ascending order
Algorithm
descending order
Algorithm
median
Algorithm
mean
Algorithm
a list of instructions that accomplish a task
Algorithm
table
Algorithm
physical order
Algorithm
logical order
Algorithm
addresses
Arranging records from highest to lowest value within a field
sequential order
Arranging records from highest to lowest value within a field
ascending order
Arranging records from highest to lowest value within a field
descending order
Arranging records from highest to lowest value within a field
median
Arranging records from highest to lowest value within a field
mean
Arranging records from highest to lowest value within a field
a list of instructions that accomplish a task
Arranging records from highest to lowest value within a field
table
Arranging records from highest to lowest value within a field
physical order
Arranging records from highest to lowest value within a field
logical order
Arranging records from highest to lowest value within a field
addresses
Used to identify computer memory and storage locations
sequential order
Used to identify computer memory and storage locations
ascending order
Used to identify computer memory and storage locations
descending order
Used to identify computer memory and storage locations
median
Used to identify computer memory and storage locations
mean
Used to identify computer memory and storage locations
a list of instructions that accomplish a task
Used to identify computer memory and storage locations
table
Used to identify computer memory and storage locations
physical order
Used to identify computer memory and storage locations
logical order
Used to identify computer memory and storage locations
addresses
A two-dimensional array
sequential order
A two-dimensional array
ascending order
A two-dimensional array
descending order
A two-dimensional array
median
A two-dimensional array
mean
A two-dimensional array
a list of instructions that accomplish a task
A two-dimensional array
table
A two-dimensional array
physical order
A two-dimensional array
logical order
A two-dimensional array
addresses
Arranging records one after another based on the value in a particular field
sequential order
Arranging records one after another based on the value in a particular field
ascending order
Arranging records one after another based on the value in a particular field
descending order
Arranging records one after another based on the value in a particular field
median
Arranging records one after another based on the value in a particular field
mean
Arranging records one after another based on the value in a particular field
a list of instructions that accomplish a task
Arranging records one after another based on the value in a particular field
table
Arranging records one after another based on the value in a particular field
physical order
Arranging records one after another based on the value in a particular field
logical order
Arranging records one after another based on the value in a particular field
addresses
Arranging records from lowest to highest value within a field
sequential order
Arranging records from lowest to highest value within a field
ascending order
Arranging records from lowest to highest value within a field
descending order
Arranging records from lowest to highest value within a field
median
Arranging records from lowest to highest value within a field
mean
Arranging records from lowest to highest value within a field
a list of instructions that accomplish a task
Arranging records from lowest to highest value within a field
table
Arranging records from lowest to highest value within a field
physical order
Arranging records from lowest to highest value within a field
logical order
Arranging records from lowest to highest value within a field
addresses
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
42
Why might you never need to write a program that sorts data as a professional programmer?
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
43
Discuss how you declare one-dimensional and two-dimensional arrays.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
44
List and describe the general rules for sorting an array with a bubble sort.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
45
Describe how you access a two-dimensional array value using two subscripts.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
46
Explain why you might want to use a two-dimensional array.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
47
Describe an insertion sort.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
48
Describe a bubble sort.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
49
Describe a two-dimensional array.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
50
Describe a one-dimensional array.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
51
Give an example of an occasion when you would need to sort records.
Unlock Deck
Unlock for access to all 51 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 51 flashcards in this deck.