1.

Which of the following functions is not defined under the sys module?(a) sys.platform(b) sys.path(c) sys.readline(d) sys.argvI got this question during an online exam.This key question is from Sys Module in portion Mapping Functions and Modules of Python

Answer»

Correct ANSWER is (C) SYS.readline

The explanation is: The FUNCTIONS sys.platform, sys.path and sys.argv are defined under the sys MODULE. The function sys.readline is not defined. However, sys.stdin.readline is defined.



Discussion

No Comment Found

Related InterviewSolutions