Are you looking for the Answers to **NPTEL Social Networks Assignment 1? **This article will help you with the answer to the **Nation**** al Programme on Technology Enhanced Learning (NPTEL)** Course

**”**Social Networks**“**

**Assignment 1**## What is Social Networks?

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.

## 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.**

** Below you can find the answers for Social Networks Assignment 1**

## Social Networks Assignment 1 Answers:-

**Q1.** Let L = [“one”, “two”, [“three”, “four”, “five”, “six”], “seven”, [“eight”], []] be the list. What will be the output of len(L) (written in Python3)?

**Answer:-** **B. 6**

**Q2.** Which of the following functions is used to create a directed graphs with self loops and parallel edges in NetworkX?

**Answer:-** **C. networkx.MultiDiGraph()**

**Q3.** If string = ‘Mississippi’, what will be the output of string[0:6] (written in Python3)?

**Answer:-** **A. ‘Missis’**

**Q4.** Total number of possible edges on a graph (undirected and without loops) on n vertices is **not:**

**Answer:-** **C. 1+2+3+⋅⋅⋅+(n−1)+n**

???? **Next Week Answers: Assignment 02** ????

**Q5.** If d = {0:’a’, 1:’b’, 2:’c’, 3:’d’} is the dictionary then which among the following codes (written in Python3) would reverse keys and values of d?

**Answer:-** **D. All of the above**

**Q6.** Let the number of atoms in the explored universe be 1080. Pick the smallest number of nodes from the below given options such that the number of possible graphs on that many nodes is greater or equal to the number of atoms in the explored universe. (Assume *log*210 = 3.3)

**Answer:-** **A. 23**

**Q7.** What is the output of the following code snippet (written in Python3):

**Answer:-** **A. 0**

**Q8.** Let t be a tuple (“social”, “networks”, “IIT”). What will be the output of t.append((“Ropar”)), written in Python3?

**Answer:-** **D. Attribute Error**

**Q9.** Which of the following is correct?

**Answer:-** **D. Only A, C and D.**

**Q10.** For integers *n*>1, let *Gn* be a complete graph on *n* vertices such that each vertex is labeled by a distinct number 1,2,3,⋅⋅⋅,*n*, and each edge is labeled by the sum of its endpoint labels. The sum of all the edge labels is:

**Answer:-** **B. (n(n−1)(n+1))/2**

**For other courses answers:- Visit**

**For Internship and job updates:- Visit **