Skip to content
#1. ______ are just containers for mapping names to objects.
#2. _______ is simply a name given to objects.
#3. ______ can have various functions and classes.
#4. _______ is a collection of names.
#5. ______ is the portion of the program from where a namespace can be accessed directly without any prefix.
#6. _____ is used to create an object.
#7. Suppose list1[4,3,5,2,3], what is list1[-2]?
#8. In Python case sensitive when dealing with identifiers?
#9. What is called when a function is defined inside a class?
#10. Suppose listExample is [‘h’,’e’,’l’,’l’,’o’], what is len(listExample)?
#11. What does 3^4 evaluate to?
#12. What datatype is the object below?L=[1,23,”hello”,1]
#13. How many keyword arguments can be passed to a function in a single function call?
#14. Select all options that print hello-how-are-you
#15. How do you get the current position within the file?
#16. What is answer of this expression, 22%3 is?
#17. Say s=’hello’ what will be the return value of type(s)?
#18. The assignment of more than one function to a particular operator is _________
#19. Can one block of except statements handle multiple exception?
#20. The output of the expression is:bin(29)
#21. Which of the following will run without errors?
#22. Which among the following list of operators has the highest precedence?+,-,*,%,/,,|
#23. What is the biggest reason for the use of polymorphism?
#24. Suppose list1 is [1,3,2], What is list1*2?
#25. What is returned by math.ceil(3,4)?