Game Preview

Python in the Console

  •  English    16     Public
    Questions covering the material from the "Python in the Console" PowerPoint Presentation
  •   Study   Slideshow
  • Which command can display a message in the console?
    print
  •  15
  • True or False: Console applications use what is known as a graphical user interface
    False
  •  10
  • True or False: Console applications are entirely text-based
    True
  •  5
  • Will this command execute properly when run?
    yes
  •  10
  • When printing to the console, what comes after the print keyword?
    Parentheses
  •  15
  • What is missing from this statement?
    quotes
  •  15
  • What is ASCII art?
    text-based art that can be printed to the console
  •  15
  • What is the first word needed to define a function?
    def
  •  20
  • What two things are needed to call a function?
    function name, parentheses
  •  25
  • Each command in the body of a function must be...
    indented
  •  25
  • What comes after the parentheses in a function definition?
    colon
  •  20
  • What will be printed when this code runs?
    hi hi
  •  20
  • What will be printed when this code runs?
    Trick question! There is an error - the function names do not match
  •  20
  • How many smileys will be printed to the console?
    9
  •  20
  • Before a function can be called, it must be...
    defined
  •  15
  • What comes after "def" when defining a function?
    The function name
  •  15