問題
MZとmarkerの両方があり1MiB未満のfileだけを対象にしたい。conditionはどれか。
- A
uint16(0) == 0x5A4D or all of them
- B
filesize <= 1MBだけ
- C
uint16(0) == 0x5A4D and filesize < 1MB and all of them
正解:C
理由
全条件をANDで満たす。
選択肢ごとの説明
- A.
uint16(0) == 0x5A4D or all of them
MZだけで一致し得る。
- B.
filesize <= 1MBだけ
1MiBを含みmarkerやheaderも確認しない。
- C.
uint16(0) == 0x5A4D and filesize < 1MB and all of them
全条件をANDで満たす。