The Joy of Computing using Python | NPTEL 2025 | Week 1 Assignment Solutions

The Joy of Computing NPTEL Assignment Solutions

This set of MCQ(multiple choice questions) focuses on the The Joy of Computing using Python NPTEL Week 1 Assignment Solutions.

The course carries programming to your work area with stories, similarities and distinguished models. Going reflections to experiences and designing to engineering, the course concentrates fundamentally to rouse the student’s psyche to automatically think intelligently and show up at an answer. As a feature of the course, you will figure out how to practice and culture the craft of programming with Python as a language.

Course layout

Answers COMING SOON! Kindly Wait!

Explore the joy of learning Python through this NPTEL course as you tackle the Week 1 challenges!

Week 0: Assignment answers
Week 1: Assignment answers
Week 2: Assignment answers
Week 3: Assignment answers
Week 4: Assignment answers
Week 5: Assignment answers
Week 6: Assignment answers
Week 7: Assignment answers
Week 8: Assignment answers
Week 9: Assignment answers
Week 10: Assignment answers
Week 11: Assignment answers
Week 12: Assignment answers

NOTE: You can check your answer immediately by clicking show answer button. The Joy of Computing using Python NPTEL 2025 Week 1 Assignment Solution” contains 10 questions.

The Joy of Computing using Python NPTEL Week 1 Assignment Solutions is a formal document that emphasizes critical thinking and problem-solving through Python programming. This course aims to inspire students while providing opportunities to enhance their programming skills creatively. The assignment document consists of 10 questions for Week 1.

Now, start attempting the quiz.

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

The Joy of computing using python NPTEL week 1

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

a) Walk
b) Move
c) Teleport
d) Glide

Answer: b), d)

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

Answer: b)

Q3. What does the cat say here ?

a) Says the number 7, for 1 second, 7 times and changes the value of number variable by multiplying previous value with 1.
b) Says the number 7, for 1 second, 7 times and changes the value of number variable by adding previous value with 1.
c) Says the number 7, for 1 second, then says numbers from 6 to 1 one by one for 1 second each.
d) Says the number 7, for 1 second, then says numbers from 6 to 0 one by one for 1 second each.

Answer: c)

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

a) 1
b) 2
c) 7
d) 0

Answer: d)

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

a) 16
b) 5
c) 29
d) 44

Answer: b)

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

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

a) Integer
b) Float
c) String
d) Boolean

Answer: c)

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

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

Answer: b)

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

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

a) Such expressions cannot be computed.
b) A computer can only evaluate expressions involving addition and multiplication.
c) These expressions can be evaluated using built-in operations or libraries.
d) A computer can only evaluate expressions involving addition and subtraction.

Answer: c)

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

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

Answer: a)

Q10. What task does the block below accomplish ?

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

Answer: d)

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

The Joy of Computing using Python NPTEL 2023 Week 1 Assignment Solutions

Q1. What will be the value of my variable at the end of the loop.

a) 50
b) 40
c) 49
d) 0

Answer: b) 40

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

Q2. Which of the following is not a type of block in Scratch?

a) Motion
b) Looks
c) Sound
d) Jump

Answer: d) Jump

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

Q3. What is the main function of the “if” block in Scratch?

a) To repeat a set of instructions
b) To create a loop
c) To control the flow of the program based on a condition
d) To play a sound

Answer: c) To control the flow of the program based on a condition

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

Q4. Which block in Scratch is used to control the movement of a sprite?

a) Motion
b) Looks
c) Sound
d) Control

Answer: a) Motion

Q5. Imagine sprite to be a scooter. How many times scooter will move forward?

a) 7
b) 4
c) 6
d) 5

Answer: d) 5

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

Q6. Which block in Scratch is used to make a sprite say something?

a) Motion
b) Looks
c) Sound
d) Control

Answer: b) Looks

Q7. What is the purpose of the “repeat” block in Scratch?

a) To repeat a set of instructions a specific number of times
b) To repeat a set of instructions forever
c) To repeat a set of instructions based on a condition
d) To play a sound repeatedly

Answer: a) To repeat a set of instructions a specific number of times

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

Q8. Which block in Scratch is used to wait for a certain amount of time before continuing with the program?

a) Motion
b) Looks
c) Sound
d) Control

Answer: d) Control

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

Q9. Which block in Scratch is used to detect when a sprite touches another sprite?

