Joy of Computing Using Python Week 7 Assignment | Nptel Week 7 Python Assignment Answers

The Joy of Computing Using Python Week 7 assignment answers ?  Also, we will discuss about the Programming assignment answers of week 7 in next article. In this article we will discuss about the answers of week  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.  I also providing the proofs. 

Also Read : The Joy Of Computing Week 6 Programming Assignment Answers

About Nptel 

NPTEL (National Programme on Technology Enhanced Learning) is a project initiated by the Indian government in 2003 to provide free online courses and educational resources in engineering, science, and humanities. It is a joint initiative of seven Indian Institutes of Technology (IITs) and the Indian Institute of Science (IISc) Bangalore. NPTEL offers online courses in various formats, including video lectures, course materials, and assignments, which are accessible to anyone with an internet connection. It has become one of the largest online repositories of educational resources in the world, with millions of registered users from all over the world. NPTEL is committed to enhancing the quality of engineering education in India and promoting lifelong learning.

Joy of Computing Using Python Week 7 Assignment


The Joy Of Computing Using Python Week 7 Assignment 

Last Date: 15-03-2023

Q1. Which of the following will be the uses of functions? 

a. Gives a higher-level overview of the task to be performed. 

b.  Reusability- uses the same functionality at various places. 

c.  A better understanding of code. 

d.  All of the above. 

e.  None of the above. 

Answer: [ D ] All the Above

Q2. What is the output of the following spiral print python function? 
 
            
spiral print python function


a. 1 2 3 4 5 6 12 18 17 16 15 14 13 7 8 9 10 11

b.  1 2 3 4 5 6 12 18 17 16 15 14 13 

c.  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18

d.  18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 

Answer: [ B ] 

Q3. Which of the following library shown below moves the turtle backward?

a.  turtle.back(distance)
 
b. turtle.bk(distance)
 
c. turtle.backward(distance)
 
d. All of the above

Answer: [ D ] All the Above

Q4. Which of the following library has to be imported to plot the route map using GPS locations 
       
        in python?

a.  gmplot
 
b. csv
 
c. both
 
d. None 

Answer: [ C ] Both

Q5. bytes, bytearray, memoryview are type of the ___ data type.
 
a. Mapping Type

b. Boolean Type

c.  Binary Types
 
d. All of the above
 
e. None of the above 

Answer: [ C ]  Binary Types

Q6. In the Snakes and Ladders game, the least number of times a player has to roll a die with 

      the following ladder positions is _____________ ladders = 

     { 3: 20, 6: 14, 11: 28, 15: 34, 17: 74, 22: 37, 38: 59, 49: 67, 57: 76, 61: 78, 73: 86, 81: 98, 88: 91 }
 
a. 4
 
b. 5
 
c. 6
 
d. 7 

Answer: [ B ]  5  

Q7. Which of the following code snippet will create a tuple in python?
 
a. name = (’kiran’,’bhushan’,’madan’) 

b. name = {’kiran’,’bhushan’,’madan’}
 
c. name = [’kiran’,’bhushan’,’madan’]

d.  None of the above 

Answer: [ A ]

Q8. What does the following Program Plot? 




 a. Plots the random number generated in each iteration
 
b. Plots the number of times the given input matches with the random number generated
 
c. Plots the input entered for each iteration
 
d. none of the above

Answer: [ B ]

Q9. Sentiment analysis involves working with ___________

a.  a piece of information is useful or not

b.  a piece of information is biased or unbiased
 
c. a piece of information is true or false
 
d. a piece of information is positive or negative

Answer: [ D ]

Q10. What does the following code in snippet  in python compute. 

What does the following code in snippet  in python compute.



a. checks whether the two given texts are the same
b. searches for text2 in text1
c. finds all the occurrences of text2 in text1
d. none of the above 

Answer: [ C ]


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