C - Operators and Expressions

C - Operators and Expressions
51. Which of the following is NOT a bitwise operator ?
  • &
  • ^
  • |
  • ||
Show Answer
52.  The type cast operator is 
  • (type )
  • cast ( )
  • //
  • " "
Show Answer
53.  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.
  • both 1 and 2
  • 1 only
  • 2 only
  • neither 1 nor 2
Show Answer
54.  What might be theminimum value  for the data type int, for 32 bit compiler ?
  • 0
  • -2,147, 483, 648
  • -2, 147, 483, 647
  • -32768
Show Answer
55.  If the value of a = 10, and b = -1, thevalue of x after executing thefollowingexpression is 
x= (a! = 10), && (b = 1)
  • 0
  • 1
  • -1
  • none
Show Answer
56.  what would be the output of the expression 11 ^ 5 ?
  • 6
  • 8
  • 14
  • 15
Show Answer
57.  What is the value of x after executing the following statement ? int x = 011 | 0x10;
  • 13
  • 19
  • 25
  • 27
Show Answer
58.  What is the function of the modulus operator in most languages ?
  • Sets a system environmental value toeither base 10, base 8, or base 16.
  • Returns the first argument raised to the second argument power.
  • Prints out the actual code written to standard output rather than executing the code
  • Returns the remainder after dividing one number by another.
Show Answer
59.  What is the value of x in the sample code below ? double x; x = (2 + 3) * 2 + 3; 
  • 10
  • 13
  • 25
  • 28
Show Answer
60.  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;
}

  • -2
  • 0
  • 1
  • 2
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test