Professional Documents
Culture Documents
BENGALURU
REVISION
Class: 11 M.M = 20
[All questions carry same marks.]
1. Which of the following will add a key to the dictionary only if it does not already exist in the
dictionary?
2. Which of the following will raise an error if the given dictionary is empty?
4. Identify if program is correct. If not, write correct code and explain error.
NATIONAL ACADEMY FOR LEARNING
BENGALURU
REVISION
8. Write output.
a = (23,34,65,20,5)
print(a[0]+a.index(5))
NATIONAL ACADEMY FOR LEARNING
BENGALURU
REVISION
9. Write output.