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

CS 326 STUDY GUIDE 2025/2026 QUESTIONS AND SOLUTION RATED A+

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

CS 326 STUDY GUIDE 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
7
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

CS 326 STUDY GUIDE 2025/2026 QUESTIONS AND
SOLUTION RATED A+
✔✔code improvement - ✔✔optimizes into a new version with more efficiency

✔✔Chomsky hierarchy: - ✔✔form of language classification
-regular vs. context free languages
-regular grammar vs. context-free grammar
-finite vs. pushdown automaton
-scanning vs. parsing phase

✔✔regular languages are a subset of: - ✔✔context free languages

✔✔Formal language - ✔✔set of strings of symbols drawn from a finite alphabet

✔✔What is an ambiguous grammar? - ✔✔one string has multiple parse trees

✔✔What does a regular expression do? - ✔✔defines what tokens are valid in a
programming language

✔✔regular expression options - ✔✔character, empty string, concatenation, alternation,
repetition 0 or more times

✔✔Scheme Program structure - ✔✔all expressions
- atoms: numbers, strings, identifiers, characters, booleans
- lists: sequences of expressions separated by spaces
Ex: list -> ( expr_seq )

✔✔What is does the quote do in Scheme? - ✔✔use the quote to prevent evaluation

✔✔How to force evaluation in Scheme? - ✔✔eval

✔✔What are special forms? - ✔✔they have different rules regarding whether/how
arguments are evaluated
Ex: define/quote

✔✔cons - ✔✔returns a list built from head and tail

✔✔car - ✔✔returns first member of a list (head)

✔✔cdr - ✔✔returns the list without its first member (tail)

✔✔null? - ✔✔returns if list is null

, ✔✔list - ✔✔returns a list built from its arguments

✔✔length - ✔✔returns length of a list

✔✔reverse - ✔✔returns the list reversed

✔✔append - ✔✔returns the concatenation of the lists received as arguments

✔✔How can you check the type of an argument? - ✔✔argument_type?

✔✔and, or - ✔✔evaluate arguments only as needed

✔✔form of if: - ✔✔(if <test_exp> <then_exp> <else_exp>)

✔✔form of cond: - ✔✔(cond
(<test_exp1> <exp1> .. )
(<test_exp2> <exp2> .. )
(else <exp> ...))

✔✔lambda expression - ✔✔An expression used to define an anonymous function (a
function without a name)
(lambda (id1 id2 ...) exp1 exp2 ...)
- can't reuse the function, but useful to return a function from another function

✔✔define - ✔✔allows you to bind a name to a function, so that it can be reused

✔✔member? - ✔✔checks if an element exists in a list

✔✔input-output commands in Scheme: - ✔✔read and display

✔✔How to make local definitions in Scheme? - ✔✔let

✔✔General rules for recurrence in Scheme: - ✔✔− When recurring on a list lst, ask two
questions about it: (null? lst) and else
− When recurring on a number n, ask two questions about it: (= n 0)and else
− When recurring on a list lst, make your recursive call on (cdr lst)− When recurring on a
number n, make your recursive call on (- n 1)

✔✔first-class object - ✔✔can be passed as an argument to another function, it can be
returned as a result from another function, and it can be created dynamically

✔✔higher-order function - ✔✔it takes a function as a parameter, or returns a function as
a result

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 &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

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