The Joy of Computing Using Python Week 6 assignment answers ?  Also, we will discuss about the Programming assignment answers of week s. In this article we will discuss about the answers of week 6 of joy of computing. The answers shared here will be on our own knowledge. I am answering these questions with Confident. Please use this answers as reference only. Â
Also Read: The Joy of Computing Using Python Week 5 AssignmentÂ
About NptelÂ
NPTEL (National Program on Technology Enhanced Learning) is an initiative by the Indian government to provide high-quality education in engineering, science, and humanities to students all over the country. It is a joint venture of the Indian Institutes of Technology (IITs) and the Indian Institute of Science (IISc) to create and distribute educational material in the form of online courses and videos. The courses offered by NPTEL are free of cost and accessible to anyone with an internet connection. NPTEL has played a significant role in improving the quality of technical education in India and has helped millions of students acquire new skills and knowledge.
The Joy of Computing Using Python Week 6 AssignmentÂ
Q1. Which of the following is true about recursion?
a. Recursion always performs better than non-recursive code.
b. Recursive Code can be Reused.Â
c. The base case is necessary for recursion.Â
d. Recursive code can be shorter than non-recursive code.Â
Answer: [ b , c , d ]
Q2. If PYTHON is encoded by TCXLSR then DIAMOND will be encoded as?
a. EJBNPOE
b. FKCORPF
c. HMERTSH
D. HMEQSRH
Answer: [ d ]Â Â HMEQSRH
Q3. Let L be a list containing different names of movies. Which statement is correct to select aÂ
    random movie name from that list L?Â
a. random.choices(L)
b. random.select(L)
c. random.movie(L)
d. random.random(L)
Answer: [ a ]Â random.choices(L)
Q4. In the list L = [4,6,7,4,6,2,1], What is the index of element ‘7’?
a. 0Â
b. 1
c. 2
d. 3
Answer: [ c ] 2
Q5. What will be the output of the following code?Â
a. Shift every letter in a given word by value.
b. Shift every letter in a given word by 1.
c. Shift every letter in a given word by 26.
d. Returns the same word
Answer: [ a ]Â Shift every letter in a given word by value.
Q6. Library used to import images?
a. PILÂ
b. Imageview
c. IMG
d. Image
Answer: [ a ]Â Â PILÂ
Q7. Values of CSV are Separated by ?Â
a. Commas
b. Colons
c. Semi- colons
d. SlashÂ
Answer: [ a ]Â Â Commas
Q8. What will be the output of the following program ?Â
def recursive(num):Â
  if ( num == 1):Â
     print( ' * ' )
     returnÂ
  if ( num % 2 == 0 ):Â
     print( ' * ' *num )
     recursive ( num - 1 )Â
     returnÂ
   else:Â
     recursive ( num-1 )Â
     return
recursive (10 )Â
a.Â
**********
*********
********
*******
******
*****
****
***
**
*Â Â
b.Â
*********
*******
*****
***
*