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 final end term exam

Rating
-
Sold
-
Pages
11
Grade
A+
Uploaded on
13-05-2025
Written in
2024/2025

CS 326 final end term exam

Institution
CS 326
Course
CS 326

Content preview

CS 326 final endterm

Characterize programming languages by: - -syntax, semantics, and implementation

-how it looks, what it means, and how it executes



Imperative languages - Von Neumann (side-effects) and object oriented languages (interactions
between objects)



Von Neumann Languages - based on statements that influence subsequent computation; side
effects



Object-oriented languages - compute based on interactions between objects; each object has
internal state and functions to manage state



Functional languages - inspired by lambda calculus, uses recursive definition of functions



logic/constraint based languages - based on propositional logic; goal-directed searches using list
of logical rules



Declarative languages - Functional (scheme) and Logic based



Machine language - sequence of bits that directly control processor



assembly language - mnemonic abbreviations that are translated by an assembler; machine-
dependent



high level languages - machine-independent languages; do not correspond 1-to-1 with machine
language; translated by compiler or interpreter

, Compiler - translates into the target language (machine language)



Interpreter - implements a virtual machine whose machine language is the high-level language



compilation vs interpretation - - interpretation has better flexibility and diagnostics, allows for
program features to depend on the input

- Compilation has better performance



front end of the compiler: - scanner, parser, semantic analysis

- server to determine the meaning of the source program



back end of the compiler: - - target code generation, and code improvements

- serves to construct the target program



what is passed into a scanner? - character stream



what is passed into a parser? - token stream



what is passed in for semantic analysis? - parse tree



Compilation process - 1. lexical analysis (scanner)

2. syntax analysis (parser)

3. semantic analysis

4. machine-independent code improvement

5. target code generation

Written for

Institution
CS 326
Course
CS 326

Document information

Uploaded on
May 13, 2025
Number of pages
11
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$5.99
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
StudyMastermind

Also available in package deal

Thumbnail
Package deal
cs 326
-
2 2025
$ 12.78 More info

Get to know the seller

Seller avatar
StudyMastermind Teachme2-tutor
View profile
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
10 months
Number of followers
0
Documents
208
Last sold
-
Study Mastermind

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Trending documents

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