CSE 2221 Midterm 1 Exam/37 Questions
with solutions
literal - - a value assinged to a varible like String str = "hello" or int num =
50
- Java compiler - - checks the source code of a program in a .java file
- Java Virtual Machine - - it exxecutes your program by interpreting the
bytecode that is loaded
- Benefits of JVM - - - portability: write one run anywhere
- universaility: program souce code need not be in Java
- performance: very small penalty in performance
- variable - - 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
- program variable - - has a particular value
at any one time during program execution,
and that value (generally) may change at
other times
- mathematical variable - - stands for an
arbitrary but fixed value
- constant - - A variable whose value is initialized and
never changed
- operator - - a symbol that is used with variables and values to simplify
how you writer certain program expressions
- expression - - syntactically well-formed and meaningful fragment
i
j+7
"Hello" + " World!"
- statement - - smallest complete unit of execution
i = 12
j += 7
k++;
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 Nursephil2023. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $8.49. You're not tied to anything after your purchase.