wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Code Combat

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.

Nola mugitzen dugu gure personaia gora?

a)

move.hero();

b)

hero.move();

c)

hero.moveUp();

d)

hero.moveUp

2.

Nola sortzen dugu buklea bat? (errepikatzeko zerbait behin ta berriro?

a)

while-true

b)

while(true) { }

c)

while

d)

if

3.

Nola erasotzen dugu Greg etsaia?

a)

attack (greg);

b)

hero.attack(greg);

c)

hero.attack(enemy);

d)

hero.attack(Greg);

4.

Ze progamazio lengoaia ikasi duzu Code Combatekin?

a)

Python

b)

HTML

c)

CSS

d)

Pascal

5.

Ze instrukzio falta da azken lerroan erasotzeko Cupboard etsaia?

a)

attack

b)

hero.attack("Cupboard");

c)

attack("Cupboard")

d)

attack(enemy);

6.

Ikusita pantaia, ze instrukzio egin behar da atea irekitzeko eta gero Two etsaia suntsitzeko?

a)

hero.attack("Weak Door")

hero.moveRight()

hero.moveRight()

hero.attack("Two")

hero.attack("Two")

b)

hero.attack("Wea Door")

hero.attack("Two")

c)

hero.attack("Weak Door")

hero.moveRight()

d)

hero.attack("Weak Door")

hero.moveRight()

hero.moveRight()

hero.attack(etsaia)

7.

Ze egiten du kode honek?

a)

Pertsonaia 3 aldiz mugituko da eskubildurz eta 2 behera

b)

Pertsonaia 3 aldiz mugituko da eskubira eta 3 behera

c)

Pertsonaia behin eta berriro mugituko da eskubira eta behera aldi berean

d)

Pertsonaia behin eta berriro 3 aldiz mugituko da eskubira eta 3 behera

8.

Holako pantaian , pertsonaia X dagoen tokian egon behar da eta etsaia agertzen bada erasotu. Zein da kodea?

a)

while True:

enemy = hero.findNearestEnemy()

if enemy:

hero.attack(enemy)

pass

b)

while True:

enemy = hero.findNearestEnemy()

if enemy:

hero.attack(enemy)

pass

else:

hero.moveXY(44, 33)

pass

c)

enemy = hero.findNearestEnemy()

if enemy:

hero.attack(enemy)

pass

else:

hero.moveXY(44, 33)

d)

while True:

hero.attack(enemy)

hero.moveXY()

pass

9.

Nolakoak dira komentarioak?

a)

#komentarioak

b)

"komentarioak"

c)

** komentarioak

d)

(komentarioak)

10.

Zertarako erabiltzen dugu botoi hau?

a)

Laguntza emateko

b)

Hasteko programa

c)

Bukatzeko programa

d)

Instrukzioak ikusteko