nerdexam
GIAC

GPYC · Question #13

What is the output of the following program when executed with the Python Interpreter? student@573:~ cat program.py a = 10 a = a + 5 a += 5 print(a) student@573:~ python program.py

The correct answer is C. 20. You've hit your limit · resets 1pm (America/New_York)

Python Fundamentals & Command Line Tools

Question

What is the output of the following program when executed with the Python Interpreter? student@573:~ cat program.py a = 10 a = a + 5 a += 5 print(a) student@573:~ python program.py

Options

  • ASyntaxError: invalid syntax
  • B25
  • C20
  • D15

How the community answered

(58 responses)
  • A
    5% (3)
  • B
    2% (1)
  • C
    91% (53)
  • D
    2% (1)

Explanation

You've hit your limit · resets 1pm (America/New_York)

Topics

#arithmetic operators#augmented assignment#variable assignment

Community Discussion

No community discussion yet for this question.

Full GPYC Practice