# NPTEL The Joy Of Computing Using Python Assignment 12 Answers

NPTEL The Joy of Computing using Python Assignment 12 Answers 2022:- All the Answers are provided here to help the students as a reference, You must submit your assignment at your own knowledge.

## What is The Joy Of Computing Using Python?

The Joy Of Computing Using Python is 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. This course includes examples of analytics in a wide variety of industries, and we hope that students will learn how you can use analytics in their careers and life. One of the most important aspects of this course is that you, the student, are getting hands-on experience creating analytics models; we, the course team, urge you to participate in the discussion forums and to use all the tools available to you while you are in the course!

## CRITERIA TO GET A CERTIFICATE

Average assignment score = 25% of the average of 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

YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF THE AVERAGE ASSIGNMENT SCORE >=10/25 AND EXAM SCORE >= 30/75. If one of the 2 criteria is not met, you will not get the certificate even if the Final score >= 40/100.

## NPTEL The Joy Of Computing Using Python Assignment 12 Answers 2022:-

The Joy Of Computing Using Python Online Programming Test April 2022

Q1. What is a sink?

a. A node with no incoming edges.
b. A node with maximum incoming edges.
c. A node with maximum outgoing edges.
d. A node with no outgoing edges.

Q2. What should we do when encountered a sink?

• Stop the algorithm.
• Randomly choose a node from all nodes.
• Randomly choose a node from neighbor nodes.

Q3. In the page rank algorithm

• We randomly travel from node to node without any relationship.
• We randomly travel from node to neighbor node.
• The maximum visited node will be the leader.
• B and C A and C

Q4. If we perform the page rank algorithm on the web as a graph, which of the following is true?

• Websites are nodes and hyperlinks in websites are edges.
• Hyperlinks in websites are nodes and websites are edges.
• Websites will work as nodes and edges.
• Hyperlinks will work as nodes and edges.

Q5. Which is the following graph?

Q6. Which of the following is a star graph of node 5?

Q7. What will be the G.out_degree(3) for the following graph(G) ?

Q8. In the page rank algorithm the leader is decided by?

Q9. Which of the following is true about directed graphs?

If there are any changes in answers will notify you on telegram so you can get a 100% score, So Join

Q10. What will be the output of the following code?

## The Joy Of Computing Using Python Assignment 12 Programming Assignment Answers

Q1. Write a program to an integer as an input and reverse that integer.

Code:-

print(int("".join(list(input())[::-1])),end="")

Q2. Given a list of strings, write a program to write sort the list of strings on the basis of last character of each string.

Code:-

L=input().split()
M=[]
for i in L:
M.append("".join(list(i)[::-1]))
ans=[]
for i in sorted(M):
ans.append("".join(list(i)[::-1]))
print(ans,end="")

Q3. Given a student’s roll number in the following format rollNumber@institute.edu.in, write a program to find the roll number and institute name of the student.

Code:-

roll=input()
print(roll.split('@')[0],roll.split('@')[1].split(".")[0],end="")

Disclaimer:- We do not claim 100% surety of solutions, these solutions are based on our sole expertise, and by using posting these answers we are simply looking to help students as a reference, so we urge do your assignment on your own.