
CS2 - CodeCombat HTML Commands
Quiz
•
Computers
•
6th - 8th Grade
•
Medium
Rachel Williamson
Used 3+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
8 questions
Linux
Quiz
•
7th Grade
9 questions
Jak dobrze znająsz MSP?
Quiz
•
1st Grade - University
10 questions
Szövegszerkesztés alapjai
Quiz
•
5th - 6th Grade
10 questions
Kiểm tra lớp 8 lần 2 HK1
Quiz
•
8th Grade
10 questions
kiểm tra tin học 8
Quiz
•
8th Grade
12 questions
UTS Semester 1 Informatika 2024/2025
Quiz
•
8th Grade - University
12 questions
EXIT TICKET: INTRODUCTION TO SKETCHUP
Quiz
•
8th Grade
13 questions
Video games
Quiz
•
1st - 9th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
