• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 5 pages
Exam (elaborations)

Asu Cse 240 Midterm Exam Questions With Correct Answers

Document preview thumbnail
Preview 2 out of 5 pages

ASU CSE 240 MIDTERM EXAM QUESTIONS WITH CORRECT ANSWERS

Content preview

ASU CSE 240 MIDTERM EXAM
QUESTIONS WITH CORRECT
ANSWERS

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

(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


The principle behind the object-oriented paradigm consists of a number of programming
concepts, which does not include: - Answer- Pointers and Arrays

Interpreter - Answer- Translates in runtime and executes each statement in the high
level language

, Intermediate code - Answer- makes the language and the compiler machine-
independent

(T/F) A program in C must contain at least one main - Answer- True

Allows us to define the allowed values for a new type - Answer- enumeration (integer
constants) labels that represent an integer value

composite data type declaration that defines a physically grouped list of variables to be
placed under one name in a block of memory - Answer- structure(similar to a java class;
but DOES NOT allow methods)
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


What does the follow code print?
int foo(int *n) {
*n = 30;
}int main() {
int i=15;
foo(&i);
printf("i=%d\n",i);
i=10;

Document information

Uploaded on
January 9, 2026
Number of pages
5
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
CA$21.85

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Scholarsstudyguide
3.8
(169)
Sold
845
Followers
476
Items
16355
Last sold
2 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions