NPTEL THE JOY OF COMPUTING USING PYTHON ASSIGNMENT 2021

NPTEL THE JOY OF COMPUTING USING PYTHON 2021

NPTEL THE JOY OF COMPUTING USING PYTHON 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.

NPTEL THE JOY OF COMPUTING USING PYTHON is a MOOC course offered by IIT Ropar on the NPTEL platform. This course helps the students to achieve 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. The course is developed by Prof. Sudarshan Iyengar is a Ph.D. from the Indian Institute of Science and is currently working as an assistant professor at IIT Ropar and has been teaching this course for the past 4 years.

  1. INTENDED AUDIENCE: Elective course for UG, PG, BE, ME, MS, M.Sc, PhD
  2. Requirements/Prerequisites: Basic programming skills (in Python), algorithm design, basics of probability & statistics
  3. INDUSTRY SUPPORT: Data science companies and many other industries value machine learning skills.

CRITERIA TO GET A CERTIFICATE

Average assignment score = 25% of the average of the best 8 assignments out of the total 12 assignments given in the course.
Exam score = 75% of the proctored certification exam score out of 100

Final score = Average assignment score + Exam score

Students will be eligible for CERTIFICATE ONLY IF AVERAGE ASSIGNMENT SCORE >=10/25 AND EXAM SCORE >= 30/75. If any of the 2 criteria are not met, the student will not get the certificate even if the Final score >= 40/100.

NPTEL THE JOY OF COMPUTING USING PYTHON ASSIGNMENT WEEK 12 ANSWERS:-

Q1. In the point distribution method of page rank algorithm, at each iteration, each node shares its pagerank value by

Answer:- b

The Joy Of Computing Using Python Assignment 1 Answers 2022

Q2. In the random walk method, what is the next step when a sink node is encountered in the underlying graph?

Answer:- a

Q3. According to the Google Page rank algorithm, the rank of a page depends on: A. Number of pages it is referring to.

Answer:- b

Q4. Comment on the purpose of the following command.

Answer:- b

Q5. Which of the following is not true about Collatz Conjecture?

Answer:- b

Q6. The sequence based on 3n+1 problem will always reach

Answer:- a

Q7. What is the sequence obtained according to the 3m+1 algorithm for m=9?

Answer:- a

Q8. Consider the following statements:

Answer:- c

The Joy Of Computing Using Python Assignment 1 Answers 2022

Q9. In the web graph, nodes are the web pages. What are the edges?

Answer:- b

Q10. How many iterations does the number, 75 take to converge in Collatz Conjecture?

Answer:- a

NPTEL THE JOY OF COMPUTING USING PYTHON ASSIGNMENT WEEK 11 ANSWERS:-

Q1. The Python library used for browser automation is

Answer:- c

Q2. Which method is used to obtain the element with a matching link text value?

Answer:- a

Q3. What does the method find_element_by_class_name do ?

Answer:- b

FOR WEEK 10 PROGRAMMING ASSIGNMENT VISIT :- NPTEL THE JOY OF COMPUTING PROGRAMMING ASSIGNMENT 2021

Q4. Which Python module allows us to work with date and time ?

Answer:- d

Q5. Which method enables us to see the current date and time ?

Answer:- c

Q6. Which Python library allows us to perform time zone calculations ?

Answer:- c

Q7. What would be the output of : print(calendar.weekday(2021,10,9))

Answer:- b

Q8. Which of the following conditional statements correctly return True for any leap year and False for any non-leap year ?

Answer:- b

Q9. Which of the following statements can be used to print the calendar of October 2021?

Answer:- a

Q10. What would be the output of the statement : print(datetime.datetime(2021, 9, 16)) ?

Answer:- d

NPTEL THE JOY OF COMPUTING USING PYTHON ASSIGNMENT WEEK 10 ANSWERS:-

Q1. Classify the following types of compressed image files as lossy or lossless compression type.

Answer:- a

Q2. Compression can be used to reduce or change file size and which of these following attributes?

Answer:- d

If you want help in 10 october online programming tests and extra material, for final exam preparation, take our membership for a better score in exam read more here:- Final Exam Membership

