1. Who developed python P.
a) Vick van Rossum
b) Rasmus Lerdorf
c) Guido van Rossum
d) Niene Stom
2. Which type of programming does python support
a) object-oriented programming
b) structured programming
c) functional programming
d) all the above
3. Which is the correct syntax in python file
a) .python
b) .pl
c) .py
d) .p
4. All keyword in python are in
a) capitalized
b) lower case
c) upper case
d) None of the above
5. What will be the output a=5+*(34)
a) 38
b) 0
c) Error
6. Which of the following is used to define a block of code
a) indentation
b) key
c) bracket
d) all the above
7. Used to give single line comment
a) //
b) #
c) !
d) /*
8. Use of id function
a) It return id of the object
b) Every object does not have unique id
c) All the above
9. What is the output
>>> 'bc' >> 'a' + 'bc'
a) bc
b) abc
c) a
d) bca
10. What is the maximum possible length of an identifier
a) 31 characters
b) 63 characters
c) 79 characters
d) None of the mentioned
11. Which of the following is invalid
a) -a = 1
b) a = 10
c) _str_ = 1
d) None of the mentioned
12. Which of the following is an invalid variable
a) myString_1
b) 1stString
c) foo
d) -