Python Programming Exam Quiz: Trivia

11 Questions | Total Attempts: 38

SettingsSettingsSettings
Please wait...
Python Programming Quizzes & Trivia

Questions and Answers
  • 1. 
    Python writes data on screen using which function?
    • A. 

      Cout

    • B. 

      (display )

    • C. 

      Print()

    • D. 

      Echo

    • E. 

      Console.log()

    • F. 

      System.out.println()

  • 2. 
    Python can recognise this data: "hello"
    • A. 

      Yes

    • B. 

      No

    • C. 

      Sometimes

  • 3. 
    Python can recognise this data: 56.97
    • A. 

      Yes

    • B. 

      No

    • C. 

      Sometimes

  • 4. 
    Python can recognise this data:   computer
    • A. 

      Yes

    • B. 

      No

    • C. 

      Sometimes

  • 5. 
    Python can recognise this code: 3 + 6 * 8
    • A. 

      Yes

    • B. 

      No

    • C. 

      Sometimes

  • 6. 
    What does Python use to store values?
  • 7. 
    Python will run this program without errors: print("hello")
    • A. 

      True

    • B. 

      False

  • 8. 
    Python will run this program without errors: print(765.9908) print("that was a number")
    • A. 

      True

    • B. 

      False

  • 9. 
    The output of this program will be? print("5+7+2")
    • A. 

      14

    • B. 

      12

    • C. 

      5+7+2

    • D. 

      Nothing. It will return an error.

  • 10. 
    What will the output of this program be? print("Hello") text = "This is a number" print("Hi, " + text) number = 4 print(box + 2) print(box * 2) print(box * box - box)
    • A. 

      Hello Hi, This is a number 6 8 12

    • B. 

      HelloHi, This is a number6812

    • C. 

      Nothing, it will return an error

    • D. 

      Hello Hi, text box2 boxbox box

    • E. 

      Hello This is a number Hi, 4 box2 boxbox boxbox-box