Q3. NumPy is a python library written partially in python and most parts that require fast computation are written in C or C++. State whether the following statement is true or false.

Answer:- a

Q4. What is the output of the following program ?

Answer:- a

FOR WEEK 10 PROGRAMMING ASSIGNMENT VISIT :- NPTEL THE JOY OF COMPUTING PROGRAMMING ASSIGNMENT 2021

Q5. What is the output of the following program?

Answer:- a

Q6. What is the output of the following program?

Answer:- a

Q7. What will the following function in the program do?

Answer:- b

Q8. Which of these methods can be used to transpose a matrix X?

Answer:- b

Q9. What will the following program print?

Answer:- b

Q10. What is the output of the following program?

Answer:- d

NPTEL THE JOY OF COMPUTING USING PYTHON ASSIGNMENT WEEK 9 ANSWERS:-

Q1. Which of these features of the texts are not analyzed by the NLP for attributing authorship?

Answer:- a

Q2. NetworkX can be used to solve large-scale problems that require faster approaches. State whether the above statement is true or false.

Answer:- b

If you want help with online programming tests and extra material, for final exam preparation, take our membership for a better score in exam read more here:- Final Exam Membership

Q3. What is the output of the following program?

Answer:- a

Q4. Consider the following statements.

(1) subgraph(G, nbunch) – induce subgraph of G on nodes in nbunch
(2) union(G1,G2) – graph union
(3) disjoint_union(G1,G2) – graph union assuming all nodes are same
(4) cartesian_product(G1,G2) – return Cartesian product graph

Answer:- d

Q5. Which of these following statements are true?

Answer:- d

Q6. What does nltk stand for?

Answer:- a

Q7. The Barabasi-Albert model is a model that generates _________ networks.

Answer:- a

Q8. The complete graph with n graph vertices has how many undirected edges?

Answer:- a

Q9. What will the following statement print?

print(im.getpixel(coordinate))

Answer:- b

FOR WEEK 9 PROGRAMMING ASSIGNMENT VISIT :- NPTEL THE JOY OF COMPUTING PROGRAMMING ASSIGNMENT 2021

Q10. What is the output of the following program?

Answer:- d

NPTEL THE JOY OF COMPUTING USING PYTHON ASSIGNMENT WEEK 8 ANSWERS:-

Q1. Tuples are similar to lists in terms of indexing, nested objects and repetition but it is immutable unlike lists. State whether the above statement is true or false.

Answer:- a

Q2. Which of these following operations are not valid with respect to tuples?
( Consider tuple names to be T1 and T2 with 5 elements in each of it)

Answer:- d

FOR WEEK 8 PROGRAMMING ASSIGNMENT VISIT :- NPTEL THE JOY OF COMPUTING PROGRAMMING ASSIGNMENT 2021

Q3. What is the output of the following program?

Answer:- a

Q4. What will be the output of the following program?

Answer:- d

Q5. Which of these statements are false with respect to clahe?

Answer:- d

If you want help with online programming tests and extra material, for final exam preparation, take our membership for a better score in exam read more here:- Final Exam Membership

Q6. What is the output of the following program?

Answer:- b

Q7. What should be filled in the blank in the given program to obtain the below desired output?

Answer:- c

Q8. VADER uses a combination of A sentiment lexicon is a list of lexical features which are generally labeled according to their semantic orientation as either positive or negative. State whether the following statement is true or false.

Answer:- a

Q9. What will the output of the following program be?

Answer:- c

Q10. If the compound score of a statement is 1.5. What can we infer from the compound statement?

Answer:- d

NPTEL THE JOY OF COMPUTING USING PYTHON ASSIGNMENT WEEK 7 ANSWERS:-

Q1. What will the following program do?

Answer:- c

Q2. Which of the following statements is wrong regarding csv?

Answer:- d

Q3. If a player has a score of 87 and rolls the dice in the snake and ladder game. If he gets a 5, what will be the player’s position next considering the dictionary associated with the game?

Answer:- d

Q4. What will be the output of the following program?

Answer:- a

