programing language

User Generated

462503340_

Computer Science

Description

just follow the documents finish all the question

I already did half of question

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

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


Anonymous
I use Studypool every time I need help studying, and it never disappoints.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags