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

CS 326 Exam 1

Rating
-
Sold
-
Pages
9
Grade
A+
Uploaded on
10-08-2025
Written in
2025/2026

CS 326 Exam 1 1. Write-ability/Express-ability 2. Readability 3. Simplicity 4. Reliability 5. Efficiency 6. Portable 7. Reusable Code 8. Popular - answersQualities of a good PL - answers5 Type Checks that are not done in C++ Statements that execute differently should look different - answersDef: Regularity of Syntax Program that does the translation from HLPL to LLPL before the program is run - answersDef: Compiler Program that does the translation step at run time - answersDef: Interpreter Runtime Efficiency: running machine code is 10 - 100 x faster than simulation of a virtual machine and there are no runtime overhead - answersAdv./Disadv. of Compiler Runtime Error Handling is much better - answersAdv./Disadv. of Interpreter Sequence of commands based on the assignment statement and changeable memory <var> = <expr> - answersDef: Imperative Language

Show more Read less
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
August 10, 2025
Number of pages
9
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Content preview

CS 326 Exam 1
1. Write-ability/Express-ability

2. Readability

3. Simplicity

4. Reliability

5. Efficiency

6. Portable

7. Reusable Code

8. Popular - answers✔✔Qualities of a good PL



- answers✔✔5 Type Checks that are not done in C++



Statements that execute differently should look different - answers✔✔Def: Regularity of Syntax



Program that does the translation from HLPL to LLPL before the program is run - answers✔✔Def:
Compiler



Program that does the translation step at run time - answers✔✔Def: Interpreter



Runtime Efficiency: running machine code is 10 - 100 x faster than simulation of a virtual machine and
there are no runtime overhead - answers✔✔Adv./Disadv. of Compiler



Runtime Error Handling is much better - answers✔✔Adv./Disadv. of Interpreter



Sequence of commands based on the assignment statement and changeable memory



<var> = <expr> - answers✔✔Def: Imperative Language

, Classes are equivalent only when names are equivalent - answers✔✔Def: Name-Type Equivalence



Classes are equivalent when the signature of the classes are equivalent - answers✔✔Def: Structural-
Type Equivalence



struct apple { int a; double b; }

struct orange { int a; double b; }



apple x;

orange y;



x = y; legal? - answers✔✔How do you prove the difference between name/structural equivalence?



All Possible type errors are always checked for and reported (as opposed to weakly-typed where nothing
is checked) - answers✔✔Def: Strongly-Typed



Fortran 66, BASIC, COBOL - answers✔✔3 Examples of 1st Gen. Langs.



1. Machine Independence

2. Infix syntax

3. Generic operators

4. Procedural abstraction - answers✔✔What did the 1st Generation PL's contribute?



1. Algol 60

2. PL/I

3. Fortran 77 - answers✔✔3 Examples of 2nd Gen. Langs.



1. Recursion

2. Some dynamic data
$8.49
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
newborn

Get to know the seller

Seller avatar
newborn stuvia
View profile
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
5 months
Number of followers
0
Documents
197
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

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