FOR WEEK 7 PROGRAMMING ASSIGNMENT VISIT :- NPTEL THE JOY OF COMPUTING PROGRAMMING ASSIGNMENT 2021

Q5. The default drawing state of the turtle is pendown. State whether the above statement is true or fault.

Answer:- a

Q6. What is the output of the following program?

Answer:- a

Q7. While using the turtle speed method, the speed value 1 is faster than speed value 0. State whether the above statement is true or false.

Answer:- b

Q8. Which of these methods is used to make the turtle rotate 45 degrees in the anticlockwise direction.

Answer:- d

Q9. Which of these packages allow us to plot data on google maps?

Answer:- a

Q10. Which of these following methods will change the color of the lines that will be drawn by the turtle?

Answer:- a

NPTEL THE JOY OF COMPUTING USING PYTHON ASSIGNMENT WEEK 6 ANSWERS:-

Q1. If PYTHON is SVWERK, what is COMPUTING?

Answer:- a

Q2. What operation will the following program do?

Answer:- a

Q3. What is the output of the following program?

Answer:- b

Q4. What will be the output of the following program?

Answer:- b

Q5. The array object in NumPy is called ndarray and NumPy is faster than Lists. State whether the above statement is true or false.

Answer:- a

FOR WEEK 6 PROGRAMMING ASSIGNMENT VISIT :- NPTEL THE JOY OF COMPUTING PROGRAMMING ASSIGNMENT 2021

Q6. What is the output of the following program? ( Assuming that k and n are any 2 positive numbers)

Answer:- c

Q7. The output of the following program is as follows

Answer:- c

Q8. Which of the following programs will calculate the factorial of a given number?

Answer:- c

Q9. In tic tac toe game, if player 1 starts the game by marking ‘X’ in the center of the matrix, then he has more chances of winning. State whether the above given statement is true or false.

Answer:- a

Q10. Recursive programs are faster than the iterative programs. State whether the following statement is true or false.

Answer:- b

NPTEL THE JOY OF COMPUTING USING PYTHON ASSIGNMENT WEEK 5 ANSWERS:-

Q1. What will the output of the following program be?

Answer:- b

Q2. What will the output of the following program be?

Answer:- a

FOR WEEK 5 PROGRAMMING ASSIGNMENT VISIT :- NPTEL THE JOY OF COMPUTING PROGRAMMING ASSIGNMENT 2021

Q3. A file with the .wav or .wave file extension is a Waveform Audio File Format. True or False?

Answer:- b

Q4. In the Monty Hall problem, under the standard assumptions, contestants who switch have a _ chance of winning the car, while contestants
who stick to their initial choice have only ___chance.

Answer:- b

Q5. In the game ‘Rock, Paper and Scissor’ , if player1 enters 123478 and player2 enters 347653 with the secrets bits as 3 and 5 respectively, then who wins the game? (Assume that player1_list=[“rock”, “paper”, “scissor”] and player2_list=[“paper” ,”scissor”, “rock”])

Answer:- c

Q6. Which is the fastest sorting algorithm?

Answer:- c

Q7. Which of these following statements are true with respect to the program below?

Answer:- b

Q8. What is the average time complexity of binary search if the numbers are arranged in descending order and the search is unsuccessful?

Answer:- b

Q9. What Is the output of the following program?

Answer:- b

Q10. Will the following program give an error?

Answer:- b

NPTEL THE JOY OF COMPUTING USING PYTHON ASSIGNMENT WEEK 4 ANSWERS:-

Q1. What is the magic constant or magic sum of a magic square of size 11?

Answer:- a

Q2. In magic square, the first number will be stored at position (n/2, n-1). Let this position be (i, j). The second number will be stored at position
(i+1, j-1). State whether the following statement is true or false.

Answer:- b

Q3. The below given matrix is a magic square. State whether the following statement is true or false

Answer:- b

Q4. What will the output of the following program be?

Answer:- a

Q5. Consider today’s date to be 06-06-2021 and the day after tomorrow is tuesday.. What will be the output of the following program?

Answer:- a

Q6. What will the following program do?

