A binary string is divisible by 4 if and only if it ends with:

Answer: A
Explanation: If the string is divisible by four, it surely ends with the substring ‘100’ while a binary string divisible by 2 would surely end with the substring ‘10’.
 

Tìm kiếm

Back
Top