Computers

10th

grade

Image

Python Arcade 10Com at 26/5/2021

1
play

11 questions

Show Answers
See Preview
  • 1. Multiple Choice
    20 seconds
    1 pt
    Image

    Why did this python code produce an error?

    It is no python code.

    Indentation is wrong.

    The if statement is incorrect

    can't see an error

  • 2. Fill in the Blank
    20 seconds
    1 pt

    What statement need to be there for ????


    output = "x: " + ?????(self.player_sprite.center_x)

    arcade.draw_text(output, 10, 20, arcade.color.WHITE, 14)

    output = "y: " + ?????(self.player_sprite.center_y)

    arcade.draw_text(output, 10, 40, arcade.color.WHITE, 14)

  • 3. Multiple Choice
    20 seconds
    1 pt

    What is str in this python code?


    output = "x: " + str(self.player_sprite.center_x)

    arcade.draw_text(output, 10, 20, arcade.color.WHITE, 14)

    Python arcade library function

    Variable

    string

    build-in python function

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?