Description
just follow the documents finish all the question
I already did half of question
Explanation & Answer
Done. Kindly have a look at it.
Problem 1 (12 points). Answer the following questions about the programming paradigms.
(a) What are the four major programming paradigms?
Imperative, Functional, Logical and Object-Oriented.
(b) How are they distinguishable from each other?
Imperative programming paradigms are unique because they point directly to the memory. Functional
programming paradigms are not as efficient as imperative programming paradigms but are capable of
more advanced things. Logical programming paradigms deal with logic-relation and logic circuits.
Object-oriented programming paradigms can be distinguished because the paradigms are objects
versus variables.
(c) Give at least two PLs for each paradigm.
ImperativeFunctionalLogicalObject-OrientedProblem 2 (16 points). For each of the following, explain what the expected inputs and outputs are.
(a) Compiler
Input- Source files
Output-running code
(b) Assembler
Input- assembly code
Output- Machine code
(c) Linker
Input- library files, import files
Output- executable file
(d) Loader
Input-object program
Output-executable file, allocated memmory
(e) Interpreter
Input- source code
Output- executes code directly
(f) Scanner
Input- user input
Output- storage/printf
(g) Parser
Input-scanner information inputed
Output- Parse tree of the program
(h) Evaluator
Input- compiler
Output- performs function.
Problem 3 (12 points). Answer the following questions about regularity criterion in PLs.
(a) What are the three criteria that define regularity? (3 points)
Generality, Orthogonality, and Uniformity.
(b) Define each of these criteria. (3 points)
Generality-combining closely related ideas/constructs to more general ones
Orthogonality- constructs combined carefully and efficiently with no restrictions
Uniformity-consistency in language similar is to similar while different is to different.
© Give two examples for each of these crite...
Review
Review
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Similar Content
Related Tags
All the Kings Men
by Robert Penn Warren
The Eyes Were Watching God
by Zora Neale Hurston
The Odyssey
by Homer
The Turn of the Screw
by Henry James
Extreme Ownership - How US Navy SEALs Lead and Win
by Jocko Willink and Leif Babin
Crippled America
by Donald J Trump
I Cant Make This Up - Life Lessons
by Kevin Hart
Fools Crow
by James Welch
Dune
by Frank Herbert