Q: What is the size of wchar_t in C++?
Solution: Compiler wants to make CPU as more efficient in accessing the next value.
Q: Pick the odd one out.
Solution: Array type is not the basic type and it is constructed using the basic type.
Q: Which data type is used to represent the absence of parameters?
Solution: Because void specifies an empty set of values/parameters.
Q: What does ‘a’ escape code represent?
Solution: Because a is used to produce a beep sound.
Q: Which type is best suited to represent the logical values?
Solution: Logical values can be either true or false, so the boolean type is suited for it.
Q: Identify the user-defined types from the following?
Solution: They must be defined by the users before use, unlike the other types which are readily available.
Q: Which of the following statements are true? int f(float)
Solution: The argument that is passed to a function f is of float type and the function finally returns a value that id is of integer type.
Q: The value 132.54 can be represented using which data type?
Solution: The given value is with decimal points, so float or double can be used.
Q: When a language has the capability to produce new data type mean, it can be called as
Solution: Extensible is used to add new features to C++.
Q: Pick the odd one out.
Solution: integer, character, boolean & floating consists of all fundamental types, enumeration & classes consists of user-defined types and arrays, pointer & classes consists of derived types but integer, enum & void is a mixture.
You Have Score    | /10 |