The Joy of Computing using Python - - Unit 5 - Week 2
The Joy of Computing using Python - - Unit 5 - Week 2
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
sanatseth24@gmail.com
Click to register for
Certification exam
Week 2 : Assignment 2
(https://examform.nptel.ac.in/2025_01/exam_form/dashboard)
If already registered, The due date for submitting this assignment has passed.
Installation of Anaconda
(unit?unit=37&lesson=39)
Introduction to Spyder
IDE (unit?
unit=37&lesson=40)
Printing statements in
Python (unit?
No, the answer is incorrect.
Score: 0
unit=37&lesson=41)
Accepted Answers:
Understanding Variables
in Python (unit?
unit=37&lesson=42)
Executing a sequence of
instructions in the
Console (unit?
unit=37&lesson=43)
3) What aren’t the correct ways to inform python that input is a decimal point number ? 1 point
Writing your First
Program (unit? in(input())
unit=37&lesson=44) float(input())
Taking inputs from the int(input())
user (unit? a = input()
unit=37&lesson=45)
a = int(a)
Discount Calculation Yes, the answer is correct.
(unit?unit=37&lesson=46) Score: 1
Accepted Answers:
Motivation to if condition
in(input())
(unit?unit=37&lesson=47)
int(input())
A reminder on how to a = input()
deal with numbers (unit? a = int(a)
unit=37&lesson=48)
Understanding if
condition's working (unit?
unit=37&lesson=49)
https://onlinecourses.nptel.ac.in/noc25_cs69/unit?unit=37&assessment=503 1/3
04/04/2025, 09:32 The Joy of Computing using Python - - Unit 5 - Week 2
Introductions to loops
(unit?unit=37&lesson=51)
Week 5 () 7) What happens when the condition inside the if and while evaluate to false ? 1 point
Week 6 () Python interpreter ignores the if/while blocks, and halts the program.
Python interpreter ignores the if/while blocks, and proceeds the program from the lines after the if/while block.
Week 7 () Python interpreter executes the if/while blocks, and rest of the program.
Python interpreter executes the if/while, and the programs runs in an infinite loop.
Week 8 ()
No, the answer is incorrect.
Score: 0
Week 9 ()
Accepted Answers:
Python interpreter ignores the if/while blocks, and proceeds the program from the lines after the if/while block.
Week 10 ()
8) The following program might/might not have an infinite loop. Does the program have infinite loop ? 0 points
Week 11 ()
Text Transcripts ()
Download Videos ()
Books ()
Problem Solving
Session - Jan 2025 ()
https://onlinecourses.nptel.ac.in/noc25_cs69/unit?unit=37&assessment=503 2/3
04/04/2025, 09:32 The Joy of Computing using Python - - Unit 5 - Week 2
9) For which of the following values of name and age variables does the following code print ”You are lucky”? 1 point
aryan, 20
arjun, 19
aakash, 16
anand, 18
10) For which of the options among the previous question, the program doesn’t print anything. 1 point
aryan, 20
aakash, 16
arjun, 19
anand, 18
https://onlinecourses.nptel.ac.in/noc25_cs69/unit?unit=37&assessment=503 3/3