Study

Code Combat

  •   0%
  •  0     0     0

  • What would the code look like of you need the hero to Move Right 3 times?
    hero.moveRight(3)
    hero.moveRight3()
    Hero.moveRight(3)
    heromove.Right(3)
  • A ______ holds data for later use in the code.
    Function
    Variable
    Expression
    Loop
  • To identify and remove errors from software program
    Debugging
    Decoding
    Refining
    Clarify
  • What is a # used for in Python?
    The start of a set of code lines
    Signifies a Comment Line (for instructions, notes)
    It is used with forever loops
    It has no use in Python
  • What will the code (shown below) do:
    Move Right, Up, Right, Down - 2 times through this sequence
    Move Right, Up, Right, Down - Repeating over & over
    Move Right, Up, Right, Down - 1 time through this sequence
    Move Right, Down, Right, Down - Repeating over and over
  • What would the line of code look like if you need the hero to move up?
    hero.moveUp{}
    hero.moveup()
    hero.moveUp()
    Hero.moveUp()
  • Find the coding error in the image below:
    Stop .
    Capital Letter
    Brackets & Capital Letter
    Brackets ()
  • How do you write a loop that never ends?
    while Object > 0:
    while True:
    while Object = 0:
    While True:
  • What is missing from this line of code? selfmoveRight()
    Brackets ()
    Hero
    Full Stop .
    Capital Letter
  • The statement below will do what?
    Ask for the password
    Attack the door over & over
    Attack the door
    Move to the door
  • What programming language are we learning in Code Combat?
    Javascript
    HTML
    Python
    Java
  • What comes first in the line of code that will make your character move?
    Function
    Object
    Loop
    Syntax
  • A loop will make the character
    Move the number of times listed in the brackets
    Repeat the Same Moves
    Move twice
    Move once
  • What is missing from this line of code? self.moveright()
    Full Stop .
    Brackets ()
    Capital Letter
    Hero
  • What is missing from this line of code? selfmoveRight
    Brackets ()
    Hero
    Full Stop .
    Brackets () & Full Stop .