試卷名稱:111年 - 111 巨量資料分析師能力鑑定考試01:資料導向程式設計#114286
年份:111年
科目: iPAS◆資料導向程式設計◆初級
50. 如附圖所示,在 Python 語言中,可以使用 assert 進行斷言測試,請問附圖陳述句的測試效果,下列敘述哪一項正確?
(A) 當 one 與 two 不相等或 one 與 three 不相等時引發錯誤
(B) 當 one 與 two 相等且 one 與 three 相等時引發錯誤
(C) 當 one 與 two 不相等時,引發錯誤,顯示 three 的內容
(D) 當 one 與 two 相等時,引發錯誤,顯示 three 的內容