Code Combat Review

Code Combat Review

Assessment

Flashcard

Computers

8th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

15 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which line of code is correct? Options: hero.MoveLeft(), heroMoveLeft();, hero.moveleft(:, hero.moveLeft();

Back

hero.moveLeft();

2.

FLASHCARD QUESTION

Front

Which line of code will make the hero move up 4 times? Options: 4.hero.Move.Up();, hero.MoveUp(4);, hero.4MoveUp();, hero.Move4Up();

Back

hero.MoveUp(4);

3.

FLASHCARD QUESTION

Front

What must every line of code end with?

Back

semi-colon ;

4.

FLASHCARD QUESTION

Front

Which line of code will attack Kratt? Options: hero.attack("Kratt");, hero.attack("kratt");, hero.attack(Kratt);, Hero.Attack.Kratt;

Back

hero.attack("Kratt");

5.

FLASHCARD QUESTION

Front

What is the correct way to write a while loop? Options: while { }, while.true { }, while (loop), while (True) { }

Back

while (True) { }

6.

FLASHCARD QUESTION

Front

How do you create a variable for enemy1 Gert?

Back

var enemy1 = "Gert";

7.

FLASHCARD QUESTION

Front

What does the word in red symbolize: hero.moveUp(); ?

Back

The object

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

Already have an account?