NPTEL The Joy Of Computing Using Python Week 1 Assignment Answer 2024
NPTEL The Joy Of Computing Using Python Week 1 Assignment Answer 2024
1. 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?
- Yes
- No
Answer :- b
2. Which block moves the cat as described in the previous question ?
Answer :- For Answer Click Here
3. What does the cat say here ?
- Says the number 4, for 1 second, 10 times and changes the value of number variable by multiplying previous value with 4.
- Says the number 4, for 1 second, 10 times and changes the value of number variable by adding previous value with 4.
- Says the number 4, and its multiples each for 1 second, till 40 and changes the value of number variable by multiplying previous value with 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.
Answer :-
4. From the previous question, what is the value of number variable after the loop ends ?
- 0
- 44
- 36
- 4
Answer :- For Answer Click Here
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 is use case of variables in programming.
- They are used to make the computer store program data into SSD.
- They help in storing and retrieval of information/data while a task on the machine is running.
- They simplify a task which involves processing repetitive procedures.They simplify a task which involves processing repetitive procedures.
- They help in running multiple tasks parallel to each other.
Answer :- For Answer Click Here
7. What is the concept that helps in instructing the computer to execute repetitive tasks ?
- Functions
- Variables
- Conditionals
- Loops
Answer :-
8. Can polynomial expressions be instructed to computer in logically finite steps ?
- Yes
- No
Answer :- For Answer Click Here
9. In which of the following code blocks calculation of the squared distance between two points (10, 20) and (35, 49) is accomplished.
Answer :-
10. What task does the block below accomplish ?
- Moves the ball in a parabolic path and stops 21 away steps from center(0, 0) in x direction.
- Moves the ball in a circular path and 21 times.
- Moves the ball in a triangular path and end at the center (0, 0).
- Moves the ball in a parabolic path and stops 20 away steps from center(0, 0) in x direction.
Answer :- For Answer Click Here