Cognizant Interview Question

what is a diode? what is latch?