Answer to 9 and 12 Q tests

Answers

Q1: Containers and iterators are class templates.A1: True
Q2: The STL containers are classified into the following categories: sequence and associative.A2: False
Q3: Suppose vecList is a vector object. The expression vecList.capacity() returns the number of elements that can be currently added to vecList.A3: True
Q4: Doxygen is the...A4: standard tool for generating documentation from annotated C++ sources
Q5: Doxygen generates the following outputsA5: HTML, LaTex, RTF
Q6: The Boost C++ Libraries  are a collectionA6: of modern libraries based on the C++ standard
Q7: The Boost community emerged around 1998A7: True
Q8: Lists are sequence containers that allow non-contiguous memory allocation.A8: True
Q9: Vectors are same as dynamic arrays with the ability to resize itself automatically when an element is inserted or deleted, with their storage being handled automatically by the container.A9: True
Q10: PHONY targets are...A10: ... targets that do not refer to files but are just actions
Q11: ‘#’ in a line of a makefile starts a ...A11: ... comment.
Q12: For std::binary_search to succeed, the range [first, last) must be at least partially ordered with respect to valueA12: True
Q13: The std::sort() sorts the elements in the range [first, last) in descending order.A13: False
Q14: It is only possible to have a single catch block.A14: False
Q15: The operations open() and close() are required in all file operations for gracefully open and close filesA15: True
Q16: The operation boost::filesystem::is_regular_file() is used for check if the path is a directory.A16: False
Q17: In C++, Error handling is done using three keywords:A17: try, catch, throw
Q18: The CPU clock frequencies have generally stabilised for the past few years and increasing computing power has been possible mainly through adding more and more computing cores to processors.A18: True
Q19: Typically, the development of computational code involves the following steps:A19: 1. Formulation of a problem; 2. Algorithm design, 3. Implementation of an algorithm and 4. Code optimisation
Q20: The STL C++17 introduces the parallel STLA20: True
Q21: A process is a lightweight executable entity and a thread is a heavyweight executable entity.A21: False
Q22: A process can be composed of multi-threads.A22: True