100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSE 2221 Midterm 1 Exam|89 Questions with Accurate solutions $10.49   Add to cart

Exam (elaborations)

CSE 2221 Midterm 1 Exam|89 Questions with Accurate solutions

 7 views  0 purchase
  • Course
  • CSE 2221
  • Institution
  • CSE 2221

CSE 2221 Midterm 1 Exam|89 Questions with Accurate solutions

Preview 2 out of 7  pages

  • September 26, 2024
  • 7
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CSE 2221
  • CSE 2221
avatar-seller
Nursephil2023
CSE 2221 Midterm 1 Exam|89 Questions
with Accurate solutions
JUnit - - industry-standard library for unit-testing software components

- Javadoc - - Industry-standard documentation utility for Java programs

- Java compiler - - checks the source code of
a program in a .java file; if and only if there are no compile-time errors, it
generates bytecode
for that program and saves it in a .class file

- javac - - A batch-style compiler. Part of the Java Development Kit (JDK)

- Bytecode - - instructions for the Java virtual machine

- Java Virtual Machine - - a virtual computer. Executes your program by
interpreting the bytecode that is loaded

- Significance of JVM - - Portability (write once, run anywhere), universality
(source code doesn't have to be in java), and performance

- public - - anyone can use the class

- final - - no one can incrementally change the class by using inheritance

- String literals - - A sequence of characters...
Character-string constants

- concatenated - - joined together to create new character strings using the
+ operator

- variable - - the name of a "location" that
"stores" a value of a particular type

- type - - the name of the set of all possible values that a variable might
have

- mathematical variable - - an arbitrary but fixed value

- program variable - - a particular value at any one time during program
execution, and that value (generally) may change at other times

- program type - - has a corresponding

, mathematical type that models it

- declare a program variable - - provide a name for a location to store its
value, and indicate its program type

- camel case - - the practice of entering the first word in an object's name in
lower-case and then capitalizing the first letter of each subsequent word in
the name (myLuckyNumber)

- declaring constant inside a method - - use camel case for variable name
(final double myLuckyNumber)

- declaring constant at class level - - use all upper case letters and separate
the words with '_'

- Monte Carlo - - Class of computational methods that use
random sampling to estimate results

- method header - - includes the method's return type, its name, and its
parameter list.

- method name/parameter types - - compromise the method signature

- method body - - the block of code that is executed when the method is
called.

- private - - limits the places from which this static method may be called:
only from within this class

- public - - allow method to be called from other classes, too.

- declared variable inside method - - called a local variable of the method

- int c = gcd(a,b) - - a and b are the arguments to the call of gcd (the ones
in the method are called formal parameters)

- scope of variables - - calling program where the variables are declared

- When you call a method, how are the
arguments connected to the formal
parameters? - - The argument values are copied into the formal
parameters to initialize them

- When the called method body returns, how
are results communicated back to the code
that called the method? - - Only the returned value is copied back to the

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

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77529 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
$10.49
  • (0)
  Add to cart