ASU CSE 240 MIDTERM Exam Complete Test , Practice Questions, Verified
Answer Key, and Study Guide for (Latest 2026 Edition)
A programming language can belong to multiple paradigms (T/F) - (answer)True
Features of the imperative or procedural paradigm includes - (answer)Manipulation of named
data(variables) and conditional statements
(T/F) Logic programming languages divide the program into reasonable sized pieces named functions or
procedures or modules or subroutines - (answer)False
Direct execution of one statement at a time sequentially - (answer)Interpretation
simpler semantics and computation expressions in terms of mathematical function are features of which
paradigm? - (answer)Functional
Expressing computation in terms of logic predicates is a feature of which paradigm? - (answer)Logic
Inheritance, classes & objects are features of which paradigm - (answer)Object Oriented
A set of principles, concepts and methods that is commonly accepted by members of a group or
community - (answer)Programming Paradigm
(T/F) Prolog is a functional programming language? - (answer)False
(T/F) the compiler executes the program - (answer)False
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
(T/F) Functional programming languages are low-level languages - (answer)False
, ASU CSE 240 MIDTERM Exam Complete Test , Practice Questions, Verified
Answer Key, and Study Guide for (Latest 2026 Edition)
(T/F) compilation of a program is to execute all the statements of the program completely -
(answer)False
They syntactic structure of imperative programming languages normally include which of the following
units? A. Operators B. keywords C. identifiers D. conditional statements E. loop statements F. variable
declaration - (answer)D, E, F
What programming language uses two-step translation with intermediate codes for execution? -
(answer)JAVA
(T/F) Interpretation of a program is the direct execution of one statement at a time sequentially. -
(answer)True
(T/F) during compilation, all statements of a program in a high-level language are converted to a low-
level language. - (answer)True
A set of primary values and the operations defined on these values - (answer)data type
The lexical structure of all programming languages are similar and include which of the following units?
A. Identifiers B. Loop statements C. Keywords D. operators E. literals F. variable declaration - (answer)A,
C, D, E
What does the follow code print?
int foo(int *n) {
*n = 30;
}int main() {
int i=15;
foo(&i);
Answer Key, and Study Guide for (Latest 2026 Edition)
A programming language can belong to multiple paradigms (T/F) - (answer)True
Features of the imperative or procedural paradigm includes - (answer)Manipulation of named
data(variables) and conditional statements
(T/F) Logic programming languages divide the program into reasonable sized pieces named functions or
procedures or modules or subroutines - (answer)False
Direct execution of one statement at a time sequentially - (answer)Interpretation
simpler semantics and computation expressions in terms of mathematical function are features of which
paradigm? - (answer)Functional
Expressing computation in terms of logic predicates is a feature of which paradigm? - (answer)Logic
Inheritance, classes & objects are features of which paradigm - (answer)Object Oriented
A set of principles, concepts and methods that is commonly accepted by members of a group or
community - (answer)Programming Paradigm
(T/F) Prolog is a functional programming language? - (answer)False
(T/F) the compiler executes the program - (answer)False
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
(T/F) Functional programming languages are low-level languages - (answer)False
, ASU CSE 240 MIDTERM Exam Complete Test , Practice Questions, Verified
Answer Key, and Study Guide for (Latest 2026 Edition)
(T/F) compilation of a program is to execute all the statements of the program completely -
(answer)False
They syntactic structure of imperative programming languages normally include which of the following
units? A. Operators B. keywords C. identifiers D. conditional statements E. loop statements F. variable
declaration - (answer)D, E, F
What programming language uses two-step translation with intermediate codes for execution? -
(answer)JAVA
(T/F) Interpretation of a program is the direct execution of one statement at a time sequentially. -
(answer)True
(T/F) during compilation, all statements of a program in a high-level language are converted to a low-
level language. - (answer)True
A set of primary values and the operations defined on these values - (answer)data type
The lexical structure of all programming languages are similar and include which of the following units?
A. Identifiers B. Loop statements C. Keywords D. operators E. literals F. variable declaration - (answer)A,
C, D, E
What does the follow code print?
int foo(int *n) {
*n = 30;
}int main() {
int i=15;
foo(&i);