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

The Joy of Computing using Python Week 9 - Assignment | NPTEL | Answer with Explanation

"Discover the Excitement of Computing with Python | Week Multiple Choice Questions - Get ready to enhance your programming skills and deepen your understanding of the Python language with this week 9 MCQ on 'The Joy of Computing using Python'. Test your knowledge and boost your confidence as a Python programmer today!"

| Learn Python at "Computer Courses - All in One" For Free

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.
Answer

b. By analyzing word length with previous books.

How can a list L be transformed into a tuple?

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

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
Answer

b. False

What is the output of the following code?

import networkx as nx
import matplotlib.pyplot as plt

G = nx.Graph()
G.add_nodes_from([1,,2,3,4])
G.add_edges_from([(1,2),(2,1),(2,3),(3,4),(4,1),(3,1)])

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

How many edges are there in the following graph?

Answer

a. 4

How many neighbors does node 3 have?

Answer

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.
Answer

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
Answer

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.
Answer

a. 1

Networkx in pythons is used for

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

d. All of the above

| The Joy Of Computing Using Python Week 9 : Programming Assignment | NPTEL | Answers

|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."

The Joy of Computing using Python Week 9, NPTEL ,Assignment [July 2023],noc23_cs108

Post a Comment

0 Comments