Quiz 3

By entering in your initials:

  1. You agree not to use outside resources including notes, LLMs, the internet, etc.
  2. You agree to remain in full screen while you complete the exam.





Time Remaining: 30:00

Question 1

When might you use networkx over matplotlib?

Question 2

List 4 things that an informative plot should have.

Question 3

What does the following code do?


    import pandas as pd
    import numpy as np
    contarray = np.array([1, 2, 3, 4])
    contframe = pd.DataFrame({"Values": contarray})
    contframe.to_csv("contframe.csv", index=False)

Question 4

What is the time complexity of the following code?


    contframe = pd.read_csv("contframe.csv")
    n = len(contframe)

    contlist = []
    for i in range(n):
        for j in range(n):
            contlist.append(contframe["Values"].iloc[i] + contframe["Values"].iloc[j])