Professional Documents
Culture Documents
C Language (Day-03)
C Language (Day-03)
Gorakhpur Center
Ministry of Electronics & Information Technology (MeitY), Government of India
1. What is the type of the following assignment expression if x is of type float and y is of
type int?
y = x + y;
a)Int b) float
c) there is no type for an assignment expression d) double Answer: a
2. What will be the final value of c in the following C statement? (Initial value: c = 2)
c <<= 1;
a) c = 1; b) c = 2;
c) c = 3; d) c = 4; Answer: d
4. Which keyword is used to prevent any changes in the variable within a C program?
a) immutable b) mutable
c) const d) volatile Answer: c
8. Which of the following operator has the highest precedence in the following?
a) () b) sizeof
c) * d) + Answer: a