combination of logic gates questions - Search