Which of the following statements create a dictionary? (Multiple Correct Answers Possible)
a) d = {}
b) d = {"john":40, "peter":45}
c) d = {40:"john", 45:"peter"}
d) d = (40:"john", 45:"50") - correct answer b, c & d.
Which one of these is floor division?
a) /
b) //
c) %
d) None of the mentioned - correct answer b) //
What is the maximum possible length of an identifier?
a) 31 characters
b) 63 characters
c) 79 characters
d) None of the above - correct answer D
Why are local variable names beginning with an underscore discouraged?
a) they are used to indicate a private variables of a class
b) they confuse the interpreter
c) they are used to indicate global variables
d) they slow down execution - correct answer a
Which of the following is an invalid statement?