nerdexam
GIAC

GPYC · Question #47

What will the contents of the "__name__" variable be if the program "gpyc.py" is run as a standalone program?

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

Python Fundamentals & Command Line Tools

Question

What will the contents of the "name" variable be if the program "gpyc.py" is run as a standalone program?

Options

  • AThe name of the Python version used to create the module
  • Bmain
  • CThe name of the GCC compiler used to compile the module
  • Dgpyc

How the community answered

(49 responses)
  • A
    6% (3)
  • B
    88% (43)
  • C
    2% (1)
  • D
    4% (2)

Explanation

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

Topics

#__name__#__main__#module execution#Python scripts

Community Discussion

No community discussion yet for this question.

Full GPYC Practice