Quiz 5!

A quick quiz to test your knowledge on systems of linear equations.

1

Which of the codes solves the following set of equation?

x+y3z=6x+y-3z=-6

2x+3y+z=102x+3y+z=10

x+4y4z=6x+4y-4z=-6

A)
A = np.array([[2, 3, 1], [1, 1, -3], [1, 4, -4]])
b = np.array([-6, 10, -6])

print(np.linalg.solve(A, b))
B)
A = np.array([[1, 1, -3], [2, 3, 1], [1, 4, -4]])
b = np.array([10, -6, -6])

print(np.linalg.solve(A, b))
C)
A = np.array([[1, 1, -3], [2, 3, 1], [1, 4, -4]])
b = np.array([-6, 10, -6])

print(np.linalg.solve(A, b))
D)
A = np.array([[1, 1, -3], [1, 4, -4], [2, 3, 1]])
b = np.array([-6, 10, -6])

print(np.linalg.solve(A, b))
Question 1 of 60 attempted

Get hands-on with 1400+ tech skills courses.