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

1. Elements of a set and map are stored in sorted order.

2. A failing find() operation on an STL set returns a null pointer value.


1. True
2. False
Explanation: Like most find members in STL containers, a failing find() operation on an STL set returns the iterator returned by the end() member function.

Computer Science & Information Technology

You might also like to view...

To create a string literal that excludes escape sequences, use:

a) !”string” b) @”string” c) #”string” d) $”string”

Computer Science & Information Technology

Which JFileChooser method specifies what users can select in the dialog?

a. setFileSelectionMode b. setSelectionMode c. showOpenDialog d. None of the above.

Computer Science & Information Technology

Define a class whose instances represent request and reply messages.The class should provide a pair of constructors, one for request messages and the other for reply messages, showing how the request identifier is assigned. It should also provide a method to marshal itself into an array of bytes and to unmarshal an array of bytes into an instance.

What will be an ideal response?

Computer Science & Information Technology

Which statement is false?

a) Cast expressions cannot be evaluated in preprocessor directives. b) Arithmetic expressions cannot be evaluated in preprocessor directives. c) sizeof expressions cannot be evaluated in preprocessor directives. d) Enumeration constants cannot be evaluated in preprocessor directives.

Computer Science & Information Technology