Dictionary
Sign in to Google to save your progress. Learn more
Name of the Student *
Name of KV *
1.What will be the output of the following Python code snippet?                                                                                      d = {"john":40, "peter":45}                                                                                                                  "john" in d *
1 point
2. What will be the output of the following Python code snippet?                                                                            d1 = {"john":40, "peter":45}                                                               d2 = {"john":466, "peter":45}                                                          d1 == d2 *
1 point
3. . What will be the output of the following Python code snippet?                                                                              d = {"john":40, "peter":45}                                                       d["john"] *
1 point
4. Suppose d = {“john”:40, “peter”:45}, to delete the entry for “john” what command do we use? *
1 point
5.What will be the output of the following Python code snippet?d = {"john":40, "peter":45}                             print(list(d.keys())) *
1 point
6. Suppose d = {“john”:40, “peter”:45}, what happens when we try to retrieve a value using the expression d[“susan”]? *
1 point
7. Which of these about a dictionary is false? *
1 point
8. Which of the following is not a declaration of the dictionary? *
1 point
9.What will be the output of the following Python code snippet?                                                                                                a={1:"A",2:"B",3:"C"}                                                                                                    for i,j in a.items():                                                                             print(i,j,end=" ") *
1 point
10.Which of the statements about dictionary values if false? *
1 point
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy