Python Practice Set 3

1. What is user defined data type in Python?


2. Which code does the compiler convert the Python source code?


3. Which is used to write block of code in Python?


4. The elements of which data structure cannot be changed in Python?


5. In Python, can we create a tuple without round bracket ( )?


6. Which syntax does not create a tuple?


7. Which of the following is not a feature of dictionary data structure?


8. Which operator works similar to has_key() in python?


9. If the key is not found in a dictionary, then what does the get() method return?


10. Which method is used to remove all the items in the dictionary?


11. What does popitem() method return in dictionary?


12. The maximum number of arguments that can be given to slice a string?


13. What is the correct order of passing arguments in Slicing?


14. To which data structure does the slicing concept apply?


15. What is the default value of step in slicing?


16. In python, when a function returns multiple values, in which data structure are those values ​​stored?


17. How can a doc string be accessed in Python?


18. The maximum number of arguments the find() method can take?


19. Which of the following cannot be a variable?


20. How are operators with the same value precedence evaluated?


21. Which of the following expression has highest precedence?


22. What is the output of print(0.1 + 0.2 == 0.3) ?


23. What is the output of print(0.1 + 0.2 > 0.3) ?


24. What is the maximum possible length of an identifier?


25. What do we use to define a block of code in Python language?