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

Block Quiz

star
star
star
star
star
Posljednje ažuriranje about 2 years ago
5
1
Pitanje 1
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
Pitanje 2
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

Pitanje 3
3.

Using the code below hat is returned by the call

isEven( 50 ) ?

isEven( number )

if number mod 2 = 0

report true

report false

Pitanje 4
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

Pitanje 5
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