Twa kɔ nsɛm atitiriw so
Log in
Sign up for FREE
arrow_back
Laabri

Math Test

star
star
star
star
star
Last updated over 2 years ago
7 Nsɛmmisa
1
1
1
1
1
1
1
Asemmisa {{asɛmmisaAhyɛnsode}}
1.

What is output by the code below?

double x = .5 + .5;

System.out.print(x);

Asemmisa {{asɛmmisaAhyɛnsode}}
2.

What is output by the code below?

int x = 1;

x *= 5;

System.out.print(x);

Asemmisa {{asɛmmisaAhyɛnsode}}
3.

What is output by the code below?

System.out.print( 4 - 3 );

Asemmisa {{asɛmmisaAhyɛnsode}}
4.

What is output by the code below?

System.out.print(4 % 3);

Asemmisa {{asɛmmisaAhyɛnsode}}
5.

What is output by the code below?

System.out.print( (int)9.6 );

Asemmisa {{asɛmmisaAhyɛnsode}}
6.

What is output by the code below?

int x = 12,

y = 20;

int z = x + y;

double a = z;

System.out.print(a);

Asemmisa {{asɛmmisaAhyɛnsode}}
7.

What is output by the code below?

System.out.println( 7 / 0);