C - Operators and Expressions Questions and Answers
Practice ModeShowing 10 of 65 questions
Q51
Which of the following is NOT a bitwise operator ?
Answer: Option D
Q52
The type cast operator is
Answer: Option A
Q53
Which of the following statements is /are True ?
1. A char data type variable always occupies one byte independent of the system architecture.
2. the size of operator is used to determine the amount of memory occupied by a variable.
Answer: Option A
Q54
What might be theminimum value for the data type int, for 32 bit compiler ?
Answer: Option C
Q55
If the value of a = 10, and b = -1, thevalue of x after executing thefollowingexpression is
x= (a! = 10), && (b = 1)
Answer: Option A
Q56
what would be the output of the expression 11 ^ 5 ?
Answer: Option C
Q57
What is the value of x after executing the following statement ? int x = 011 | 0x10;
Answer: Option C
Q58
What is the function of the modulus operator in most languages ?
Answer: Option D
Q59
What is the value of x in the sample code below ? double x; x = (2 + 3) * 2 + 3;
Answer: Option B
Q60
What value will bestored in z if the following code is executed ? main ( )
{
int x = 5, y = -10, z;
int a = 4, b = 2;
z = x+++++y * b / a;
}
Answer: Option C