Ticker

6/recent/ticker-posts

Python mcq for competitive exam preperation level4

Q1.uniform function is a part of
random module
math module
string module
init module
Q2.which is not python built in function
len()
ranrange
pow()
str()
Q3.what is the output of function pow(2,5)
12
64
32
48
Q4.Mode will refer to binary data
r
w
+
b
Q5.Information stored on a storage device with name is called
list
file
tuple
array
Q6.which function read all the characters
readchar()
read()
readall()
readchars
Q7.read method returns
list
tuple
string
file
Q8.readlines method returns
a list of lines
str
char
list of integers
Q9.Not a valid mode to open files
ab
r+
rw
a+
Q10.Default file open mode is
append
write
read
read or write

Post a Comment

0 Comments