NPTEL The Joy Of Computing Using Python Week 5 Assignment Solution

## NPTEL The Joy Of Computing Using Python Week 5 Assignment Answer 2023

**1. Which is the fastest sorting algorithm?**

- Bubble Sort
- Bucket Sort
- Quick Sort
- Insertion Sort

Answer :-For AnswerClick Here

**2. How can you remove all items from a dictionary?**

- dict.clear()
- del dict
- dict.remove_all()
- dict.pop()

Answer :-For AnswerClick Here

**3. What happens if you try to add a new key to a dictionary that already exists?**

- The key and its associated value will be updated.
- The key and its associated value will be added.
- The key will be added, but the associated value will remain unchanged.
- An error will occur.

Answer :-For AnswerClick Here

**4. Which of the following is true about dictionaries?**

- There can be multiple same keys.
- Every value must be unique.
- Every key must be unique.
- We can’t get every key from the dictionary.

Answer :-For AnswerClick Here

**5. What is the syntax to create a dictionary?**

- D = []
- D = {}
- D = ()
- D = dictionary()

Answer :-For AnswerClick Here

**6. What will be the output of the following code?**

- ‘a’ ‘b’ ‘c’
- 20 30 50
- (‘a’, 20), (‘b’, 30), (‘c’, 50)
- (‘a’, ‘b’, ‘c’) (20, 30, 50)

Answer :-For AnswerClick Here

**7. In the Monte Hall Problem, what is the probability of winning if you switch doors after the host reveals a goat behind one of the other doors?**

- 1/3
- 1/2
- 2/3
- 3/4

Answer :-For AnswerClick Here

**8. In the Monte Hall Problem, what is the probability of winning if you do not switch doors after the host reveals a goat behind one of the other doors?**

- 1/3
- 1/2
- 2/3
- 3/4

Answer :-For AnswerClick Here

**9. What is the name of the game show that the Monte Hall Problem was based on?**

- Jeopardy
- Wheel of Fortune
- The Price is Right
- Let’s Make a Deal

Answer :-For AnswerClick Here

**10. Which module in Python can be used for Speech to Text conversion?**

- SpeechRecognition
- PyAudio
- Wave
- all of the above

Answer :-For AnswerClick Here

Course Name | The Joy Of Computing Using Python |

Category | NPTEL Assignment Answer |

Home | Click Here |

Join Us on Telegram | Click Here |