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

if quiz review

star
star
star
star
star
Last updated about 7 years ago
6 Nsɛmmisa
Hyɛ no nsow a efi ɔkyerɛwfo no hɔ:

Processing Review for if

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

What is the output:

println (17/6);

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

What is the output:

println(17%6)

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

Select the legal variable names:

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

Write a statement that will declare a float named myNum.

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

What is the output?

int i=3;

if(i<10)

println("hello");

println("goodbye");

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

int b=3, c=14;

if(b<10)

println("hello");

if(c<10)

println("howdy");

println("goodbye");