The Joy Of Computing Using Python Week 5 Assignment 2023

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 

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

Conclusion: 

I Request everyone to revisit the website on/before to last date for any re-verification of answers.
 
If you have any queries, contact us. I am very thankful to answer you.
 
NOTE: I'm answering these questions to the best of my knowledge.

One Comment Please !

Post a Comment (0)
Previous Post Next Post