Math Test
By Mickey Arnold
starstarstarstarstarstarstarstarstarstar
Last updated 10 months ago
7 Questions
1 point
1
Question 1
1.
What is output by the code below?double x = .5 + .5;System.out.print(x);
What is output by the code below?
double x = .5 + .5;
System.out.print(x);
1 point
1
Question 2
2.
What is output by the code below?int x = 1;x *= 5;System.out.print(x);
What is output by the code below?
int x = 1;
x *= 5;
System.out.print(x);
1 point
1
Question 3
3.
What is output by the code below?System.out.print( 4 - 3 );
What is output by the code below?
System.out.print( 4 - 3 );
1 point
1
Question 4
4.
What is output by the code below?System.out.print(4 % 3);
What is output by the code below?
System.out.print(4 % 3);
1 point
1
Question 5
5.
What is output by the code below?System.out.print( (int)9.6 );
What is output by the code below?
System.out.print( (int)9.6 );
1 point
1
Question 6
6.
What is output by the code below?int x = 12,y = 20;int z = x + y;double a = z;System.out.print(a);
What is output by the code below?
int x = 12,
y = 20;
int z = x + y;
double a = z;
System.out.print(a);
1 point
1
Question 7
7.
What is output by the code below?System.out.println( 7 / 0);
What is output by the code below?
System.out.println( 7 / 0);