nerdexam
GIAC

GPYC · Question #28

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

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

Python Fundamentals & Command Line Tools

Question

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

Options

  • A15
  • B5
  • C10
  • DSyntaxError: invalid syntax

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    8% (2)
  • C
    88% (21)

Explanation

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

Topics

#variable assignment#Python execution#reassignment#print function

Community Discussion

No community discussion yet for this question.

Full GPYC Practice