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?

Sign in or unlock GPYC to reveal the answer and full explanation for question #47. The question stem and answer options stay visible for context.

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

Unlock GPYC to see the answer

You've previewed enough free GPYC questions. Unlock GPYC for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#__name__#__main__#module execution#Python scripts
Full GPYC Practice