cse 20

Exit

Question 1 of 1

  Time Left


0
335051
0
1200
block

Match the following statements (i-x) to the outputs (A-J) they produce. Note: that there are no duplicate answers (‘G’ has the value 71) ! int i=3, j=2; double d=5.0; char c = 'G'; // G is 71

Match the text (click and drag)   

(0/0)




Match the text

System.out.println("OUTPUT is " + ((int)c + j) );

.System.out.println("OUTPUT is " + ((char)c - j) );

.System.out.println("OUTPUT is " + (char)(c - j ));

System.out.println("OUTPUT is " + (char)c + j );

System.out.println("OUTPUT is " + (char)(c - d) );

.System.out.println("OUTPUT is " + ((char)c - d) );

.System.out.println("OUTPUT is " + (double)c + j );

.System.out.println("OUTPUT is " + (double)c / j * d);

.System.out.println("OUTPUT is " + c / (char)i * d);

System.out.println("OUTPUT is " + c / j * (int)d);

Click and drag

OUTPUT is 71.02

OUTPUT is 115.0

OUTPUT is 73

OUTPUT is 66.0

OUTPUT is G2

OUTPUT is 175

OUTPUT is 177.5

OUTPUT is 69

OUTPUT is B

OUTPUT is E


335053
0
1200
none
335054
0
1200
none
335055
0
1200
none
335056
0
1200
none
335057
0
1200
none
335058
0
1200
none
335059
0
1200
none
335060
0
1200
none
335061
0
1200
none
335063
0
1200
none
335067
0
1259
none
335071
0
1200
none
335072
0
1200
none
335074
0
1200
none