Q1 WAP to enter roll number and names of five students and store the data in dictionary. ans d={} for i in range(5): r=int(input("enter rollno")) n=input("enter name") Q2 WAP to store book id, book name and price of three books and store the data in dictionary name "dict" sol dict={} for i in range(3): b_id=int(input("enter book id:")) b_name=input("enter book name:") b_price=int(input("enter price of book:")) dict[b_id]=b_name,b_price #note : by dafault the multiple values are stored in the dictionary in the tuple form Q3 Keys must be ______dictionary.(mutable/immutable) Ans: immutable Q4 Write a built in function which is used to create an empty dictionary. Ans: dict() Q5 Write the code to print only keys of the following dictionary. d={"Amit":40,"Sunil":34,"Naina":30} Ans: d.keys() Q6 Write the code to add the following detail in dictionary given above. "Ravi"-45 Ans Q7 Write the output of the following code: d={"Amit":40,"Sunil":34,"Naina":30} print(d["Amit"]+d['Sunil']) Ans 74 Q8 Name the function which is used to return a value of the given key. Ans get() Q9 Write two differences between list and dictionary. Q10 Write the output of the following: m=_{1:"jan",2:"jun",3:"aug"} print(m[1]) print(m["jan"]) Ans : print(m["jan"])# can't search according to the value Q11 Find errors in the following statement and write the correct code: n={1:10,2:20,3:30,4:40,5:50} (a) print(n.item()) (b) print(n.len()) (c) print(pop(5)) Q12 Write one similarity and one difference between del statement and pop() function in reference to dictionary.