Preskoči na glavni sadržaj
Prijava
Sign up for FREE
arrow_back
Biblioteka

Math Test

star
star
star
star
star
Posljednje ažuriranje about 2 years ago
7
1
1
1
1
1
1
1
Pitanje 1
1.

What is output by the code below?

double x = .5 + .5;

System.out.print(x);

Pitanje 2
2.

What is output by the code below?

int x = 1;

x *= 5;

System.out.print(x);

Pitanje 3
3.

What is output by the code below?

System.out.print( 4 - 3 );

Pitanje 4
4.

What is output by the code below?

System.out.print(4 % 3);

Pitanje 5
5.

What is output by the code below?

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

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

Pitanje 7
7.

What is output by the code below?

System.out.println( 7 / 0);