以下程序的计算结果是()class Test {public static void main(String[] args){int d=5; int c=2; float x=d/c;system.out.println(“x=”+x);}
A. x=2.5
B. x=2
C. x=2.0
D. x=2.50
以下程序的计算结果是()class Test {public static void main(String[] args){int d=31; int c=2; float x=d/c;System.out.println(“x=”+x);}}
A. x=15.5
B. x=15
C. x=15.0
D. x=15.50
执行下列程序代码的输出结果是()int a = 10; int i, j;i = ++a; j = a--;System.out.println(a+”,”+ i+ ”,”+j );
A. 10+,+11+,+10
B. 10,11,10
C. 10,11,11
D. 10,10,10
执行下列程序代码的输出结果是()int a = 20; int i, j;i = ++a; j = a--;System.out.println(a+”,”+ i+ ”,”+j );
A. 20+,+21+,+20
B. 20,21,20
C. 20,21,21
D. 20,20,20