Solved

When a Python Program Begins Execution, It Creates Three Xe \bullet

Question 13

Multiple Choice

When a Python program begins execution, it creates three xe "file object:standard"xe "standard file objects"standard file objects: \bullet sys.stdin-the standard input file object,
\bullet sys.stdout-the standard output file object, and
\bullet sys.stderr-the standard error file object.
You must import the sys module if you need to refer to these objects explicitly in your code, but this is rare. Which of the following statements is false?


A) Though these are considered file objects, they do not read from or write to files by default.
B) The input function implicitly uses sys.stdin to get user input from the keyboard.
C) Function print implicitly outputs to sys.stdout, which appears in the command line.
D) Python implicitly outputs program errors and tracebacks to sys.stdout.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions