Related Questions

The following question has two statements. Study the question and the statements and decide which of the statement(s) is/are necessary to answer the question. Each of the 20 racks of garment shop contains either only shirts, only jeans, or a mixture of shirts and jeans, how many racks contain only shirts? Statement I: 18 racks contain jeans and 14 racks contain shirts. Statement II: 6 racks contain jeans only. 
Consider the following grammar (that admits a series of declarations, followed by expressions) and the associated syntax directed translation (SDT) actions, given as pseudo-code: P → D* E* D → int ID {record that ID.lexeme is of type int} D → bool ID { record that ID.lexeme is of type bool} E → E1 + E2 {check that E1.type = E2.type = int; set E.type := int} E → !E1 {check that E1.type = bool; set E.type := bool} E → ID {set E.type := int} With respect to the above grammar; which one of the following choices is correct?