The matrices \( A \) and \( B \) are related by a row swap operation. To find the determinant relationship between \( A \) and \( B \), observe the following:
- The matrix \( B \) is obtained by permuting the rows of matrix \( A \), which changes the sign of the determinant.
- Since \( B \) is a row permutation of \( A \), the determinant of \( B \) is the negative of the determinant of \( A \). Hence, \( \text{det}(B) = -\text{det}(A) \).
Thus, the correct answer is option (B).