Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 1 out of 3 pages
Exam (elaborations)

CSCE 3600 FINAL QUESTIONS AND ANSWERS (ALREADY GRADED A+)

Document preview thumbnail
Preview 1 out of 3 pages

CSCE 3600 FINAL QUESTIONS AND ANSWERS (ALREADY GRADED A+)CSCE 3600 FINAL QUESTIONS AND ANSWERS (ALREADY GRADED A+)CSCE 3600 FINAL QUESTIONS AND ANSWERS (ALREADY GRADED A+) lexeme - ANSWER-The sequence characters matching a pattern tokens - ANSWER-In lexical analysis, the compiler scans the source code from left‐to‐right, character‐by‐character, and groups these characters into lexemes, and outputs a sequence of ______ to the syntax analyzer keywords - ANSWER-lexeme: if, while, ... operators - ANSWER-lexeme: =, ||, *, +, ... identifiers - ANSWER-lexeme: i, i1, j1, sum...

Content preview

CSCE 3600 FINAL QUESTIONS AND
ANSWERS (ALREADY GRADED A+)
lexeme - ANSWER-The sequence characters matching a pattern

tokens - ANSWER-In lexical analysis, the compiler scans the source code from left‐to‐
right, character‐by‐character, and groups these characters into lexemes, and outputs a
sequence of ______ to the syntax analyzer

keywords - ANSWER-lexeme: if, while, ...

operators - ANSWER-lexeme: <=, ||, *, +, ...

identifiers - ANSWER-lexeme: i, i1, j1, sum...

numbers - ANSWER-lexeme constants: 12, 3.14...

(a|b)* - ANSWER-regex: All strings of a's and b's (e.g., aba, ababa)

x?= x | e - ANSWER-denotes L(x)U{e}, (where e is empty string) -- zero or one
occurrence of x.
Example: (0|1)?, 0?|1?

transition function d - ANSWER-Maps state/symbol pairs to states: S(set of states) x E
(set of input symbols (an alphabet)) -> state

DFA Simulation - ANSWER-Start in state s0 and follow transitions on each input
character (state doesn't change if no input character is read

syntax analyzer, parser - ANSWER-___, or ____, groups sequences of tokens from the
lexical analysis phase into phrases, each with an associated phrase type

scanner, parser - ANSWER-Step 1 of syntax analysis: Obtain tokens from lexical
analyzer (the output of the ___ is given to the ___)

grammatical - ANSWER-A lexical error is a mistake in lexeme (ex: typing esle instead of
else). A ___ error violates the rules of the language.

optimisation - ANSWER-___ improves programs by making them smaller or faster or
both (doesn't change an algorithm)

local - ANSWER-____ transformations are applied over small segments of the program.
limited benefit, low cost

Document information

Uploaded on
December 6, 2024
Number of pages
3
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
NursingTutor1
3.9
(459)
Sold
1701
Followers
1073
Items
18447
Last sold
1 week ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions