Question: Please answer ALL questions! 2. Multiple Choices: (You may have multiple answers. 5 points each) 1) Which of the following are tokens in Java? a)

 Please answer ALL questions! 2. Multiple Choices: (You may have multiple Please answer ALL questions!

2. Multiple Choices: (You may have multiple answers. 5 points each) 1) Which of the following are tokens in Java? a) for b) mult op d) identifier 2) Which of the following are lexemes in Java? a) while b) int literal d) semicolon 3) Which of the following are terminal symbols in the grammar rule (1..) ident | (+/-)(ident | nt-literal) I (opp) a) cexp b) intliteral d) ident 4) Which of the following are nonterminal symbols in the grammar rule: factor1-ident C+1-(ident int literal) (cexpo) a) ident b)expr 5) Assume grammar name->Ic letter (le letter |"_) lc letter -"a""z In the following strings, which is/are acceptable string? a) tmp 3. 25 points) Given grammar const I). Write down derivation of a-10-b 2). What are terminals and what are non-terminals in the grammar? Name Page: 2 4. Identify the data type of the data in each) Data Type False 5.0 6/8 (give the type of the result)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!