# NPTEL Social Networks Assignment 1 Answers 2023 Hello Learners, In this Post, you will find NPTEL Social Networks Assignment 1 Answers 2023. All the Answers are provided below to help the students as a reference don’t straight away look for the solutions.

###### NPTEL Social Networks Assignment 2 Answers Join Group👇

Note: First try to solve the questions by yourself. If you find any difficulty, then look for the solutions.

## NPTEL Social Networks Assignment 1 Answers 2023:

#### Q.1. What would be the output forthe following code? scores=[78,77,45] scores.append(90) scores.append(98) scores.reverse() print(scores)

• [98, 90, 78, 77, 45]
• [78, 77, 45, 90, 98]
• [98, 90, 45, 77, 78]
• [78, 77, 45, 98, 90]

#### Q.2. Given the following code, Which of the following is not a possible output?

import random

def calc():

x=random.random()

y=random.random()

z=random.random()

return( x+y+z )

print(calc())

• 1.6115945523495627
• 0.202709723169674
• 2.3142203461882844
• 3.9133426822720435

#### Q.3. Which of the following statementcreates the given dictionary, d:{1:1,2:4,3:9,4:16}

• d={x:x∗∗2 for x in range(1,5)}
• d={x:x∗∗2 for x in range(5)}
• d={x:x∗∗2 for x in range(0,5)}
• d={x:x∗∗2 for x in range(1,6)}

#### Q.4. Identify the graph output for the following segment:

import networkx as nx

import matplotlib.pyplot as plt

G=nx.Graph()

nx.draw(G,with_labels=True)

plt.show()

#### Q.5.Given the following code, what is the number of edges in the graph created?

G=nx.Graph()

def create_graph(n):

while(len(G.edges())<n):

u=random.choice(list(G.nodes()))

v=random.choice(list(G.nodes()))

if u!=v and G.has_edge(u,v)==0:

• 9
• 10
• n
• n-1

#### Q.6. Which ofthe statements is True for the graph created from the statement: nx.gnp_random_graph(10,0.5)?

• Graph has 10 nodes with half of the nodes connected
• Graph has 10 nodes with each edge to be put with probability 0.5
• Connected graph with 10 nodes
• Graph has 5 nodes with half of the nodes connected

• spectral
• spring
• circular
• random

#### Q.10. Friend suggestion on Facebook is one of the applications of

• Page ranking
• Small work phenomenon
##### NPTEL Social Networks Assignment 1 Answers Join Group👇

Disclaimer: 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 Brokenprogrammers. This tutorial is only for Discussion and Learning purpose.

#### About NPTEL Social Networks Course:

The world has become highly interconnected and hence more complex than ever before. We are surrounded by a multitude of networks in our daily life, for example, friendship networks, online social networks, world wide web, road networks etc. All these networks are today available online in the form of graphs which hold a whole lot of hidden information. They encompass surprising secrets which have been time and again revealed with the help of tools like graph theory, sociology, game theory etc. The study of these graphs and revelation of their properties with these tools have been termed as Social Network Analysis.

##### Course Layout:
• Week 1: Introduction
• Week 2: Handling Real-world Network Datasets
• Week 3: Strength of Weak Ties
• Week 4: Strong and Weak Relationships (Continued) & Homophily
• Week 5: Homophily Continued and +Ve / -Ve Relationships
• Week 7: Cascading Behaviour in Networks
• Week 8: Link Analysis (Continued)
• Week 9: Power Laws and Rich-Get-Richer Phenomena
• Week 10: Power law (contd..) and Epidemics
• Week 11: Small World Phenomenon
• Week 12: Pseudocore (How to go viral on web)
###### CRITERIA TO GET A CERTIFICATE:

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

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