Docsity

Programming Languages Final Exam, Exams of Programming Languages

Toggle sidebar
bg1
Programming Languages
Final Exam
(caddr '(a b c d)) - ANSa scheme list that is returning its first element
A bottom up parser is typically ____. - ANSLR
A top down parser is typically ____. - ANSLL
Abstract Data Type - ANSa syntactic enclosure with access controls. This can
be used to declare an object, as well as provide operations for the objects of
that type.
Accuracy - ANSThe correctness of the value in representing the intended
value.
Actual parameter - ANSarguments to a function
ADA - ANSlanguage that constituted the largest design effort, going through
a number of requirements starting with strawman.
ALGOL - ANSThe language that is generally understood to be the first of the
more "sophisticated" languages.
Ambiguity - ANSMore than one meaning
Associative array - ANSIn Perl, this stores tables of information where the
lookup is the right hand key (usually a string) to an associated scalar value.
pf3
pf4
pf5

Partial preview of the text

Download Programming Languages Final Exam and more Exams Programming Languages in PDF only on Docsity!

Programming Languages

Final Exam

(caddr '(a b c d)) - ANSa scheme list that is returning its first element A bottom up parser is typically ____. - ANSLR A top down parser is typically ____. - ANSLL Abstract Data Type - ANSa syntactic enclosure with access controls. This can be used to declare an object, as well as provide operations for the objects of that type. Accuracy - ANSThe correctness of the value in representing the intended value. Actual parameter - ANSarguments to a function ADA - ANSlanguage that constituted the largest design effort, going through a number of requirements starting with strawman. ALGOL - ANSThe language that is generally understood to be the first of the more "sophisticated" languages. Ambiguity - ANSMore than one meaning Associative array - ANSIn Perl, this stores tables of information where the lookup is the right hand key (usually a string) to an associated scalar value.

ex: %salaries = ("gary" => 75000, "perry" => 57000, "mary" => 56000) Associativity - ANSaddresses the order that operators with the same precedence are done. Attribute - ANSThis type of grammar extends CFG to handle context things. C Programming Language - ANSDeveloped at Bell Labs as a "system programming" language that helped usher in the era of Unix. C++ is _______typed and Python is ________typed. - ANS- statically

  • dynamically concurrency - ANSrefers to the ability of different parts or units of a program, algorithm, or problem to be executed out-of-order or in partial order, without affecting the final outcome. Context Free Grammar (CFG) - ANSused in syntax analysis Data abstration - ANSEx: a binary tree that stores integer data in its nodes. Such a binary tree would usually be implemented in a language that does not support pointers and dynamic storage management with a heap Data type - ANSDefines the collection of values as well as specifying the operations allowed on those values. Formal parameter - ANSappears in header

Local Referencing Environment - ANSHolds all the parameters, local variables, constants, and global variables that are able to be referenced by a subprogram. Machine Programming Memory - ANSHolds global constants. Non-determinism - ANSan algorithm that, even for the same input, can exhibit different behaviors on different runs. Norrowing conversion - ANSthis shrinks a variable to a smaller type. Operational - ANSA way of describing semantics Orthogonal - ANSA small set of primitive constructs combined in a small number of ways, all of which are legal. Parsing - ANSSyntax analysis Precedence - ANSaddresses the order in which operators of different importance are done. Precision - ANSThe number of digits in a floating-point value. Process abstraction - ANSEx: use of a subprogram to implement a sort algorithm that is required several times in a program. Referential Transparency - ANSSuppose:

temp = fun(a) result1 = fun(a) + b result2 = temp + b This is ______________ if result1 = result2. Regular grammer - ANSused in lexical analysis Reserved words - ANSwords that cannot be used as identifiers (variables, functions, etc.), because they are reserved by the language. Run Time Stack Memory - ANSHolds local variables. Scheme - ANSa multi-paradigm language that is primarily intended to model lisp and the functional programming paradigm. Scope - ANSthe set of statements in which the variable is visible. Strongly typed - ANSThis means that all the type errors are found in the language. T/F: An ordinal data type is one that can be counted -- has a one to one correspondence to the positive integers. - ANSTrue T/F: If a sentence has more than one parse tree, this means that the sentence is ambiguous. - ANSTrue