Question : 01
What is the size of wchar_t in C++?
Answer: d
Explanation:
Compiler wants to make CPU as more efficient in accessing the next value.
Explanation:
Compiler wants to make CPU as more efficient in accessing the next value.
Question : 02
Pick the odd one out.
Answer: c
Explanation:
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.
Explanation:
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.
Question : 03
Pick the odd one out.
Answer: a
Explanation:
Array type is not the basic type and it is constructed using the basic type.
Explanation:
Array type is not the basic type and it is constructed using the basic type.
Question : 04
When a language has the capability to produce new data type mean, it can be called as
Answer: b
Explanation:
Extensible is used to add new features to C++.
Explanation:
Extensible is used to add new features to C++.
Question : 05
Which data type is used to represent the absence of parameters?
Answer: c
Explanation:
Because void specifies an empty set of values/parameters.
Explanation:
Because void specifies an empty set of values/parameters.
Question : 06
The value 132.54 can be represented using which data type?
Answer: a
Explanation:
The given value is with decimal points, so float or double can be used.
Explanation:
The given value is with decimal points, so float or double can be used.
Question : 07
What does ‘\a’ escape code represent?
Answer: a
Explanation:
Because \a is used to produce a beep sound.
Explanation:
Because \a is used to produce a beep sound.
Question : 08
Which of the following statements are true?
int f(float)
Answer: b
Explanation: 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.
Question : 09
Which type is best suited to represent the logical values?
Answer: b
Explanation:
Logical values can be either true or false, so the boolean type is suited for it.
Explanation:
Logical values can be either true or false, so the boolean type is suited for it.
Question : 10
Identify the user-defined types from the following?
Answer: c
Explanation:
They must be defined by the users before use, unlike the other types which are readily available.
Explanation:
They must be defined by the users before use, unlike the other types which are readily available.