a) Motion
b) Looks
c) Sound
d) Sensing

Answer: d) Sensing

Q10. What is the purpose of the “broadcast” block in Scratch?

a) To send a message to another sprite
b) To play a sound
c) To move a sprite
d) To change the background color

Answer: a) To send a message to another sprite

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

The Joy of Computing using Python NPTEL 2022 Week 1 Assignment Solutions

Q1. Which of the following is/are control commands in Scratch?

a) repeat
b) repeat until
c) forever
d) forever until

Answer: a), b), c)

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

Q2. Which option in scratch is used to wait between the commands:

a) Event
b) Sensing
c) Control
d) Operators

Answer: c) Control

Q3. ___________ command is used to make the sprite walk by certain steps.

a) Hide
b) Delete
c) Move
d) Walk

Answer: c) Move

Q4. The command used to make the sprite disappear from the animation stage is _____________.

a) Show
b) Hide
c) Delete
d) move

Answer: b) Hide

Q5. What is the extension of a scratch file?

a) py
b) Se
c) Sb
d) sc

Answer: c) Sb

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

Q6. Predict the output of the following:

a) 0
b) 100
c) 20
d) None of the above

Answer: d) None of the above

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

Q7. Which of the following is a facility provided by scratch to use sound effects?

a) A sound library is provided
b) Sound can be recorded using a microphone
c) We can use sound file
d) None of the above
e) All of the above are correct (except 4).

Answer: e) All of the above are correct (except 4).

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

Q8. In addition to an option of using the inbuilt sprite library in scratch, what are the other ways to use a sprite?

a) We can paint a custom sprite
b) We can use the camera to take pictures
c) We can upload an image from our computer
d) All of the above

Answer: d) All of the above

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

Q9. __________ scratch constructs are used to keep doing a set of instructions infinitely?

a) ever
b) forever
c) never
d) None of the above

Answer: b) forever

Q10. Which of the following commands would make the sprite move backward?

a) Move 10 steps
b) Move -10 steps
c) Both 1 and 2
d) Neither 1 and 2

Answer: b) Move -10 steps

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

Previous Course – The Joy of Computing using Python NPTEL 2022 Week 1 Assignment Solutions

Q1. What are the functions that can be performed on the variables?

a) Rename
b) Delete
c) Initialize starting value
d) All of the above

Answer: d) All of the above

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

Q2. Which of the following statements is true?

a) One can run an infinite loop.
b) One cannot change the value of a variable.
c) One cannot add sound in scratch.
d) One cannot change the size of the image.

Answer: a) One can run an infinite loop.

Q3. Choose the odd one out.

a) If
b) Repeat
c) hide
d) Wait

Answer: c) hide

Q4. Which command can be used to decrease the size of a sprite?

a) Set size by
b) Change size by
c) Decrease size
d) Size change by

Answer: b) Change size by

Q5. Which command can be used to move an object by some steps?

a) rotate
b) turn
c) move
d) forward

Answer: c) move

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

Q6. What does the cat say after executing the following code?

a) All-natural numbers between 1-20. (Both inclusive)
b) All even numbers between 1-20. (Both inclusive)
c) All odd numbers between 1-20. (Both inclusive)
d) All whole numbers between 0-20. (Both inclusive)

Answer: b) All even numbers between 1-20. (Both inclusive)

Q7. Which of the following command is not related to the motion section?

a) if
b) wait
c) move
d) rotate

Answer: a) if

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

Q8. Which command can be used to make an image reappear?

a) hide
b) reappear
c) show
d) glide

Answer: c) show

The Joy of Computing using Python NPTEL week 1 Assignment Solutions

Q9. Which of the following command is used to take the absolute value of a number?

a) absolute of
b) abs of
c) mod of
d) modulus of

Answer: b) abs of

Q10. State True or False: In scratch one can mention x and y coordinates to move an image.

a) True
b) False

Answer: a) True

<< Prev- The Joy of Computing using Python Week 0 Assignment Solutions

>> Next- The Joy of Computing using Python Week 2 Assignment Solutions


DISCLAIMER: Use these answers only for the reference purpose. Quizermania doesn't claim these answers to be 100% correct. So, make sure you submit your assignments on the basis of your knowledge.

For discussion about any question, join the below comment section. And get the solution of your query. Also, try to share your thoughts about the topics covered in this particular quiz.

Checkout for more NPTEL Courses: Click Here!

Leave a Comment

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