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 END OF COURSE 2025/2026 QUESTIONS AND SOLUTION RATED A+

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

CS 326 END OF COURSE 2025/2026 QUESTIONS AND SOLUTION RATED A+

Institution
CS 326
Course
CS 326

Content preview

CS 326 END OF COURSE 2025/2026 QUESTIONS AND
SOLUTION RATED A+
✔✔What did the 2nd Gen. Pl's contribute? - ✔✔1. Recursion
2. Some dynamic data
3. Stronger typing
4. Block structure syntax
5. Free format syntax
6. !!! Formal definition of syntax

✔✔3 Examples of 3rd Gen. PL's - ✔✔1. Pascal
2. C
3. Algol 68

✔✔What did the 3rd Gen. PL's contribute? - ✔✔1. Completed structured control
statements
2. Arrays, records, sets, consts, enum, subtypes
3. User controled data = alloc/dealloc (pointers/references)
4. Stronger Typed System

✔✔3 Examples of 4th Gen. PL's - ✔✔1. Ada 83
2. Modula2
3. Fortran 90

✔✔What did the 4th Gen. PL's contribute? - ✔✔!! Data Abstraction (classes)

✔✔3 Examples of 5th Gen. PL's - ✔✔1. C++
2. Java
3. Ada 95

✔✔What did the 5th Gen. PL's Contribute? - ✔✔1. Inheritance
2. Polymorphism

✔✔What are the parts of BNF? - ✔✔General meta-language to describe grammars of
PL's

T = finite set of terminals
N = finite set of non-terminals
S ∈ N = Start symbol
P = Finite set of rules/productions

✔✔Def: Grammar - ✔✔A set of rules over an alphabet that are used to generate a
language

✔✔Def: Language - ✔✔L(G) = { w | w ∈ T* and w has a parse tree using G }

, ✔✔Def: Sentences - ✔✔Legal strings in L(G)

✔✔Def: Ambiguity Sentence - ✔✔When a given sentence gives 2 or more distinct parse
trees

✔✔Def: Ambiguous Grammar - ✔✔When a grammar can generate at least one
ambiguous sentence, it becomes an ambiguous grammar

✔✔Give an example of Inherently ambiguous language - ✔✔English

✔✔What is Precedence of Operators and how do you achieve it with BNF? -
✔✔Precedence of Operators is the hierarchy (order) in which operators should be
applied

Precedence is achieved through creating productions that reference other productions
(and their LHS's) in a descending order:

<S> => <S> * <R> | <R>
<R> => <R> + <Q> | <Q>
<P> => a

✔✔What is Associativity of Operators and how do you achieve it with BNF? -
✔✔Associativity of Operators is the rule that determines which non-terminals that an
operator will expand

Achieved through the left to right or right to left order when defining productions

✔✔What are the meanings of the EBNF symbols, and how do you convert them to/from
BNF? - ✔✔1. [ ] 0 or 1 times

<T> => <T><R> | <R>
i.e.t <T> => [<T>]<R>

2.{ } 0 or more times

<T list> => <T list><T> | <T>
i.e.t. <T list> => <T>{,<T>}

3. ( ... | ... | ... ) Or operators

<term> => <term> ( * | + | - | / ) <factor>

✔✔What are the 6 properties of Variables? - ✔✔1. name
2. address

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 &amp; summaries to simplify learning ✅ Practice tests &amp; quizzes to assess your knowledge ✅ Detailed solutions &amp; 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

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

Working on your references?

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

Working on your references?

Frequently asked questions