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

Block Quiz

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

Using the code below what is returned by the call isBiggerThan25AndLessThan100( 180 ) ?

isBiggerThan25AndLessThan100( number )

if number > 25 and number < 100

report true

report false

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

Using the code below what is returned by the call isBiggerThan25AndLessThan100( 87 ) ?

isBiggerThan25AndLessThan100( number )

if number > 25 and number < 100

report true

report false

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

Using the code below hat is returned by the call

isEven( 50 ) ?

isEven( number )

if number mod 2 = 0

report true

report false

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

Using the code below what is returned by the call countEvens(1,2,3,4,5,6,7,8,9,10,11,12 ) ?

countEvens( list )

spot = 0

count = 0

repeat length of list

if isEven(item spot of list)

count = count + 1

report count

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

Using the code below what is returned by the call countEvens(11,12,23,24,25,16,2,111,99 ) ?

countEvens( list )

spot = 0

count = 0

repeat length of list

if isEven(item spot of list)

count = count + 1

report count