digital logic questions

sam.1998