# The Joy of Computing using Python Assignment 1 Answers July 2022

In this post, We have provided answers of The Joy of Computing using Python Assignment 1. We provided answers here only for reference. Plz, do your assignment at your own knowledge.

## NPTEL The Joy of Computing using Python Assignment 1 Answers NPTEL July 2022

1. 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`

2. 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`

3. Choose the odd one out.

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

`Answer:- c`

4. 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`

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

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

`Answer:- For Answer Click Here`

6. 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`

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

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

`Answer:- a`

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

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

`Answer:- c`

9. 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`

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

a. True
b. False

`Answer:- a`

## About The Joy of Computing using Python

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. The course brings programming to your desk with anecdotes, analogies and illustrious examples. Turning abstractions to insights and engineering to art, the course focuses primarily to inspire the learner’s mind to think logically and arrive at a solution programmatically. As part of the course, you will be learning how to practice and culture the art of programming with Python as a language. At the end of the course, we introduce some of the current advances in computing to motivate the enthusiastic learner to pursue further directions.

### COURSE LAYOUT

• Motivation for Computing
• Welcome to Programming!!
• Variables and Expressions : Design your own calculator
• Loops and Conditionals : Hopscotch once again
• Lists, Tuples and Conditionals : Lets go on a trip
• Abstraction Everywhere : Apps in your phone
• Counting Candies : Crowd to the rescue
• Google Translate : Speak in any Language
• Currency Converter : Count your foreign trip expenses
• Monte Hall : 3 doors and a twist
• Sorting : Arrange the books
• Searching : Find in seconds
• Substitution Cipher : What’s the secret !!
• Permutations : Jumbled Words
• Spot the similarities : Dobble game
• Count the words : Hundreds, Thousands or Millions.
• Rock, Paper and Scissor : Cheating not allowed !!
• Lie detector : No lies, only TRUTH
• Calculation of the Area : Don’t measure.
• Six degrees of separation : Meet your favourites
• Image Processing : Fun with images
• Tic tac toe : Let’s play
• Snakes and Ladders : Down the memory lane.
• Recursion : Tower of Hanoi
• Page Rank : How Google Works !!

CRITERIA TO GET A CERTIFICATE

This course will have an unproctored programming exam also apart from the Proctored exam whose, please check announcement section for date and time . The programming exam will have a weightage of 25% towards the Final score.

Final score = Assignment score + Unproctored programming exam score + Proctored Exam score

• Assignment score = 25% of average of best 8 assignments out of the total 12 assignments given in the course.
• ( All assignments in a particular week will be counted towards final scoring – quizzes and programming assignments).
• Unproctored programming exam score = 25% of the average scores obtained as part of Unproctored programming exam – out of 100
• Proctored Exam score =50% of the proctored certification exam score out of 100

YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF ASSIGNMENT SCORE >=10/25 AND UNPROCTORED PROGRAMMING EXAM SCORE >=10/25 AND PROCTORED EXAM SCORE >= 20/50.

## [Jan – June] NPTEL The Joy of Computing using Python Assignment 1 Answers NPTEL 2022

Q1. Which of the following set of instructions will make the sprite(the cat) move in a triangle?
( Final and initial position, as well as the angle of the cat, should be the same)

(A)

(B)

(C)

(D)

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

(A) 50
(B) 40
(C) 49
(D) 0

Q3. What will be the value of my variable?

(A) 20
(B) 10
(C) 22
(D) 25

Q4. What the sprite(the cat) will say?

(A) 0, 1, 2, 3, 4, 5
(B) 1, 2, 3, 4, 5
(C) 1, 2, 3, 4, 5, 6
(D) None of the above

Answer:- (A) 0, 1, 2, 3, 4, 5

Q5. What should be a set of instructions to make our sprite(cat) say a table of 5?

(A)

(B)

(C)

(D)

Q6. Imagine a cricket ball as our sprite, the ball will move in

(A) a straight line.
(B) Circular motion.
(C) Curve path.
(D) Up and Down.

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

(A)7
(B) 4
(C) 6
(D) 5

Q8. Imagine a cricket player hitting a sixer on a delivery. Which code block represents the upward moment and downward movement of the ball.

(A) Left Block represents downward movement and the right block represents upward movement.
(B) Left Block represents upward movement and the right block represents downward movement.
(C) Both blocks represent upward movement.
(D) Both blocks represent downward movement.

Answer:- (B) Left Block represents upward movement and the right block represents downward movement.

Q9. Which of the following statements is true about the following block of code?

(A) This code block is adding 7 random numbers between 1 – 10 to x
(B) This code block is adding 10 random numbers between 1 – 10 to x.
(C) This code block is adding 7 random numbers between 1 – 10 to t.
(D) This code block is adding 10 random numbers between 1 – 10 to t.

Answer:- (A) This code block is adding 7 random numbers between 1 – 10 to x

Q10. Which of the following is true about scratch?

(A) We can not add sound to our animations.
(B) We can not make a picture disappear.
(C) We can run a forever loop.
(D) We can not make new variables.

NPTEL The Joy of Computing using Python Assignment 1 Answers:- All the Answers provided below to help the students as a reference, You must submit your assignment at your own knowledge.

Disclaimer:- We do not claim 100% surety of solutions, these solutions are based on our sole expertise, and by using posting these answers we are simply looking to help students as a reference, so we urge do your assignment on your own.