
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
10 questions
Flash Concepts
Quiz
•
7th Grade
10 questions
Basic Coding Terminology
Quiz
•
6th - 8th Grade
10 questions
Wired Microbit Networks
Quiz
•
7th - 9th Grade
10 questions
Web Basics
Quiz
•
7th - 8th Grade
9 questions
Introduction To Python
Quiz
•
6th - 8th Grade
10 questions
Apple - Learn to code (revision 1)
Quiz
•
7th Grade
10 questions
การเขียนโปรแกรม scratch
Quiz
•
4th - 9th Grade
12 questions
Web Development Vocabulary Words
Quiz
•
6th - 8th 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
