Search Header Logo

Code Combat Review (Python)

Authored by Karen Hogan

Computers

8th Grade

Used 916+ times

Code Combat Review (Python)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Which line of code is correct?

hero.MoveLeft()

heroMoveLeft();

hero.moveleft(:

hero.moveLeft()

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which line of code will make the hero move up 4 times?

4.hero.Move.Up();

hero.MoveUp(4);

hero.4MoveUp();

hero.Move4Up();

3.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What must every line of code end with?

comma ,

semi-colon ;

parantheses ()

period .

4.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Which line of code will attack Kratt?

hero.attack("Kratt")

hero.attack("kratt");

hero.attack(Kratt);

Hero.Attack.Kratt;

5.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

What is the correct way to write a while loop?

while {

while.true {

while (loop)

while True:

6.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

How do you create a variable for enemy1 Gert?

enemy1 = "Gert"

enemy1 = Gert

var.enemy1 = Gert;

var.Enemy.1 = "Gert";

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

You can enter a number as an argument to instruct your object to move more than one space at a time.

True

False

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?