100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

CS 326 EVALUATION EXAMS 2025/2026 QUESTIONS AND SOLUTION RATED A+

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

CS 326 EVALUATION EXAMS 2025/2026 QUESTIONS AND SOLUTION RATED A+

Institution
CS 326
Course
CS 326









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CS 326
Course
CS 326

Document information

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

Subjects

Content preview

CS 326 EVALUATION EXAMS 2025/2026 QUESTIONS AND
SOLUTION RATED A+
✔✔Ch3 What does BNF stand for and what is it - ✔✔Backus Naur Form
a general meta language to describe the grammar of a programming language

✔✔Ch3 Grammar in BNF, the tuple and what the variables mean. - ✔✔4-tuple:
(T,N,S,P) character set, tokens, lexicons
T - set of terminals
N - finite set of non terminals (metasymbols, syntactic categories)
S - Element of non-terminal; start symbol from grammar (usually called grammar)
P - finite set of rules/productions of form
A ::= beta
lhs -> rhs(rhs can be empty)
A is single non terminal, ::= seperates lhs & rhs like arrow, beta is string od (T u N)*
Greek letters represent string

✔✔Ch3 What is ":="? - ✔✔the assignment operator in agol

✔✔Ch3 What is "::="? - ✔✔BNF arrow symbol

✔✔Ch3 T/F? Empty programs are allowed in AGOL. - ✔✔True (A parse tree can be
made for 'begin end')

✔✔Ch3 A language for which all grammar that generates it are ambiguous is called
an... - ✔✔inherently ambiguous language

✔✔Ch5 Structural type equivalence vs name type equivalence. What are they and
which is better? - ✔✔One depends on being structurally the same (C) while the other
just checks if they have the same name (C++)

Name type equivalence is easier and quicker, being more restrictive and says no more
often then yes.

✔✔Ch5 What are anonymous types? Examples? - ✔✔They're structs that do not have a
name assigned to them, but exist in memory.

Ex:
struct { int a; double b} x,y; // compiler puts a name if you don't in c++
struct { int a; double b} x; //not equivalent type to above, address names are different in
c++

✔✔Ch5 Subrange types. Example? What will work? - ✔✔x = y; // x is a subrange of y or
vise versa
int = 1...10; // WILL work

, 1...10 = int // ok but runtime checked

✔✔Ch5 What do scope rules do? - ✔✔specify when a name can be used and which
address the name refers to (if name is associated w/ multiple addresses)

✔✔Ch5 When are scopes determined/checked? - ✔✔@ compile time
ALSO all programming languages use static scope

✔✔SG Qualities of a good programming language include... - ✔✔readable, writable,
reliable, syntactic consistency, regularity

✔✔SG What is syntactic consistency? - ✔✔

✔✔SG What is reliability? - ✔✔

✔✔SG Translation techniques: Compilers vs interpreters - ✔✔

✔✔SG Translation techniques: compiler phases - ✔✔program -> interpreter -> code ->
execution

✔✔SG Translation techniques: static time vs dynamic time - ✔✔

✔✔SG 5 Gen of Imperative Languages: definition of imperative language programming
- ✔✔

✔✔SG 5 Gen of Imperative Languages: Differences between generations - ✔✔

✔✔SG 5 Gen of Imperative Languages: Example languages - ✔✔

✔✔SG Formal Methods for syntax: BNF, grammars, sentences, languages - ✔✔

✔✔SG Variable attributes: 1. name, keywords, reserved words, predefined names - ✔✔

✔✔SG Variable attributes: 2. address, names w/ multiple addr, aliasing - ✔✔scope rules
eliminate ambiguity

✔✔SG Variable attributes: 3. type, type checking, strong vs weak typed PLs, loop holes,
type equivalence, name vs structural equivalence - ✔✔

✔✔Ch3 Coercison definition: - ✔✔automatic conversion of types in mixed type
expression

✔✔Ch3 Structural or name type equivalence?

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
View profile
Follow You need to be logged in order to follow users or courses
Sold
104
Member since
10 months
Number of followers
3
Documents
11120
Last sold
4 days ago
EXAM CAFE

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

14 reviews

5
5
4
2
3
2
2
1
1
4

Recently viewed by you

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

Frequently asked questions