The Joy of Computing using python -Week 1
Week 1 Assignment
Solution
- The cat wants to move 100 steps away slowly, and by the time it finishes moving 100 steps, it needs to slowly rotate as well towards the opposite direction. Can both these tasks be accomplished by using single loop in scratch?
Answer : YES - Which block moves the cat as described in the previous question ?
- What does the cat say here ?
Answer : [Option 4] Says the number 4, and its multiples each for 1 second, till 40 and changes the value of number variable by adding previous value with 4. - From the previous question, what is the value of number variable after the loop ends ?
Answer : [Option 2] 44 - Let answer for previous question be stored in variable x, what does the cat say after the execution of the loop ?
Answer : [Option 3] 29 - Which of the following is use case of variables in programming.
Answer : [Option 2] They help in storing and retrieval of information/data while a task on the machine is running - What is the concept that helps in instructing the computer to execute repetitive tasks ?
Answer : [Option 4] Loops - Can polynomial expressions be instructed to computer in logically finite steps ?
Answer : Yes - In which of the following code blocks calculation of the squared distance between two points (10, 20) and (35, 49) is accomplished.
- What task does the block below accomplish ?
Answer : [Option 4] Moves the ball in a parabolic path and stops 20 away steps from centre(0, 0) in x direction.
Discussion makes the solution more accurate ( social computing ) discuss the solution in comments.
Do share this with your friends !! Comment the queries, I will reach out to you.
Week 2 assignment solution coming soon ☺......
Question no 3 and 10. answer 3-option2 and 10-option 1 right
ReplyDelete10-repeat 21 times. starts from 0.
3- where it multiplies for 1 sec
hi
Deletefull sapot😎
Deleteyes you are correct
ReplyDeleteand also in question no 2 answer is option1, in question no5 answer is 5(option 2)
full sapot😎
DeletePlease restrain from using harsh words.
DeleteMake him understand with logic
In Q 10- as far as question is asking, x in option is referring to coordinate which will be 20 at end of loop.
ReplyDeleteeverythings's right no need to panic and do as per given
ReplyDeletefull sapot😎
ReplyDeleteAll answers are correct as per the discussion with various students and then posted.
ReplyDelete