strings
lists
tuples
integers
[0.0, 1.0]
(0.0, 1.0]
(0.0, 1.0)
[0.0, 1.0)
sys.version
sys.version()
sys.version(0)
sys.version(1)
sys.platform
sys.path
sys.readline
sys.argv
What will be the output of the following Python code, if the code is run on Windows operating system?
import sys
if sys.platform[:2]== 'wi':
print("Hello")
Error
Hello
No output
Junk value
What will be the output of the following Python code, if the sys module has already been imported?
sys.stdout.write("hello world")
helloworld
hello world10
hello world11
error
What will be the output of the following Python code?
eval(sys.stdin.readline())
"India"
India5
India
‘India ’
‘India’
Computer
‘Computer ’
Computer8
sys.argv[0]
‘ ‘
sys.stderr.write(“hello”)
‘hello’
‘hello ’
hello
hello5
What will be the output of the following Python code
[ ]
[‘ ‘]
print(sys)
print(dir.sys)
print(dir[sys])
print(dir(sys))
1
0
A computer language
A step by step procedure for solving a problem
A branch of mathematics
None of the above
Compiler
Debugger
Editor
An operation code
An address
An operand
An algorithm
A decision table
A program
Interpreters
Both Compiler and Interpreter
Interpreter generates an object program from the source program
Interpreter is a kind of translator
Interpreter analysis each source statement every time it is to be executed
Logical errors
Syntax errors
Both Logical and Syntax errors
None of these