# NPTEL The Joy Of Computing Using Python Week 9 Assignment July 2023 | NPTEL

## How can we identify which book is written by which author?

a. By matching handwriting.
b. By analyzing word length with previous books.
c. By analyzing the number of pages in a book.
d. By analyzing the book’s preface.

b. By analyzing word length with previous books.

a. tuple(L)
b. tup(L)
c. L(tuple)
d. L(tup)

a. tuple(L)

## Will the following piece of code always return True?

```G = nx.gnp_random_graph(10, 0.5)

# Check if the generated graph is connected
is_connected = nx.is_connected(G)```
a. True
b. False

b. False

## What is the output of the following code?

```import networkx as nx
import matplotlib.pyplot as plt

G = nx.Graph()

nx.draw(G,with_labels=True)
plt.show()```

a. 4

d. 3

## In which of the following ways can we create a string in python?

a. By using single quotes.
b. By using double-quotes.
c. By using triple-quotes. d. All of the above.

d. All of the above.

## Which of the following is not true about Stylometry Analysis?

a. It is quantitative study of literature style
b. It is based on the observation that the authors tend to write in relatively consistent and recognisable ways
c. any two people may have same vocabulary
d. It is a tool to study variety of questions involving style of writing

c. any two people may have same vocabulary

## A complete graph will have __ degree of separation

a. 1
b. 2
c. 3
d. Depends on the number of nodes.

a. 1

## Networkx in pythons is used for

a. Making networks
b. Analyzing networks
c. Visualizing networks
d. All of the above

d. All of the above

### |All Assignment: The Joy of Computing using Python - Course | NPTEL

Disclaimer:
"This page contains multiple choice questions (MCQs) related to The Joy of Computing using Python. The answers to these questions are provided for educational and informational purposes only.These answers are provided only for the purpose to help students to take references. This website does not claim any surety of 100% correct answers. So, this website urges you to complete your assignment yourself."