1.

What does os.getlogin() return?(a) name of the current user logged in(b) name of the superuser(c) gets a form to login as a different user(d) all of the mentionedI have been asked this question by my school teacher while I was bunking the class.I'd like to ask this question from Operating System in section Mapping Functions and Modules of Python

Answer»

The CORRECT CHOICE is (a) name of the current user LOGGED in

Explanation: It returns the name of the user who is CURRENTLY logged in and is running the script.



Discussion

No Comment Found

Related InterviewSolutions