於Visual Basic中,若A=False:B=True:C=True,執行下列程式碼後,何者所得結果為True?
- (A) Print not A or B and C 正確答案
- (B) Print A and B and C
- (C) Print A or not B and C
- (D) Print A or B and not C
官方答案:(A)Print not A or B and C
詳解
not A=True,B and C=True,not優先於and,and優先於or,True or True=True。
同章其他題目:裝配及檢修
題目與答案照電腦硬體裝修丙級官方公開題庫(115.03.13 版)收錄;詳解是我寫的整理,正式內容以主管機關公告為準。