## Which of the following represent(s) a hexadecimal number?

Q35. Which of the following represent(s) a hexadecimal number? 570 (hex)5 0X9G 0X5 Ans. 4. 0X5

Read more

## The range of values for the long type data is

Q34. The range of values for the long type data is: -231 to 231 -264 to 264 -263 to 263

Read more

## The modulus operator(%) can be used only with integer operands.

Q33. The modulus operator(%) can be used only with integer operands. True/ False? Ans. False. Modulus operator can work with

Read more

## Which class is used for using different mathematical methods in Java program?

Q31. Which class is used for using different mathematical methods in Java program? Ans. Math class is used for using different

Read more

## Resultant type of the following expression bh – i + db / fl – i * fl + db / i, (int) ( fl + db )

Q30. What will be the resultant type of the following expression is if bh represents a byte variable, i is

Read more

## Java expressions: ut+1/2ft2, |a|+b>=|b|+a,  e|2x^2-4x|

Q27. Write equivalent Java expressions for the following expressions: ut+1/2ft2 |a|+b>=|b|+a  e|2x^2-4x| Ans 1. ut+1/2ft2 u*t+1/2*f*t*t Ans 2. |a|+b>=|b|+a

Read more

## Type Casting and Type Cast Operator.

Q29. What do you mean by type casting? What is type cast operator? Ans. The explicit conversion of an operand

Read more

## Implicit and Explicit Type Conversion.

Q28. What is meant by implicit and explicit type conversion? Ans.  Implicit Type Conversion: An implicit type conversion is a conversion

Read more

## Result of following expression ans-val > 500 ? 150 : 50

Q26. What will be the result of following expression if ans=700, val=300 ans=800, val=700 ans-val > 500 ? 150 :

Read more

## result of expression if age=25, age=65, age=85 age > 65 ? 350 : 100

Q25. What will be the result of following expression if age=25 age=65 age=85 ? age > 65 ? 350 :

Read more