
Python Basics with CodeCombat
Quiz
•
Computers
•
7th Grade
•
Practice Problem
•
Medium
Paing Khant Naing
Used 3+ times
FREE Resource
Enhance your content in a minute
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

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
12 questions
Animation techniques - Adobe Animate
Quiz
•
6th - 12th Grade
11 questions
Micro:bit
Quiz
•
7th - 10th Grade
10 questions
Font Formatting
Quiz
•
7th Grade
10 questions
word processing one
Quiz
•
6th - 8th Grade
10 questions
PROGRAMACIÓN SCRATCH
Quiz
•
6th - 11th Grade
10 questions
POCS-Ch2.1 (Vocab)
Quiz
•
7th - 12th Grade
10 questions
3.4 Microbit RETRIEVAL PRACTICE
Quiz
•
6th - 9th Grade
10 questions
Arduino - Electronic Components
Quiz
•
7th 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
