For Week 7 Answers Join this Group👇Note: We are trying to give our best so please share with your friends also.
NPTEL The Joy Of Computing using Python Week 6 Answers 2022 :-
Q1. In the list L= [4,6,7,4,6,2,1], What is the index of element ‘7’?
Q.2. Which of the following is true about recursion?
- Recursion always performs better than non–recursive code.
- Recursive code is easier to debug
- The base case is necessary for recursion.
- Recursive code can be shorter than non-recursive code.
For Week 7 Answers Join this Group👇
Q.3. What will be the output of the following program?
- No output
Q.4. What will be the output of the following program?
- Sum of first 10 natural numbers.
- Sum of first 9 natural numbers
- The program will never end.
- Sum of numbers from 2–10(Both inclusive).
Q.5. What’s the correct code for Binary search?
- Answer: C
Q.6. Which of the following can be used to see the dimension of a NumPy array named ‘arr’?
Q.7. If PYTHON is encoded by TCXLSR then DIAMOND will be encoded as?
For Week 7 Assignment Answers Join this Group👇
Q.8. Select the correct statement1) print(‘9a’.isalnum()) will return True. 2) ‘9a’ contains both alphabetic and numeric parts.
- Option 1 is correct, option 2 is correct. Option 2 is the correct explanation for option 1.
- Option 1 is correct, option 2 is incorrect.
- Option 1 is correct, option 2 is correct. Option 2 is not the correct explanation for 1.
- Option 1 is incorrect, option 2 is incorrect.
Q.9. What will be the output of the following program?
- A dictionary with the count of each character in s.
- A dictionary with the count of each special character in s.
- A dictionary with the count of letters in s.
Q.10. Let L be a list containing different names of movies. Which statement is correct to select a random movie name from that list L?
For Any Update in Answers Join this Group👇
This NPTEL The Joy Of Computing using Python Week 6 Answers is provided by us only for discussion purpose if any answer will be getting wrong don’t blame us. If any doubt or suggestions regarding any question kindly comment. The solution is provided by Chase2learn. This tutorial is only for Discussion and Learning purpose.
About NPTEL The Joy Of Computing using Python Course:A fun filled whirlwind tour of 30 hrs, covering everything you need to know to fall in love with the most sought after skill of the 21st century. The course brings programming to your desk with anecdotes, analogies and illustrious examples. Turning abstractions to insights and engineering to art, the course focuses primarily to inspire the learner’s mind to think logically and arrive at a solution programmatically. As part of the course, you will be learning how to practice and culture the art of programming with Python as a language. At the end of the course, we introduce some of the current advances in computing to motivate the enthusiastic learner to pursue further directions. If you have not registered for exam kindly register Through https://examform.nptel.ac.in/ COURSE LAYOUT The course structure and content covers, over a period of 12 weeks:
- Motivation for Computing
- Welcome to Programming!!
- Variables and Expressions : Design your own calculator
- Loops and Conditionals : Hopscotch once again
- Lists, Tuples and Conditionals : Lets go on a trip
- Abstraction Everywhere : Apps in your phone
- Counting Candies : Crowd to the rescue
- Birthday Paradox : Find your twin
- Google Translate : Speak in any Language
- Currency Converter : Count your foreign trip expenses
- Monte Hall : 3 doors and a twist
- Sorting : Arrange the books
- Searching : Find in seconds
- Substitution Cipher : What’s the secret !!
- Sentiment Analysis : Analyse your Facebook data
- 20 questions game : I can read your mind
- Permutations : Jumbled Words
- Spot the similarities : Dobble game
- Count the words : Hundreds, Thousands or Millions.
- Rock, Paper and Scissor : Cheating not allowed !!
- Lie detector : No lies, only TRUTH
- Calculation of the Area : Don’t measure.
- Six degrees of separation : Meet your favourites
- Image Processing : Fun with images
- Tic tac toe : Let’s play
- Snakes and Ladders : Down the memory lane.
- Recursion : Tower of Hanoi
- Page Rank : How Google Works !!