Hello NPTEL Learners, In this article, you will find **NPTEL Social Networks Assignment 1 Week 1 Answers 2023**. All the Answers are provided below to help the students as a reference donâ€™t straight away look for the solutions, first try to solve the questions by yourself. If you find any difficulty, then look for the solutions.

**NPTEL Social Networks Assignment 2 Answers 2023 Join GroupðŸ‘‡ **

**Note:** We are trying to give our best so please share with your friends also.

## NPTEL Social Networks Assignment 1 Answers 2023:

We are updating answers soon Join Group for update: **CLICK HERE**

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

#### 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()

print(calc())

#### Q.3. Which of the following statement creates 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)}

**NPTEL Social Networks Assignment 2 Answers Join GroupðŸ‘‡ **

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

import networkx as nx

import matplotlib.pyplot as plt

G=nx.Graph()

G.add_nodes_from([1,2,3,4,5])

G.add_edges_from([(1,2),(2,3),(2,5),(1,6),(3,4)])

nx.draw(G,with_labels=True)

plt.show()

**Answer:**D

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

G=nx.Graph()

G.add_nodes_from([i for i in range(10)])

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:

G.add_edge(u,v)

- 9
- 10
**n**- n-1

#### Q.6. Which of the 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

#### Q.7. What is the maximum number of graphs that can be created from 10 nodes?

**Answer: A**

**NPTEL Social Networks Week 1 Answers Join GroupðŸ‘‡ **

**CLICK HERE**

#### Q.8. Given that we have n nodes in a network, what is the approximate number of steps to search a node?

**Answer: B**

#### Q.9. Identify the layout for the graph given in the following figure.

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

**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Â **Chase2learn**. 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 Outcome:**

- 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 6:Â Link AnalysisÂ
- 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/

**Join Our Telegram Group:- CLICK HERE**