Q: Pick out the in correct type of function inheader file.
Solution: First three type of options are available inheader file.
Q: What type of algorithm is not available in creating our own STL style algorithms?
Solution: copy_if() algorithm is not available in creating our own STL style algorithms.
Q: What is meant by hash tables in C++?
Solution: In hash table, every value will have a key, So that it can be accessed easily.
Q: What is the use of includes function in c++?
Solution: Returns true if the first sorted range contains all the elements in the second sorted range.
Q: How many parameters are required for sort_heap function?
Solution: There are three parameters required for sort_heap. There are first element in heap and last element in heap and an optional compare.
Q: How many categories of iterators are there in c++?
Solution: There are five types of iterators. They are Output, Input, Forward, Random access and Bi-directional.
Q: Which of the following can serve as random-access iterator?
Solution: Because of this, It can serve as any category of iterator.
Q: What kind of pattern is iterator pattern?
Solution: Iterator pattern is a design pattern in which an iterator is used to traverse a container and access the container’s elements.
Q: In which type of semantics does c++ implements iterator?
Solution: C++ uses pointer arithmetic/semantic to implement iterators.
Q: By using which operator does point to next element is represent in iterator?
Solution: ‘++’ operator is used to represent the next element in the iterator.
You Have Score    | /10 |