The Joy of Computing Using Python Week 5 assignment answers ?  Also, we will discuss about the Programming assignment answers of week s. In this article we will discuss about the answers of week 5 of joy of computing. The answers shared here will be on our own knowledge. I am answering these questions with Confident. Please use this answers as reference only. Â
Also Read: The Joy of computing using python Week 4 Assignment Answers
About Nptel
NPTEL is a wonderful platform to students and professionals. It is the project initiated and funded by the Government of India to provide high quality education in engineering, science and technology to students and faculty across India through Online Courses in Various domain such as Computer Science, electronics and communication engineering, civil engineering, mechanical engineering, electrical engineering, and many more. These courses are created by experts from various Indian Institutes of Technology (IITs) and other top engineering colleges in India. The courses are available for free to anyone who wishes to enroll and learn from them, and students can also obtain certificates upon completion of the courses for a nominal fee.
The Joy Of Computing Using Python Week 5 Assignment 2023Â
Below you can find the answers of Week 5 assignment Answers
Last Date : 01-03-23
Q1. Binary Search can be applied on ________.Â
a. Sorted ListÂ
b. Unsorted ListÂ
c. Both A and B
d. Any List with any elementsÂ
Answer: [ a ] Sorted ListÂ
Q2. Which of the following is a Waveform Audio File Format.Â
a. Wav
b. Wave
c. Wv
d. Waves
Answer:Â [ a, b ] Wav, WaveÂ
Q3. Which of the following libraries can help us to convert audio into lyrics?
a. Speech_RecognitionÂ
b. text_to_Speech
c. speech_to_text
d. text_translate
Answer:Â [ a ]
Q4. State True or False: In the monte hall problem, swapping the choice does not increase the chanceÂ
    of winning. (For the large number of experiments)Â
a. Swapping will decrease the chance of winning.
b. Swapping will increase the chance of winning.
c. Swapping will not affect the chance of winning.
d. Swapping may or may not increase the chance of winning.
Answer:Â [ b ]Â Swapping will increase the chance of winning.
Q5. What is the correct way to initialize a dictionary?
a. D = {a-10, b-20, c-30}
b. D = {'a'-10, 'b'-20, 'c'-30}
c. D = {a:10, b:20, c:30}
d. D = {'a':10, 'b':20, 'c':30}
Answer:Â [ d ]Â D = {'a':10, 'b':20, 'c':30}Â
For 5,6,7 Answer Proof is below:
Q6. What is the correct syntax to get all the keys only from a dictionary d?
a. d.key()
b. d.item()
c. d.value()
d. d.keys()
Answer:Â [ d ]Â d.keys()
Q7. Which of the following is valid?.
a.  D = {'a': {'a': 10}, 'b': 10}
b.  D = {'a': 'a': 10, 'b': 10}
c.  D = {'a': {'a': 10}, 'b': {'b': 10}}
d.  D = {'a': 'a': 10,'b': 'b': 10}
Answer:Â [ a , c ]Â Â D = {'a': {'a': 10}, 'b': 10}Â |Â D = {'a': {'a': 10}, 'b': {'b': 10}}
Q8. For bubble sort, which of the following statements is true?
a.  If the list is sorted, the algorithm won’t work.
b. In each iteration consecutive pairs of elements are compared with each other.
c. Every element is compared with every other element in the list in each iteration.
d. Swapping never happens in bubble sort.
Answer:Â [ b ]Â In each iteration consecutive pairs of elements are compared with each other.Â
Q9. Which error is faced while accessing an element that is not there in a dictionary?
a. Key Error
b. Index ErrorÂ
c. RunTime Error
d. Value Error
Answer:Â [ a ] Key Error
Q10. In dictionaries, d.items() will return ______.
a. Pairs of all (key, value) together.
b. All (keys) and (values) separately.
c. All (values) and (keys) separately.
d. Pairs of all (value, key) together.
Answer:Â [ a ]Â Pairs of all (key, value) together.
Also Read:Â The Joy of computing using python Week 4 Assignment Answers