Answer:- a

Q7. Which program will choose an element from the below list and display it in jumbled order?

Answer:- a

Q8. There are a total of 100 cards of 25 different colors. How many minimum numbers of draws are required to guarantee that at least two drawn cards have the same color?

Answer:- b

Q9. What does the following code snippet in python compute?

Answer:- b

Q10. Dobble game has a deck of 55 cards, each printed with eight different symbols. Any two cards always share one matching symbol only. State whether the above statement is true or false

Answer:- a

NPTEL THE JOY OF COMPUTING USING PYTHON ASSIGNMENT WEEK 3 ANSWERS:-

Q1. List items are ordered, changeable, and do not allow duplicate values. State true or false

Answer:- b

Q2. What will the output of the following program be?

Answer:- c

quizxp telegram

Q3. What will the output of the following program be?

Answer:- b

Q4. Which command will insert the new element to the list at the end? Consider the name of the list to be Shopping and the new element to be inserted is “oil” .

Answer:- a

Q5. Which method is to find out how many times a particular list element occurs?

Answer:- a

Q6. Which of these methods is used to find the mean of the below defined list? a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

Answer:- a

quizxp telegram

Q7. Which of these following statements is true regarding trimmed mean?

Answer:- c

Q8. What is the output of the following program?

Answer:- a

FOR WEEK 3 PROGRAMMING ASSIGNMENT VISIT :- NPTEL THE JOY OF COMPUTING PROGRAMMING ASSIGNMENT 2021

Q9. Which of these methods is used to jumble a given word and give an output separated by a “ , “ symbol? (Consider the string to be stored in variable a)

Answer:-a

Q10. Which method can be used to remove an element at a particular index from the list?

Answer:- a

NPTEL THE JOY OF COMPUTING USING PYTHON ASSIGNMENT WEEK 2 ANSWERS:-

Q1. What will be the output for the following program if the user gives an input value of 3 to it?

Answer:- B – 33333

Q2. Which of these statements in python will throw anerror when executed?

Answer:- D – print( “ “Hello” ” )

Q3. What will be the output of the following code when executed?

Answer:- C – It will print multiples of 3 till 27

Q4. What will the output of the following code be when executed?

Answer:- A

Q5. What value will c store in it after the execution of the below code?

Answer:- D – It will throw an error

Q6. Python was named after the television show Monty Python’s Flying Circus .

Answer:- B

Q7. What will the output of the following program be?

Answer:- A

Q8. What will the output of the following program be?

Answer:- Code of this que is not uploaded once nptel upload the answer will notify on telegram, click on below image for link.

quizxp telegram

Q9. The python files will be saved with a .python extension

Answer:- A

Q10. What is the output for the following program?

Answer:- B

FOR WEEK 2 PROGRAMMING ASSIGNMENT VISIT :- NPTEL THE JOY OF COMPUTING PROGRAMMING ASSIGNMENT 2021

NPTEL THE JOY OF COMPUTING USING PYTHON ASSIGNMENT WEEK 1 ANSWERS:-

Q1. What is the value of var after double clicking on the below block of code in scratch?

Answer:- B – 5

The Joy Of Computing Using Python Assignment 1 Answers 2022

Q2. Choose the odd one out. wait, repeat, forever, move

Answer:- D – move

Q3. How far will the sprite be from the initial position after executing this block of code?

Answer:- A – 141.42 steps

Q4. What is the name of the command used to reshow the hidden sprite?

Answer:- B – show

quizxp telegram

Q5. The command used to make the sprite rotate by a certain degree is ?

Answer:- A – turn

Q6. The command used to delay the sprite by a few seconds is ________

Answer:- A – wait

Q7. What will the sprite recite when the below block of code is executed?

Answer:- D – All odd numbers from 1 to 200

Q8. Which of the following does not belong to the motion command ?

Answer:- D – None of the above

Q9. What is the command to increase the size of the sprite?

Answer:- B – change size by

Q10. When will the sprite stop moving when this block of code is executed ?

Answer:- A – Never

Also check :- INTERNSHIP OPPORTUNITIES