Logic Gate Electrical Question