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
Exam (elaborations)

CS 326 EXAM SCRIPT 2025/2026 QUESTIONS AND SOLUTION RATED A+

Rating
-
Sold
-
Pages
5
Grade
A+
Uploaded on
09-10-2025
Written in
2025/2026

CS 326 EXAM SCRIPT 2025/2026 QUESTIONS AND SOLUTION RATED A+

Institution
CS 326
Course
CS 326

Content preview

CS 326 EXAM SCRIPT 2025/2026 QUESTIONS AND
SOLUTION RATED A+
✔✔What does *popularity* mean? - ✔✔- readily accessible, reliable
- easily understood

✔✔How is Java's *readability* compared to C++? - ✔✔Same

✔✔How is Java's *reliability* compared to C++? - ✔✔More

✔✔How is Java's *efficiency* compared to C++? - ✔✔Less

✔✔What are the 5 *compiler phases*? - ✔✔1. Lexical Analysis
2. Syntactic Analysis
3. Semantic Analysis
4. Optimization
5. Code Generation

✔✔What does *lexical analysis* input and output? - ✔✔Input: Source code
Output: Token stream

✔✔What does *syntactic analysis* input and output? - ✔✔Input: Token stream
Output: Parse tree

✔✔What does *semantic analysis* input and output? - ✔✔Input: Parse tree
Output: Checked parse tree

✔✔What does *optimization* input and output? - ✔✔Input: Checked parse tree
Output: Checked parse tree

✔✔What does *code generation* input and output? - ✔✔Input: Checked parse tree
Output: Machine instructions

✔✔What is the difference between syntax and semantics? - ✔✔1. *Syntax*: the form of
the elements of a language; the set of rules that govern the arrangement of strings to
create valid sentences in a language
2. *Semantics*: the meaning of sentences in a language, the execution behavior

✔✔What 4 things is a grammar made up of? - ✔✔1. Terminals (T)
2. Non-Terminals (N)
3. Start Symbol (S)
4. Productions (P)

✔✔What is a *meta-language*? - ✔✔A language used to describe another language

, ✔✔What is a *recursive rule*? - ✔✔A rule that appears in the LHS and the RHS of the
same rule

✔✔What are the properties of a parse tree? - ✔✔1. The root is the start symbol
2. All sub-trees are a production of G
3. An in-order traversal of the leaves returns the original string

✔✔What phases can static time be broken down into? - ✔✔1. Language design time
2. Language implementation time
3. Program compile time

✔✔What do we care about when it comes to binding? - ✔✔1. Type
2. Name
3. Memory location
4. Value

✔✔What is *type binding*? - ✔✔binding type of a *data type* to a *reference*

1. static type binding
2. dynamic type binding

✔✔What is *static type binding*? - ✔✔types are be checked at compile time; variables
must be bound to a type before usage

1. Explicit declaration: reserve memory location and associate with the name, then store
the value
2. Implicit declaration: declare a variable and the compiler infers the type based on the
value

✔✔What are the advantages of *static type binding*? - ✔✔- can check for errors at
compile time
- easier to resolve errors
- more efficient b/c you don't have to check every variable's type at runtime

✔✔What is *dynamic type binding*? - ✔✔types are checked at runtime; variables are
assigned to a type during execution

✔✔What is *address binding*? - ✔✔binding type of a *memory address*

1. static variable
2. dynamic variable

✔✔What is a *static variable*? - ✔✔the memory address is bound at compile time

Written for

Institution
CS 326
Course
CS 326

Document information

Uploaded on
October 9, 2025
Number of pages
5
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$12.49
Get access to the full document:

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

Get to know the seller

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.
EXAMCAFE Chamberlain College Nursing
Follow You need to be logged in order to follow users or courses
Sold
139
Member since
1 year
Number of followers
3
Documents
23069
Last sold
3 days ago
EXAM CAFE

NBA FINALS.....CRAZY TIMES Welcome to Exam Docs Hub, the ultimate online destination for high-quality exam documents, study guides, and academic resources to help you excel in your studies! Whether you're preparing for final exams, standardized tests, certifications, or coursework, we provide comprehensive and well-structured materials to boost your confidence and performance. Our collection includes: ✅ Past exam papers for various subjects ✅ Study guides & summaries to simplify learning ✅ Practice tests & quizzes to assess your knowledge ✅ Detailed solutions & answer keys for effective revision At Exam Docs Hub, we prioritize accuracy, quality, and accessibility. Our resources are carefully curated to meet the needs of students, educators, and professionals. With instant downloads and user-friendly access,

Read more Read less
3.2

17 reviews

5
6
4
3
3
2
2
1
1
5

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