Python Basics with CodeCombat

Python Basics with CodeCombat

7th Grade

7 Qs

quiz-placeholder

Similar activities

prep1-revision

prep1-revision

7th Grade

12 Qs

Create a Website 1

Create a Website 1

KG - University

10 Qs

Computer safety

Computer safety

6th - 9th Grade

10 Qs

Wee Word Intro

Wee Word Intro

7th - 12th Grade

12 Qs

Y7 End of Term 1 Quizz

Y7 End of Term 1 Quizz

7th Grade

10 Qs

Scratch!

Scratch!

4th Grade - Professional Development

8 Qs

Creating Webpages

Creating Webpages

6th - 8th Grade

12 Qs

Check-up Exercise: Buttons

Check-up Exercise: Buttons

7th Grade

10 Qs

Python Basics with CodeCombat

Python Basics with CodeCombat

Assessment

Quiz

Computers

7th Grade

Practice Problem

Medium

Created by

Paing Khant Naing

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...

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to move the hero to the right in CodeCombat using Python?

`hero.moveLeft()`

`hero.moveRight()`

`hero.moveUp()`

`hero.moveDown()`

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands is used to make the hero attack an enemy in CodeCombat?

`hero.defend()`

`hero.attack()`

`hero.run()`

`hero.hide()`

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In CodeCombat, which method would you use to make the hero move to the left?

`hero.moveRight()`

`hero.moveLeft()`

`hero.moveUp()`

`hero.moveDown()`

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code print? ```python for i in range(3): print(i) ```

0 1 2

1 2 3

0 1 2 3

1 2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a string variable `name` with the value "CodeCombat" in Python?

`name = 'CodeCombat'`

`name = CodeCombat`

`name := "CodeCombat"`

`string name = "CodeCombat"`

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In CodeCombat, which command would you use to make the hero move up?

`hero.moveRight()`

`hero.moveLeft()`

`hero.moveUp()`

`hero.moveDown()`

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to use the `hero.attack` method in CodeCombat?

`hero.attack("enemy")`

`hero.attack(enemy)`

`hero.attack()`

`hero.attack[enemy]`

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?