CS2 - CodeCombat HTML Commands

CS2 - CodeCombat HTML Commands

6th - 8th Grade

11 Qs

quiz-placeholder

Similar activities

Scratch - Lesson 2

Scratch - Lesson 2

8th Grade

10 Qs

Excel

Excel

1st - 10th Grade

11 Qs

H7.P1&P2.Nova2.Geluid.mhv

H7.P1&P2.Nova2.Geluid.mhv

4th - 10th Grade

12 Qs

MẢNG

MẢNG

6th - 8th Grade

10 Qs

Khởi động cùng Quizizz (Ôn lại các kiến thức đã học)

Khởi động cùng Quizizz (Ôn lại các kiến thức đã học)

8th Grade

10 Qs

7 класс. Повторение "Ввод. Вывод. Присваивание"

7 класс. Повторение "Ввод. Вывод. Присваивание"

7th Grade

10 Qs

Kiểm tra TX tin 8

Kiểm tra TX tin 8

8th Grade

10 Qs

Family Quizz

Family Quizz

5th Grade - Professional Development

15 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

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);

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?