{Week 1} The Joy of Computing using Python nptel Assignment Answers 2025

NPTEL The Joy of Computing using Python Week 1 Assignment Answers 2025

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

  • Walk
  • Move
  • Teleport
  • Glide
Answer :- b, d

2. Which set of blocks moves the cat 40 steps and then points down ?

Answer :- b

3. What does the cat say here ?

  • Says the number 7, for 1 second, 7 times and changes the value of number variable by multiplying previous value with 1.
  • Says the number 7, for 1 second, 7 times and changes the value of number variable by adding previous value with 1.
  • Says the number 7, for 1 second, then says numbers from 6 to 1 one by one for 1 second each.
  • Says the number 7, for 1 second, then says numbers from 6 to 0 one by one for 1 second each.
Answer :- For Answer Click Here 

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

  • 1
  • 2
  • 7
  • 0
Answer :- 

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 :- 

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

  • Integer
  • Float
  • String
  • Boolean
Answer :- For Answer Click Here 

7. Which of the following statements best describes why loops are commonly used ?

  • Loops make the code run slower but more reliably.
  • Loops allow you to execute a block of code repeatedly without having to write it multiple times.
  • Loops are only useful for error handling.
  • Loops automatically convert variables from one data type to another.
Answer :- 

8. Suppose you have an arithmetic expression involving addition, subtraction, multiplication, and exponentiation. Which statement is true about instructing a computer to evaluate it?

  • Such expressions cannot be computed.
  • A computer can only evaluate expressions involving addition and multiplication.
  • These expressions can be evaluated using built-in operations or libraries.
  • A computer can only evaluate expressions involving addition and subtraction.
Answer :- 

9. In which of the following code blocks calculation of the squared distance between two points (15, 25) and (20, 19) is accomplished.

Answer :- 

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 :- For Answer Click Here 

Leave a Comment