Hello Everyone, In this article let's discuss NPTEL Joy Of Computing Using Python Week 3 Assignment 2025. There is no charge to view the answers. For any changes in answers or about upcoming week solutions, join the telegram for fast answers.
Also Read: NPTEL JOY OF COMPUTING USING PYTHON WEEK 2 ANSWERS
Join Telegram 👉 CLICK HERE
NPTEL Joy Of Computing Using Python Week 3 Assignment 2025
In this week 3, the following topics are discussed in the videos:
- Operations
- Slicing
- Loops and Conditionals - Fizz buzz
- Theory of Evolution
- Crowd Computing
- Permutations - Jumbled Words
Last Date: 12-02-2025
Q1. Which of the following is/are false statement(s)?
A. Lists are fixed in size, they cannot store more than 1024 values
B. One can access element in list by using non-numeric indices
C. Iterating over lists is possible in Python
D. We need to specify required size of list while creating a new list variable
Answer: [ A ] [ B ] [ D ]
- In Python, Lists are Dynamic in size, so they are not fixed in size.
- In Python, the lists are indexed using integers, and Strings are indexed using non-numeric.
- Option 4, Python Lists doesn't require fixed size.
Q2. In the below code -
n= __a=[]for i in range(n):l1=[]p=0for j in range(i):l1.append(j)for k in l1:p+=1a.append(p)k=0for l in a:k+=lprint(k) {codeBox}
For What value of n does the program print 10 ?
Answer: n is 5
Q3. From the previous question, for what values of n is the number 25 appended to list a.
A. 25
B. 24
C. 35
D. 32
Answer: [ C ] [ D] 35, 32
Option A, When n is 25, the number is appended until 24.
Option B, When n is 24, the number is appended until 23.
Option C, When n is 35, the number is appended until 34. ( Including 25)
Option D, When n is 32, the number is appended until 31. (Which Includes 25)
Q4. What does the following code perform ?
def mystery(container):result=[]for i in range(len(container)):if i%2 !=0:result.append(container[i]*4)else:result.append(container[i]*(-1))return result {codeBox}
A. It converts any input list into a new list which is filled with some numbers which are always in increasing order.
B. It converts any input list into a new list such that at even indices, the value is a multiple of an even number and at odd indices, the value is either even or negative number
C. It converts any input list into a new list such that at odd indices, the value is always even number and at even indices, the value is negative
D. It converts any input list into a new list, which follows no pattern.
Answer: [ C ] It converts any input list into a new list such that at odd indices, the value is always even number and at even indices, the value is negative
Q5. From the previous question, if the option -
It converts any input list into a new list such that at even indices, the value is a multiple of an even number and at odd indices, the value is either even or negative number.
is incorrect, Can you make changes to code such that it this option is always true for
any input ?
A. No, it is not possible to make such changes
B. No, the option is already correct
C. Yes, we can make changes
Answer: [ C ] Yes, we can make changes
Q6. If file.txt exists, Does the code successfully run?
with open ("file.txt", "r") as f:data = f.read()print (data) {codeBox}
A. Yes
B. No
Answer: [ A ] Yes
Q7. Which of the following are examples of Social Computing ?
A. ChatGPT
B. Wikipedia
C. Quora
D. Twitch
Answer: [ B ], [ C ], [ D ]
Q8. What does the following code print for n = 256?
n = 256k=0a=[]b=0while(n!=0):k=k+(n%10)a.append(n%10)n=n//10a.sort()for i in a:b=b+iif(b!=k):print("PYTHON IS FUN")else:print("PYTHON IS BORING") {codeBox}
A. PYTHON IS BORING
B. PYTHON IS FUN
Answer: [ A ] PYTHON IS BORING
Q9. From the previous question, is a.sort() responsible for printing of either of the two possible sentences?
A. Yes, and the code may print ”PYTHON IS FUN”
B. No, it is purely dependent on variable n
C. No, it is not dependent on a.sort(), and the code will never print ”PYTHON IS FUN”
Answer: [ C ] No, it is not dependent on a.sort(), and the code will never print ”PYTHON IS FUN”
Q10. What does the code in question 8, calculate ?
Can you say what the values of k and b are if n = 245326785456 x 10^3359
If values of k and b are different, enter 0, else enter value of k.
Answer: k is 57
Conclusion
All these answers are 100% sure. I ensure you check the answers from your side too. If any changes in answers, visit the telegram for faster updates or Visit the website on or before the last date.
Join Telegram 👉 CLICK HERE