Chapter 8 C++

Ace your homework & exams now with Quizwiz!

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


Related study sets

Insurance Licensing - Chapter 9: Commercial General Liability Coverage

View Set

AP Psychology Unit 7 Test Questions: Memory

View Set

Local Anesthesia Ch 6 quiz -Evolve

View Set

Chapter 19 Environmental Science

View Set

PSY of Adulthood and Aging Final

View Set

Musculoskeletal Trauma - Chapter 47: Concepts of Care for Patients With Musculoskeletal Trauma

View Set