MCQs
Total Questions : 9
Answer: Option C. -> literals
literals
Answer: Option D. -> all of the mentioned
Because these are the types used to declare variables and so these can be declared as constants.
Answer: Option A. -> 12.566
In this program, we are finding the area of the circle by using concern formula.
Answer: Option C. -> Error
We cannot modify a constant integer value.
Answer: Option C. -> both a and b
The const will declare with a specific type values and #define is used to declare user definied constants.
Answer: Option D. -> They end with a semicolon
They end with a semicolon
Answer: Option A. -> The first one refers to a variable whose identifier is x and the second one refers to the character constant x
The first one refers to a variable whose identifier is x and the second one refers to the character constant x
Answer: Option A. -> L prefix
It can turn this as wide character instead of narrow characters.
Answer: Option C. -> Declares a constant a whose value will be 100
Because the const is used to declare non-changable values only.