# NPTEL The Joy Of Computing Using Python Assignment 7 Answers

NPTEL The Joy of Computing using Python Assignment 7 Answers 2022:- In this post, We have provided answers to NPTEL The Joy of Computing using Python Assignment 7. We provided answers here only for reference. Please, do your assignment to your own knowledge.

## About The Joy Of Computing Using Python

The Joy Of Computing Using Python is a fun-filled whirlwind tour of 30 hrs, covering everything you need to know to fall in love with the most sought-after skill of the 21st century. This course includes examples of analytics in a wide variety of industries, and we hope that students will learn how you can use analytics in their careers and life. One of the most important aspects of this course is that you, the student, are getting hands-on experience creating analytics models; we, the course team, urge you to participate in the discussion forums and to use all the tools available to you while you are in the course!

CRITERIA TO GET A CERTIFICATE

Average assignment score = 25% of the average of best 8 assignments out of the total 12 assignments given in the course.
Exam score = 75% of the proctored certification exam score out of 100

Final score = Average assignment score + Exam score

YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF THE AVERAGE ASSIGNMENT SCORE >=10/25 AND EXAM SCORE >= 30/75. If one of the 2 criteria is not met, you will not get the certificate even if the Final score >= 40/100.

## NPTEL The Joy of Computing using Python Assignment 7 Answers 2022 [July – Dec]

1. How ladders & snakes are represented by the instructor?

a. Through lists.
b. Through dictionaries.
c. Through if and elif conditions.
d. Through sets.

`Answer:- c`

2. Which of the following is the correct full form of CSV?

a. Comma separated values.
b. Colon separated values.
c. Semi-Colons separated values.
d. Tab separated values.

`Answer:- a`

3. Why do we use functions?

b. To reuse code blocks.
c. For the ease of code debugging.
d. For fun.

`Answer:- a, b, c`

4. In snakes and ladders, what can be the other ways, except for one used by the instructor, to keep track of ladders and snakes?

a. Maintain a dictionary with snakes or ladder number blocks as keys.
b. Using the if condition to check on every number.
c. Using lists.
d. None of the above

`Answer:- a, c`

5. Which of the following libraries is used for animation?

a. Matplotlib
b. Turtle
c. Random
d. PIL

`Answer:- b`

6. The spiral animation problem can be broken down into?

a. A list.
b. A 2D table.
c. A 3D table.
d. A dictionary.

`Answer:- b`

7. What is the purpose of the GPS program shown in the lectures?

a. To show directions to the user.
b. To track the directions of the user.
c. To show the way to the user on maps.
d. None of the above.

`Answer:- b`

8. What does the following program will do after execution?

• Rename snakesraw.png as snakes.png
• Make a copy of snakesraw.png with the name snakes.png
• Make a copy of snakesraw.png with the name snakes.jpeg
• Throws an error
`Answer:- For Answer Click Here`

9. Which of the following code will draw a star?

`Answer:- For Answer Click Here`

10. Which method is used to fill color in shapes drawn by the turtle?

a. color
b. fillcolor
c. changecolor
d. putcolor

`Answer:- b`

### Programming Assignment Week 7

Q1. Given a sqaure matrix M, write a function DiagCalc which calculate the sum of left and right diagonals and print it respectively.(input will be handled by us)

Code:-

``Answers will be Uploaded Shortly and it will be Notified on Telegram, So JOIN NOW``

Q2. Given a matrix M write a function Transpose which accepts a matrix M and return the transpose of M.
Transpose of a matrix is a matrix in which each row is changed to a column or vice versa.

Code:-

Q3. Given a matrix M write a function snake that accepts a matrix M and returns a list which contain elements in snake pattern of matrix M. (See explanation to know what is snake pattern)

Code:-

``Answers will be Uploaded Shortly and it will be Notified on Telegram, So JOIN NOW``

## NPTEL The Joy Of Computing Using Python Assignment 7 Answers 2022 {Jan – June}

Q1. Values of CSV files are separated by?

a. Commas
b. Colons
c. Semi-colons
d. Slash

Q2. What is the output of the following code?

• 1, 2, 3, 7, 11, 10, 9, 5, 6
• 1, 2, 3, 5, 6, 7, 9, 10, 11
• 1, 5, 9, 10, 11, 7, 3, 2, 6
• 1, 5, 9, 2, 6, 10, 3, 7, 11

Q3. What will be the output of the following code?

• Scalar triangle
• Right angle triangle
• Equilateral triangle
• Isosceles triangle

Q4. Which of the following program will draw a hexagon?

Q5. Which of the following library is used to render data on google maps?

Q6. What is the output of the following code?

Q7. Which turtle command is equivalent to lifting up a pen.

Q8. Why do we use functions?

Q9. Library used to import images?

Q10. In snakes and ladder what can be the ways to track ladders and snakes?