CSE 240 Midterm Questions And Answers Already Graded A+
5 views 0 purchase
Course
CSE 240
Institution
CSE 240
What is the main reason of applying two-step translation of high level programming
language? - ️️One compiler for all machines
What programming language characteristics impact the readability of the programs
written in this language? - ️️Control structures, Syntax design, and Data Struct...
CSE 240 Midterm
What is the main reason of applying two-step translation of high level programming
language? - ✔️✔️One compiler for all machines
What programming language characteristics impact the readability of the programs
written in this language? - ✔️✔️Control structures, Syntax design, and Data Structures
What computing paradigm enforces stateless (no variable allowed) programming? -
✔️✔️Functional
What is the major improvement of structured programming languages over the earlier
programming languages? - ✔️✔️Removing Goto statement from the language
What key feature of programming languages is supported by C++, but not Java? -
✔️✔️Pointers
In contrast to Web 1.0, what is the key function of Web 2.0? - ✔️✔️Web is the
computing platform
What is a feature of object-oriented computing? - ✔️✔️encapsulation of states
What programming languages better prepare you for leaning database query languages
such as SQL and LINQ? - ✔️✔️Prolog and Scheme
Event-driven computing paradigm is to: - ✔️✔️define a set of events and write an event
handler for each event
Given the following code, what is the expected value for z?
#include <stdio.h>
#define func(x, y) (x > y) ? y : x
int main()
{
int x = 10;
int y = 9;
int z = func(++x, y++);
} - ✔️✔️10
, Explicit type conversion is commonly referred to as __________ . - ✔️✔️Casting.
If you like to see accurate debugging information, which of the following program
processing would you recommend? - ✔️✔️Interpretation
Can the identifier "base_variable" be created from the following BNF ruleset?
<char> ::= a | b | c | ... | s | ... | x | y | z
<identifier> ::= <char> | <char> <identifier> - ✔️✔️No - there is an underscore in the
identifier name that cannot be generated.
ow many different identifiers can the following BNF ruleset generate?
<char> ::= a | b | c | ... | x | y | z
<identifier> ::= <char> | <char> <identifier> - ✔️✔️More than 26.
Which commands (constructs) do NOT have a loop when expressed in syntax graphs?
Select all that apply - ✔️✔️If-then-else, for ( <init-expr>; <test-expr>; <increment-expr>
) {<statements>} , while (condition) do {statements;}
Given this snippet of code in C,
char alpha = 'a';
int numeric = alpha + 10;
which of the following statement is correct: - ✔️✔️Syntactically correct, but contextually
incorrect.
What is "func" in this example?
#include <stdio.h>
#define func(x, y) (x > y) ? y : x
int main()
{
int x = 10;
int y = 9;
int z = func(x, y);
} - ✔️✔️A macro
Which implementation of a function has potentially the best performance in terms of
execution speed? - ✔️✔️macro
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller ACADEMICMATERIALS. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $7.99. You're not tied to anything after your purchase.