Answer the following statements true (T) or false (F)

1) The associative containers store their data in an order different from the insertion
order.
2) The set container keeps track of how many copies of a data item you insert in the set object.
3) STL set operations are essentially insert, delete, and the query, “Is it there?”.
4) A Map is a function given as a set of ordered pairs. The first is the key that has to have ordering and the second is any type. The position of a pair in the set is
determined by the ordering on the keys.

1) T
2) F
3) T
4) T

Computer Science & Information Technology

You might also like to view...

Scroll bars for overflow content are usually placed horizontally so that you scroll down to view the extra content.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

For each of the following, write C++ statements that perform the specified task. Assume that unsigned integers are stored in four bytes and that the starting address of the built-in array is at location 1002500 in memory.

a) Use a for statement to display the elements of built-in array values using pointer/offset notation with the built-in array’s name as the pointer. b) Use a for statement to display the elements of built-in array values by subscripting the pointer to the built-in array. c) Refer to the fifth element of values using array subscript notation, pointer/offset notation with the built-in array name’s as the pointer, pointer subscript notation and point- er/offset notation. d) What address is referenced by vPtr + 3? What value is stored at that location? e) Assuming that vPtr points to values[4], what address is referenced by vPtr -= 4? What value is stored at that location?

Computer Science & Information Technology