Skip to main content

Computer science Regular Expressions with Deterministic

Q1. Describe the following Regular Expressions with Deterministic (2 Marks)
Finite Automaton (DFA)
i) a ( b l a ) b+
ii)a b*a(a*lb+)
QZ. Explain the purpose of parser and semantic analyzer. (2 Marks)
Q3. A context-free grammar has the following productions: (6 Marks)
E -> V
E -> EOF
E -> ( E
V-> a l b I c
0 -> + I – I * l
For an expression (a-b)lc
i) Perform Leftmost Derivation,
ii) Rightmost Derivation
iii) Derivation Trees for Leftmost Derivation
Q4. A context-free grammar has the following productions: (8 Marks)
E -> T E”
E’ -> + T E’ l 6
T -> F T’
T’ -+ * F T’ I e.
F -> ( E ) [ id
i) Compute the first sets
ii) Compute follow sets
iii) Construct the parse table
iv) Show each step of top-down parsing for id + id * id
QS. Eliminating Left-Recursion from the following grammar (2 Marks)
5 -> A a. l b
A -> A c 1 S d 1 e
Q6. What are the Common Programming Errors? What are the (5 Marks)
different Error-Recovery Strategies
Q7. Consider the following set of Code (5 Marks)
if (x < y)
x=5*y+5*ylm
else
3! = 5;
x=x+w
Construct:
i) Abstract Syntax Trees (ASTs)
ii) Directed Acyclic Graphs (DAGs)
iii) Control Flow Graphs (CFGs)
iv) Stack Machine Code
v) Three-Address Code

Comments

Popular posts from this blog

Identify and discuss a key milestone in the history of computers that interests you and why.

  Part 1Title: Lab ResponseDiscuss one feature of MS Word and one feature of MS Excel that you found challenging within the lab and why. Examples are WordArt, inserting shapes, adding borders, cell styles, etc. This response should be at least one paragraph in length. Part 2Title: History of Computers Identify and discuss a key milestone in the history of computers that interests you and why. This section should be at least one paragraph. Part 3Title: System Software vs. Application Software In your words, explain the difference between application software and system software as if to another coworker who has limited technical knowledge. Use examples to support your rationalization. This section should be at least two paragraphs. Part 4Title: Blockchain and Cryptocurrency In a minimum of one paragraph each: 1. Conduct some research on the internet and discuss one underlying technology of cryptocurrencies like blockchain, cryptography, distributed ledger technol...

Cybersecurity and Infrastructure Security (CISA)

 Develop a research paper that identifies a specific Department of Homeland Security (DHS) operating agency. Fully describe 1 DHS operating agency from the following list: Cybersecurity and Infrastructure Security (CISA) U.S. Customs and Border Protection (CBP) U.S. Citizenship and Immigration Services (USCIS) Federal Emergency Management Agency (FEMA) U.S. Coast Guard (USCG) U.S. Immigration and Customs Enforcement (ICE) U.S. Secret Service (USSS) Transportation Security Administration (TSA) The information must include a discussion of the selected DHS agency. Identify the agency’s mission, goals, objectives, and metrics. Conduct an analysis of how these mission areas address the threats or challenges. Recommend agency program priorities among the current set of goals, objectives, metrics, or budget items. Justification of all choices is an essential element of this assignment. Reference all source material and citations using APA format. WE OFF...

Internet Trends and Emerging Technologies

 Seek out the latest presentation by Mary Meeker on “Internet Trends” (if you cannot find it, the video from 2019 is available at https://www.youtube.com/watch?v=G_dwZB5h56E or seek out another source of information on Internet Trends and Emerging Technologies . Write 1 page describing what the top three trends and/or emerging technologies are, in your opinion and why.  Are there any ethical dilemmas over those trends and why? (Think about printable like 3D printers and weapons, autonomous vehicles, wearables, findables, etc...).  In your opinion, is this trend good for mankind? WE HAVE DONE THIS ASSIGNMENT BEFORE, WE CAN ALSO DO IT FOR YOU GET SOLUTION FOR THIS ASSIGNMENT,  Get Impressive Scores in Your Class CLICK HERE TO MAKE YOUR ORDER   on  Internet Trends and Emerging Technologies Are You looking for Assignment and Homework Writing help?  We Provide High-Quality Academic Papers at Affordable Rates. No Plagiarism. TO BE R...