CS2 - CodeCombat HTML Commands

CS2 - CodeCombat HTML Commands

6th - 8th Grade

11 Qs

quiz-placeholder

Similar activities

Programs and Variables in Code and Play

Programs and Variables in Code and Play

5th - 9th Grade

7 Qs

BÀI KIỂM TRA GIỮA KÌ 2 LỚP 5

BÀI KIỂM TRA GIỮA KÌ 2 LỚP 5

1st - 10th Grade

10 Qs

RECUPERAÇÃO DA AVALIAÇÃO 02 - LÓGICA E MAGIA NA PROGRAMAÇÃO

RECUPERAÇÃO DA AVALIAÇÃO 02 - LÓGICA E MAGIA NA PROGRAMAÇÃO

8th Grade - University

10 Qs

C# - Unity Quiz

C# - Unity Quiz

6th - 9th Grade

13 Qs

Recuperação Pensamento Computacional 2º semestre

Recuperação Pensamento Computacional 2º semestre

8th Grade

10 Qs

Sprites in GameLab

Sprites in GameLab

8th Grade

15 Qs

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

6th Grade - University

14 Qs

Programming with Karel the Dog 2

Programming with Karel the Dog 2

6th - 9th Grade

13 Qs

CS2 - CodeCombat HTML Commands

CS2 - CodeCombat HTML Commands

Assessment

Quiz

Computers

6th - 8th Grade

Medium

Created by

Rachel Williamson

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

hero attacks target unit with a special cleave attack (you specify what the target is)

cleave(target);

hero.attack(target);

isReady(action);

hero.shield();

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

makes the hero say something, and anything within 20 meters will hear it.

hero.findNearestEnemy();

hero.buildXY("fence", x, y);

hero.say(message);

hero.shield();

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

hero attacks target unit (you specify what the target is)

cleave(target)

hero.attack(target);

isReady(action);

hero.moveXY(x, y);

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

using this lets you run code over and over again. Put code you want to repeat inside the { and }

while(true) { }

hero.attack(target);

if (enemy) { }

hero.shield();

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

the hero will find and go to the nearest enemy

isReady(action);

hero.buildXY("fire-trap", x, y);

var enemy = hero.findNearestEnemy();

hero.shield();

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

hero builds a fire trap at the x,y coordinates (lower case x,y will be numbers)

hero.findNearestEnemy();

hero.buildXY("fence", x, y);

hero.buildXY("fire-trap", x, y);

hero.moveXY(x,y);

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

hero will perform specified action if it is ready to use

cleave(target);

hero.attack(target);

hero.moveXY(x,y);

isReady.(action);

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?