The Joy of Computing using Python - - Unit 4 - Week 1
The Joy of Computing using Python - - Unit 4 - Week 1
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
Click to register for
Certification exam
Week 1 : Assignment 1
(https://examform.nptel.ac.in/2025_01/exam_form/dashboard)
If already registered, The due date for submitting this assignment has passed.
Programming for
Everybody (unit?
unit=17&lesson=20)
How to go about
programming? (unit?
unit=17&lesson=24)
Why to learn
programming? (unit?
unit=17&lesson=25)
What is programming?
(unit?unit=17&lesson=26)
Introduction to Loops
(unit?unit=17&lesson=29)
https://onlinecourses.nptel.ac.in/noc25_cs69/unit?unit=17&assessment=501 1/5
04/04/2025, 09:31 The Joy of Computing using Python - - Unit 4 - Week 1
Scratch : Animation 1
(unit?unit=17&lesson=32)
Scratch : Animation 2
(unit?unit=17&lesson=33)
Scratch : Animation 3
(unit?unit=17&lesson=34)
Quiz: Week 1 :
Assignment 1
(assessment?
name=501) 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.
Week 2 ()
Says the number 7, for 1 second, then says numbers from 6 to 1 one by one for 1 second each.
Week 3 () Says the number 7, for 1 second, then says numbers from 6 to 0 one by one for 1 second each.
4) From the previous question, what is the value of myNum variable after the loop ends ? 1 point
Week 6 ()
1
Week 7 () 2
7
Week 8 ()
0
Week 9 () Yes, the answer is correct.
Score: 1
Week 10 () Accepted Answers:
0
Week 11 ()
5) Let answer for previous question be stored in variable x, what does the cat say after the execution of the loop ? 1 point
Text Transcripts ()
Download Videos ()
Books ()
Problem Solving
Session - Jan 2025 ()
16
5
29
44
No, the answer is incorrect.
Score: 0
Accepted Answers:
5
6) Which of the following data types is primarily used for storing a sequence of characters in most programming languages? 1 point
https://onlinecourses.nptel.ac.in/noc25_cs69/unit?unit=17&assessment=501 2/5
04/04/2025, 09:31 The Joy of Computing using Python - - Unit 4 - Week 1
Integer
Float
String
Boolean
7) Which of the following statements best describes why loops are commonly used ? 1 point
8) Suppose you have an arithmetic expression involving addition, subtraction, multiplication, and exponentiation. Which statement 1 point
is true about instructing a computer to evaluate it?
9) In which of the following code blocks calculation of the squared distance between two points (15, 25) and (20, 19) is 1 point
accomplished.
https://onlinecourses.nptel.ac.in/noc25_cs69/unit?unit=17&assessment=501 3/5
04/04/2025, 09:31 The Joy of Computing using Python - - Unit 4 - Week 1
https://onlinecourses.nptel.ac.in/noc25_cs69/unit?unit=17&assessment=501 4/5
04/04/2025, 09:31 The Joy of Computing using Python - - Unit 4 - Week 1
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.
https://onlinecourses.nptel.ac.in/noc25_cs69/unit?unit=17&assessment=501 5/5