ASU CSE 240 MIDTERM UPDATED ACTUAL EXAM
QUESTIONS AND CORRECT ANSWERS
Question 1.
A programming language can belong to multiple paradigms (T/F)
ANSWER
True
Question 2.
Features of the imperative or procedural paradigm includes
ANSWER
Manipulation of named data(variables) and conditional statements
Question 3.
(T/F) Logic programming languages divide the program into reasonable sized pieces named functions
or procedures or modules or subroutines
ANSWER
False
Question 4.
Direct execution of one statement at a time sequentially
ANSWER
Interpretation
Question 5.
simpler semantics and computation expressions in terms of mathematical function are features of
which paradigm?
ANSWER
Functional
, Question 6.
Expressing computation in terms of logic predicates is a feature of which paradigm?
ANSWER
Logic
Question 7.
Inheritance, classes & objects are features of which paradigm
ANSWER
Object Oriented
Question 8.
A set of principles, concepts and methods that is commonly accepted by members of a group or
community
ANSWER
Programming Paradigm
Question 9.
(T/F) Prolog is a functional programming language?
ANSWER
False
Question 10.
(T/F) the compiler executes the program
ANSWER
False
Question 11.
The semantic structure of imperative programming languages normally include which of the following
validations
ANSWER
type matching, parameters type in a function declaration should match these in the function
call, unicity
QUESTIONS AND CORRECT ANSWERS
Question 1.
A programming language can belong to multiple paradigms (T/F)
ANSWER
True
Question 2.
Features of the imperative or procedural paradigm includes
ANSWER
Manipulation of named data(variables) and conditional statements
Question 3.
(T/F) Logic programming languages divide the program into reasonable sized pieces named functions
or procedures or modules or subroutines
ANSWER
False
Question 4.
Direct execution of one statement at a time sequentially
ANSWER
Interpretation
Question 5.
simpler semantics and computation expressions in terms of mathematical function are features of
which paradigm?
ANSWER
Functional
, Question 6.
Expressing computation in terms of logic predicates is a feature of which paradigm?
ANSWER
Logic
Question 7.
Inheritance, classes & objects are features of which paradigm
ANSWER
Object Oriented
Question 8.
A set of principles, concepts and methods that is commonly accepted by members of a group or
community
ANSWER
Programming Paradigm
Question 9.
(T/F) Prolog is a functional programming language?
ANSWER
False
Question 10.
(T/F) the compiler executes the program
ANSWER
False
Question 11.
The semantic structure of imperative programming languages normally include which of the following
validations
ANSWER
type matching, parameters type in a function declaration should match these in the function
call, unicity