21. The following python code is applied for the four arrays d1—d4. 5ee595522f686.jpg

d1 = np.array([1, 0, 0, 1, 0, 0]); d2 = np.array([0, 1, 0, 1, 1, 0]); d3 = np.array([0, 0, 0, 0, 0, 0]); 

d4 = np.array([1, 1, 0, 0, 1, 0]). Consider the following statements. 

(a) func(d1, d2)[2] = 0 

(b) func(d2, d4) = d3 

(c) func(d1, d2) = d4 

(d) func(func(d1, d4), d2) = d3 

Which of the above statements is CORRECT


(A) (a)(b)
(B) (a)(c)(d)
(C) (b)(c)(d)
(D) All of the above are correct
(E) None of the above is correct

答案:登入後查看
統計: A(0), B(0), C(0), D(1), E(0) #2349696

詳解 (共 1 筆)

#4752759
此題為陷阱題,看似程式題其實是考真值表運...
(共 274 字,隱藏中)
前往觀看
0
0