Q: Where are standard C libraries defined in C++?
Solution: Every element of the c library is defined within the std namespace.
Q: Which of the following have their changes in their declaration related to constness of parameter?
Solution: These are the items which will have their change in declaration related to constness of parameter. They are strchr, strpbrk, strrchr, strstr, memchr.
Q: How many elements does a floating point number is composed of?
Solution: The floating point number composed of four elements. They are sign, Base, Significand and Exponent.
Q: How does the limits.h header file can be represented in C++?
Solution: Any standard library of C can be written in C++ by using ‘c’ in front of header file name and omitting the ‘.h’. for examplecan be written as .
Q: Pick out the correct syntax of the header file that can be used with C++.
Solution: The C header file that is ending with h can only be used in C++.
Q: How many groups of output of operation are there in c++?
Solution: There are two groups of output operation in c++. They are formatted output and unformatted output.
Q: Pick out the correct objects about the instantiation of output stream.
Solution: cout, cerr and clog are the standard objects for the instantiation of output stream class.
Q: What is meant by ofstream in c++?
Solution: ofstream is a stream class to write on files.
Q: How many types of output stream classes are there in c++?
Solution: There are three output stream classes in c++. They are ostream, ofstream and ostrstream.
Q: What must be specified when we construct an object of class ostream?
Solution: If you construct an object of class ostream, you must specify a streambuf object to the constructor.
You Have Score    | /10 |