C - Operators and Expressions
C - Operators and Expressions
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.
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
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
55. If the value of a = 10, and b = -1, thevalue of x after executing thefollowingexpression is
x= (a! = 10), && (b = 1)
x= (a! = 10), && (b = 1)
- 0
- 1
- -1
- none
57. What is the value of x after executing the following statement ? int x = 011 | 0x10;
- 13
- 19
- 25
- 27
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.
59. What is the value of x in the sample code below ? double x; x = (2 + 3) * 2 + 3;
- 10
- 13
- 25
- 28
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;
}
{
int x = 5, y = -10, z;
int a = 4, b = 2;
z = x+++++y * b / a;
}
- -2
- 0
- 1
- 2