1.

What does os.name contain?(a) the name of the operating system dependent module imported(b) the address of the module os(c) error, it should’ve been os.name()(d) none of the mentionedI have been asked this question during an internship interview.This key question is from Operating System topic in chapter Mapping Functions and Modules of Python

Answer»

Correct answer is (a) the name of the operating system dependent MODULE IMPORTED

Explanation: It CONTAINS the name of the operating system dependent module imported such as ‘posix’, ‘JAVA’ etc.



Discussion

No Comment Found

Related InterviewSolutions