Answer the following questions true (T) or false (F)
1. STL ranges [first, last) are always ‘half-open’ – from the first element to a designation for one past the last element.
2. Given a map m, the expression m["value"] will return NULL if there is no string named "value" stored in the map.
1. True
Explanation: Note the begin() and end(),and the rbegin()and rend() member functions that all the sequence containers have. They provide a ‘half open’ range from the first element in the container to one past the last. The rbegin() and rend() members provide a range from the last to past the front, as a reverse_iterator would traverse.
2. False
This will actually add a new entry to the map associated with the key "value" that has the default entry for the map container type.
You might also like to view...
Which symbol is the error indicator that appears in a cell having a formula that has broken a rule?
A) green triangle B) green square C) red exclamation point D) yellow caution sign
Case-Based Critical Thinking QuestionsCase 3-1Ethan is preparing a lecture about the software available for working with photos, videos, music, and other media. He asks James, who is an expert in computers, some questions. Choose the best aswer to each question. Ethan asks James what is the correct term used for movies, photos, music, and other content that is stored digitally?
A. digital content B. digital media C. digital objects D. digital files