Computer Applications
Related Questions
In a statement
c = c + (x * d + e);which variable is an accumulator?- d
- c
- e
- x
Which of the following is NOT an access specifier?
- private
- protected
- package
- public
Read the if program segment given below:
if(a > b) z = 25; else z = 35;Which one of the following is the correct conversion of the if program segment to ternary?
- z = a > b ? 35 : 25;
- z = a > b ? 25 : 35;
- z = a > b : 35 ? 25;
- z = a > b : 25 ? 35;
The output of the statement:
System.out.println(Character.toUpperCase('b') + 2);is:- 66
- 100
- 68
- 98