100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSE240 MIDTERM EXAM ACTUAL QUESTIONS AND ANSWERS WITH COMPLETE SOLUTIONS VERIFIED $10.99   Add to cart

Exam (elaborations)

CSE240 MIDTERM EXAM ACTUAL QUESTIONS AND ANSWERS WITH COMPLETE SOLUTIONS VERIFIED

 9 views  0 purchase
  • Course
  • Institution

CSE240 MIDTERM EXAM ACTUAL QUESTIONS AND ANSWERS WITH COMPLETE SOLUTIONS VERIFIED Learning the concepts, logic and problem solving of programming unlocks our ability to learn knew languages. true Reliability speaks to how easily a programmer can express themselves reliably within the language. ...

[Show more]

Preview 4 out of 32  pages

  • November 5, 2024
  • 32
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
avatar-seller
CSE240 MIDTERM EXAM ACTUAL QUESTIONS AND

ANSWERS WITH COMPLETE SOLUTIONS VERIFIED

Learning the concepts, logic and problem solving of programming unlocks our

ability to learn knew languages.

true

Reliability speaks to how easily a programmer can express themselves reliably

within the language.

false

Sort Orthogonality

One-to-many: a command from one set can combine with all commands from another

set (e.g. array of integers)

Compositional Orthogonality

Many-to-many: all commands in a set can be combined with all commands from another

set (e.g. create a variable and type; int var = 2)

Number Orthogonality

Define 0 or more (e.g. creating a class with properties)

C++ was designed to bring Object Orientation to C. In fact it was originally

released with the unimaginative name "C with Classes"

true

When evaluating a programming language the category Efficiency describes:

,The 'first concern' historically. Concerned with how fast the code compiles and run

There was an early focus on efficiency due to early programmable computers

being themselves fairly inefficent being limited in power and storage.

true

When evaluating a programming language the category Reliability describes:

This concept is concerned with the internal safety and consistency of the language ...

type checking, exceptions, etc.

When evaluating a programming language the category Writeability describes:

This concept is concerned with the actual production of code and the ability of the

programmer to easily use the language... syntax, abstraction, expressivity ...

What computing paradigm can solve a problem by describing the requirements,

without writing code in a step-wise fashion to solve the problem.

logic

What is the major improvement of structured programming languages over the

earlier programming languages?

Removing Goto statement from the language.

What programming paradigm does Fortran belong to?

imperative

What is a feature of object-oriented computing?

encapsulation of states

Event-driven computing paradigm is to

define a set of events and write an event handler for each event.

In contrast to Web 1.0, what is the key function of Web 2.0?

,Web is the computing platform

What programming language characteristics impact the readability of the

programs written in this language?

Syntax design

Data structures

Control structures

Given this snippet of code in Java

char alpha = 'a';int numeric = alpha + 10;

which of the following statement is correct:



Syntactically incorrect and contextually incorrect.

Syntactically correct, but contextually incorrect.

Syntactically correct and contextually correct.

Syntactically incorrect, but contextually correct.

Syntactically correct, but contextually incorrect.

For the following BNF ruleset, which are terminal symbols? (Check all that apply.)

<char> ::= a | b | c | ... | x | y | z

<identifier> ::= <char> | <char> <identifer>



y

|

<identifier>

, ::=

a

y

a

Can the identifier "base_variable" be created from the following BNF ruleset?

<char> ::= a | b | c | ... | s | ... | x | y | z

<identifier> ::= <char> | <char> <identifer>

No - there is an underscore in the identifier name that cannot be generated.

If a program contains an error that divides a number by zero at the execution

time. This error is a

semantic error

Given:

Very Simple Programming Language (VSPL)

<char> ::= a | b | c | ... | z | 0 | 1 | ... | 9

<operator> ::= + | - | * | / | % | < | > | == | >= | <=

<variable> ::= <char> | <char> <variable>

<expr> ::= <variable> <operator> <variable> | ( <expr> ) <operator> ( <expr> )

<assign> ::= <variable> = <expr>;

<statements> ::= <assign> | <assign> <statements>



The following is valid:(a+b) = (x*y);

false

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

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

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

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 AcademicSuperScores. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $10.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

72042 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling

Recently viewed by you


$10.99
  • (0)
  Add to cart