NPTEL The Joy of Computing using Python Assignment 5 Answers

NPTEL The Joy of Computing using Python Assignment 5 Answers 2022 : In this article, you will find NPTEL The Joy Of Computing Using Python Week 5 Assignment 5 Answer , Use “Ctrl+F” To Find Any Questions Answer. & For Mobile User, You Just Need To Click On Three dots In Your Browser & You Will Get A “Find” Option There. Use These Option to Get Any Random Questions Answer. 

For Week 6 Assignment Answers Join this Group👇

telegram

 

Note: We are trying to give our best please share this answer link with other students also.

NPTEL The Joy of Computing using Python

NPTEL The Joy of Computing using Python Assignment 5 Answers 2022:-

Q1. What is the correct way to initialize a dictionary?

  • D = {a-10, b-20, c-30}
  • D = {‘a’-10, ‘b’-20, ‘c’30}
  • D = {a:10, b:20, c:30}
  • D = {‘a’:10, ‘b’:20, ‘c’:30}

Answers will be updated soon Join this Group for update👇

telegram

Q.2. What is the correct syntax to get all the keys only from a dictionary d?

  • d.key() 
  • d.item()
  • d.value() 
  • d.keys()

Q.3. Which of the following statements are true about dictionaries in python?

  • The keys of a dictionary must be unique values.
  • The keys of a dictionary can or cannot be unique. 
  • The values of a dictionary must be unique values.
  • The values of a dictionary can or cannot be unique.

Q.4. State True or False: In the monte hall problem, swapping the choice does not increase the chance of winning.

  • True
  • False

Q.5. In dictionaries, d.items() will return

  • Pairs of all (key, value) together. 
  • All (keys) and (values) separately.
  • All (values) and (keys) separately. 
  • Pairs of all (value, key) together.

NPTEL All Weeks Assignment Solution: Click Here

Q.6. What will be the output of the following program?

  • a. A dictionary with all letters as keys and 0 as values.
  • A dictionary with some letters as keys and 0 as values. 
  • A dictionary with all letters as keys and some random numbers as values. 
  • A dictionary with some letters as keys and some random numbers as values.

Q.7. Binary search can be applied on

  • Sorted list in ascending order.
  • Unsorted list
  • Both A and B
  • Sorted list in descending order

For Week 6 Assignment Answers Join this Group👇

telegram

 

Q.8. Which error is encountered while accessing a position that is not present in a list

  • KeyError 
  • IndexError 
  • RunTimeError 
  • ValueError

Q.9. Which of the following command is correct to delete a key from a dictionary ‘d’

  • d.pop(‘key’) 
  • d.del(‘key’) 
  • d.remove(‘key’)
  • d.delete(‘key’)

Q.10. Which of the following is/are correct regarding dictionaries?

1) One can make a dictionary inside a dictionary in python.
2) Keys in the dictionary are mutable.

  • 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 2 is not the correct explanation for option 1. 
  • Option 1 is correct, option 2 is correct. Option 2 is not the correct explanation for option 1.
  • None of these

 

For Any Update In Assignment Answers Join this Group👇

telegram

 

This answer 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.

If you have not registered for exam kindly register Through https://examform.nptel.ac.in/2022_04/exam_form/ 

 

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 !!

Leave a Comment