Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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)

image text in transcribed 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions