Chapter 8 C++
Can you pass an argument to a function that contains an individual array element, such as numbers[3]?
Yes its legal
How do you assign the contents of one array to another?
A loop to assign the elements of one array to the other array
What is automatically appended to a character array when it is initialized with a string constant.
Null Terminator
True/False: A linear search can only be implemented with integer values
False
True/False: Before you can perform a bubble sort, the data must be stored in descending order.
False
push_back
Fuction used to insert an item into a vector
Is an array with no elements is
Illegal in C++
What is this an example of? int grades[] = {100, 90, 99, 80}
Implicit array sizing
What type of algorithm is a method of locating specific item of information in a larger collection of data?
Search
How can you build relationships between data stored in two or more arrays.
Subscript
True/False: The number of comparisons made by a binary search is expressed in powers of two?
True
How do you access the element of an array?
Use the array name and the element's subscript
How can an array be easily stepped through?
Using a for loop
An array's size declarator must be a ________ with a value greater than ________.
constant integer expression, zero
The range-based for loop, is designed to work with a built-in variable known as _____
range variable
pop_back
removes an item from a vector
Advantage of a linear search is its
simplicity
Vector function that returns the number of elements in a vector
size
How is the element of a two-dimensional array reffered to?
the row subscript and the column subscript
An array can store a group of values, but that values must be
the same data type