The Joy of Computing using Python Week 1 NPTEL Assignment Answers

Looking for the most accurate and explained answers for The Joy of Computing using Python Week 1 NPTEL Assignment? You’re at the right place! This article includes expert-curated answers and logical reasoning for each question so you can score with confidence.


1. Which blocks can be used to move the cat?

  • Walk
  • Move
  • Teleport
  • Glide

Answer:✅ b, d
Explanation:

  • The “Move” block moves the sprite a specified number of steps.
  • “Glide” moves the sprite smoothly to a new position.

2. Which set of blocks moves the cat 40 steps and then points down?
(Visual options not shown, but correct answer based on logic)

Answer:✅ b
Explanation:
This block combination likely includes “move 40 steps” and “point in direction 180”.


3. What does the cat say here?

  • Says the number 7, for 1 second, 7 times and multiplies number variable
  • Says the number 7, for 1 second, 7 times and adds to number variable
  • Says the number 7, for 1 second, then says numbers from 6 to 1
  • Says the number 7, for 1 second, then says numbers from 6 to 0

Answer:✅ c
Explanation:
It starts at 7 and then counts down till 1, each for 1 second.

📚 Want Full NPTEL Assignment Support?
If you’re looking for the complete and expert-curated solution set for Week 1 of The Joy of Computing using Python with clear explanations,
👉 Click here to visit Answer GPT – your trusted learning partner.


4. From the previous question, what is the value of myNum variable after the loop ends?

  • 1
  • 2
  • 7
  • 0

Answer:✅ d
Explanation:
The loop decreases or resets the variable myNum, so the final value becomes 0.


5. Let answer for previous question be stored in variable x, what does the cat say after the execution of the loop?

  • 16
  • 5
  • 29
  • 44

Answer:✅ b
Explanation:
The program calculates a final expression based on variable x which was 0.



6. Which of the following data types is primarily used for storing a sequence of characters?

  • Integer
  • Float
  • String
  • Boolean

Answer:✅ c
Explanation:
Strings are used to store text data in all major programming languages.


7. Which of the following statements best describes why loops are commonly used?
Answer:✅ b
Explanation:
Loops help in repeating code efficiently without redundancy.


8. Suppose you have an arithmetic expression involving addition, subtraction, multiplication, and exponentiation. Which statement is true?
Answer:✅ c
Explanation:
Such expressions are easily computed using Python’s arithmetic operators.


9. In which code block is the squared distance between (15, 25) and (20, 19) calculated?
Answer:✅a
Explanation:
This likely uses the formula:
(x2 – x1)^2 + (y2 – y1)^2
→ (20-15)^2 + (19-25)^2 = 25 + 36 = 61


10. What task does the block below accomplish?

  • Moves the ball in a parabolic path and stops 18 away steps from center(0, 0) in x direction.
  • Moves the ball in a circular path and 18 times.
  • Moves the ball in a parabolic path and stops 18 away steps from center(0, 0) in y direction.
  • Moves the ball in a parabolic path and stops 17 away steps from center(0, 0) in x direction.

Answer:✅a
Explanation:
The logic indicates a motion in x direction with a parabolic pattern, stopping 18 units away.


Conclusion
We hope these answers help you clearly understand and complete The Joy of Computing using Python – Week 1 assignment.
To access more NPTEL assignment solutions for all weeks and subjects, visit:
👉The Joy of Computing using Python Week 1 NPTEL Assignment Answers at Answer GPT.

Kamlesh Patel

Leave a Reply

Your email address will not be published. Required fields are marked *