#### Constants

1

How to declare a wide character in string literal?

A. L prefix
B. l prefix
C. W prefix
D. none of the mentioned

2

The difference between x and 'x' is

A. The first one refers to a variable whose identifier is x and the second one refers to the character constant x
B. The first one is a character constant x and second one is the string literal x
C. Both are same
D. None of the mentioned

3

Regarding following statement which of the statements is true?
const int a = 100;

A. Declares a variable a with 100 as its initial value
B. Declares a construction a with 100 as its initial value
C. Declares a constant a whose value will be 100
D. Constructs an integer type variable with a as identifier and 100 as value

4

Which of the following statement is not true about preprocessor directives?

A. These are lines read and processed by the preprocessor
B. They do not produce any code by themselves
C. These must be written on their own line
D. They end with a semicolon

5

What is the output of this program?

1.
#include
2.
using namespace std;
3.
#define PI 3.14159
4.
int main ()
5.
{
6.
float r = 2;
7.
float circle;
8.
circle = 2 * PI * r;
9.
cout << circle;
10.
return 0;
11.
}

A. 12.5664
B. 13.5664
C. 10
D. compile time error