DS140223-DS_TA
In Python 3, the maximum value for an integer is 263 - 1:
a.True
b.False
Which of the following are valid ways to specify the string literal foo’bar in Python:
a.‘foo’‘bar’
b.“”“foo’bar”“”
c.‘foo’bar’
d.‘foo’bar’
e,“foo’bar”
Which of the following is not a Python built-in function:
a.repr()
b.diff()
c.map()
d.round()
e.isinstance()
Which of the following is true about user- defined functions in Python?
a. Every function should have return statement at the end
b. The name of the functions defined by the user should follow some guidelines
c. The body of the function is indented and is enclosed by the brackets
d. None of the above
Which of the following is not a user-defined function?
a.all()
b.sort()
c.string()
d.sqrt()