午前問9
論理型の変数A、Bの値に対して、次の条件文と同値なものはどれか。ここで、ANDは論理積、ORは論理和、XORは排他的論理和、Trueは真、Falseは偽、=は等号を表す。 if (A=True AND B=False) OR (A=False AND B=True) then …
if ((A AND B) = True) then … | |
if ((A AND B) = False) then … | |
if ((A OR B) = True) then … | |
if ((A XOR B) = True) then … |
『情報処理過去問.com』からiPhoneアプリがリリースされました!!
正解
- エ