• 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 3 out of 29 pages
Exam (elaborations)

Cse 240 Midterm Study Asu Gonzales Questions With Answers

Document preview thumbnail
Preview 3 out of 29 pages

Cse 240 Midterm Study Asu Gonzales Questions With Answers

Content preview

CSE 240 MIDTERM STUDY ASU GONZALES QUESTIONS WITH
ANSWERS



Interpretation of a program is the direct execution of one statement at a time sequentially.
d d d d d d d d d d d d d d




True or False? - ans-True
d d d dd




What kind of error is in the following line:-
d d d d d d d d




int a = ((2*45)*(6/2) hello (4+90));
d d d d d




Lexical Error d




Semantic Error d




Correct! Syntactic Error d d




None of the above - ans-What kind of error is in the following line:-
d d d d dd d d d d d d d d




int a = ((2*45)*(6/2) hello (4+90));
d d d d d




Lexical Error d




Semantic Error d




Syntactic Error d




None of the above d d d




The syntactic structure of imperative programming languages normally include which of the f
d d d d d d d d d d d d




ollowing units: d




operators

keywords

identifiers

conditional statements d




loop statements
d




variable declaration - ans-conditional statements
d d dd d




loop statements
d




variable declaration d




The compiler execute the program.
d d d d




True or False - ans-False
d d d dd

,The semantic structure of imperative programming languages normally include which of the f
d d d d d d d d d d d d




ollowing validations: d




type matchingd




division by zero d d




a variable name should start with a letter, '$' or '_'
d d d d d d d d d d




parameters type in a function declaration should match these in the function call.
d d d d d d d d d d d d




statement should end with a ';' d d d d d




unicity - ans-type matching d dd d




parameters type in a function declaration should match these in the function call.
d d d d d d d d d d d d




unicity

Compilation of a program is to execute all the statements of the program completely.
d d d d d d d d d d d d d




True or False - ans-True
d d d dd




During compilation, all the statements of a program in a high-
d d d d d d d d d d




level language are converted (translated) to a low-
d d d d d d d




level language (such as assembly language).
d d d d d




True or False - ans-True
d d d dd




This programming language uses two-
d d d d




step translation with intermediate codes for execution.
d d d d d d




C
C++
Java
C#
LISP - ans-Java d dd




The lexical structure of all programming languages are similar and normally include which of t
d d d d d d d d d d d d d d




he following units
d d




identifiers
loop statements
d




keywords
operators

, literals - ans-identifiers d dd




keywords
operators
literals

What is a data type? d d d d




a specialized format for organizing and storing data
d d d d d d d




a storage location paired with an associated symbolic name
d d d d d d d d




a piece of information
d d d




a set of primary values and the operations defined on these values - ans-
d d d d d d d d d d d d dd




a set of primary values and the operations defined on these values
d d d d d d d d d d d




Considering the following code d d d




struct emp { d d




int id;
d




char *name; d




};
struct emp john; d d




Which of the following lines are correct?
d d d d d d




int a = 1;
d d d




char b[ ] = "John Doe";
d d d d d




emp.id = a; d d




emp.name = b; d d




printf ("%d, %s", emp.id, emp.name);
d d d d




int a = 1;
d d d




char b[ ] = "John Doe";
d d d d d




john.id = b; d d




john.name = a; d d




printf ("%d, %s", john.id, john.name);
d d d d




int a = 1;
d d d




char b[ ] = "John Doe";
d d d d d




john.id = a; d d




john.name = b; d d




printf ("%d, %s", john.id, john.name);
d d d d




int a = 1;
d d d




char b[ ] = "John Doe";
d d d d d

Document information

Uploaded on
October 11, 2026
Number of pages
29
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
CA$21.12

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.
VICTORYSUCCESS
3.0
(2)
Sold
20
Followers
0
Items
2306
Last sold
3 weeks 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