Chapter 10: Python Namespace And Scope

 

Results

QUIZ START

#1. ______ are just containers for mapping names to objects.

Next

#2. _______ is simply a name given to objects.

Previous
Next

#3. ______ can have various functions and classes.

Previous
Next

#4. _______ is a collection of names.

Previous
Next

#5. ______ is the portion of the program from where a namespace can be accessed directly without any prefix.

Previous
Next

#6. _____ is used to create an object.

Previous
Next

#7. Suppose list1[4,3,5,2,3], what is list1[-2]?

Previous
Next

#8. In Python case sensitive when dealing with identifiers?

Previous
Next

#9. What is called when a function is defined inside a class?

Previous
Next

#10. Suppose listExample is [‘h’,’e’,’l’,’l’,’o’], what is len(listExample)?

Previous
Next

#11. What does 3^4 evaluate to?

Previous
Next

#12. What datatype is the object below?L=[1,23,”hello”,1]

Previous
Next

#13. How many keyword arguments can be passed to a function in a single function call?

Previous
Next

#14. Select all options that print hello-how-are-you

Previous
Next

#15. How do you get the current position within the file?

Previous
Next

#16. What is answer of this expression, 22%3 is?

Previous
Next

#17. Say s=’hello’ what will be the return value of type(s)?

Previous
Next

#18. The assignment of more than one function to a particular operator is _________

Previous
Next

#19. Can one block of except statements handle multiple exception?

Previous
Next

#20. The output of the expression is:bin(29)

Previous
Next

#21. Which of the following will run without errors?

Previous
Next

#22. Which among the following list of operators has the highest precedence?+,-,*,%,/,,|

Previous
Next

#23. What is the biggest reason for the use of polymorphism?

Previous
Next

#24. Suppose list1 is [1,3,2], What is list1*2?

Previous
Next

#25. What is returned by math.ceil(3,4)?

Previous
Finish