
Python Basics with CodeCombat

Quiz
•
Computers
•
7th Grade
•
Medium
Paing Khant Naing
Used 3+ times
FREE Resource
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]`
Similar Resources on Wayground
9 questions
Year 7 & 8 - Scratch

Quiz
•
4th - 9th Grade
10 questions
MakeCode Arcade Quiz

Quiz
•
6th - 8th Grade
10 questions
Turtle academy (Lessons 6 and 7)

Quiz
•
6th - 8th Grade
10 questions
Turtle Academy (Lessons 1 & 2)

Quiz
•
6th - 8th Grade
10 questions
I Can Code!

Quiz
•
KG - University
10 questions
python เบื้องต้น (codecombat)

Quiz
•
6th - 8th Grade
10 questions
MineCraft

Quiz
•
7th Grade
12 questions
S1 code.org Knowledge Check 1

Quiz
•
7th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade