Class 12 CS Chapter 2 Back Exercise Part A Solutions Sumita Arora New Syllabus / listing12CSSA, Uncategorized / By Neha 19. Create a dictionary named D with three entries, for keys ‘a’, ‘b’ and V . What happens if you try to index a nonexistent key (D[‘d’]) ? What does Python do if you try to assign to a nonexistent key d (e.g., D[‘d’]=’spam’) ? # Code ...click here for answer 1. What is the internal structure of Python strings ? ...click here for answer 2. Write a Python script that traverses through an input string and prints its characters in different lines – two characters per line. ...click here for answer 3. Discuss the utility and significance of Lists, briefly. ...click here for answer 5. Start with the list [8, 9, 10]. Do the following : ...click here for answer 7. What are the two ways to add something to a list ? How are they different ? ...click here for answer 8. What are the two ways to remove something from a list? How are they different ? ...click here for answer 9. What is the difference between a list and a tuple ? ...click here for answer 10. In the Python shell, do the following : All the ...click here for answer 11. Discuss the utility and significance of Tuples, briefly. ...click here for answer 13. What is the difference between (30) and (30,) ? ...click here for answer 14. Why is a dictionary termed as an unordered collection of objects ? ...click here for answer 15. What type of objects can be used as keys in dictionaries ? ...click here for answer 16. Though tuples are immutable type, yet they cannot always be used as keys in a dictionary. What is the condition to use tuples as a key in a dictionary ? ...click here for answer 17. Dictionary is a mutable type, which means you can modify its contents ? What all is modifiable in a dictionary ? Can you modify the keys of a dictionary ? ...click here for answer 18. How is del D and del D[] different from one another if D is a dictionary ? ...click here for answer 20. What is sorting ? Name some popular sorting techniques. ...click here for answer 21. Discuss Bubble sort and Insertion sort techniques. ...click here for answer