Log in
Sign up for FREE
arrow_back
Library

Math Test

star
star
star
star
star
Last updated almost 2 years ago
7 questions
1
1
1
1
1
1
1
Question 1
1.

What is output by the code below?
double x = .5 + .5;
System.out.print(x);

Question 2
2.

What is output by the code below?
int x = 1;
x *= 5;
System.out.print(x);

Question 3
3.

What is output by the code below?
System.out.print( 4 - 3 );

Question 4
4.

What is output by the code below?
System.out.print(4 % 3);

Question 5
5.

What is output by the code below?
System.out.print( (int)9.6 );

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);

Question 7
7.

What is output by the code below?
System.out.println( 7 / 0);