100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSE 2221 Final UPDATED Exam Questions and CORRECT Answers $11.49
Add to cart

Exam (elaborations)

CSE 2221 Final UPDATED Exam Questions and CORRECT Answers

 0 purchase
  • Course
  • CSE 2221
  • Institution
  • CSE 2221

CSE 2221 Final UPDATED Exam Questions and CORRECT Answers Java language - CORRECT ANSWER Virtual Machine compiler - CORRECT ANSWER - widely used, object-oriented, run through Java - checks the source code of a program in a .java file; if and only if there are no compile-time errors...

[Show more]

Preview 3 out of 25  pages

  • March 7, 2025
  • 25
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CSE 2221
  • CSE 2221
avatar-seller
MGRADES
CSE 2221 Final UPDATED Exam Questions
and CORRECT Answers
Java language - CORRECT ANSWER - widely used, object-oriented, run through Java
Virtual Machine


compiler - CORRECT ANSWER - 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


Java Virtual Machine - CORRECT ANSWER - a ubiquitous virtual computer, launcher of
JVM loads the JVM and your program's .class files, JVM executes program by interpreting
bytecode that was loaded


Java end-to-end - CORRECT ANSWER - .java (source code) --> .class (bytecode) -->
JVM


block - CORRECT ANSWER - section of code between { and }



statement - CORRECT ANSWER - symbols in Java grammar, ending with ;



class - CORRECT ANSWER - declares the code to be a software component for which
bytecode should be generated by the compiler


main method header - CORRECT ANSWER - public static void main(String[] args)



declare - CORRECT ANSWER - provide a name for a location to store the variable's value
and indicate its program type


literal - CORRECT ANSWER - a data value appearing in a program

,method signature - CORRECT ANSWER - includes return type, name, and parameter list



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


private - CORRECT ANSWER - can be called only within this class



public - CORRECT ANSWER - can be called from other classes



formal parameters - CORRECT ANSWER - stated in the method signature



arguments - CORRECT ANSWER - the actual values passed to the method



when a method is called - CORRECT ANSWER - argument values are copied to formal
parameters, control is transferred to the beginning of the method body


parameter-passing mechanism of Java - CORRECT ANSWER - may be termed "call-by-
copying" because argument values are COPIED into formal parameters, may be termed "call-by-
value" because argument VALUES are copied into formal parameters


find sqrt(x) - CORRECT ANSWER - Let r be my first guess for sqrt(x)
Let 1/2(x/r+r) be my next guess
Continue halving the interval, squaring your current guess to see how close it is to x


array - CORRECT ANSWER - a group of similar variables, all of the same type, and with
systematically related names that involve special syntax
(a reference type, the name of this group is a reference to the entire collection of element
variables)

, element - CORRECT ANSWER - one value in an array, acts like a single variable



declaring an array - CORRECT ANSWER - int[] a;



declaring and creating an array - CORRECT ANSWER - int[] a = new int[4];



declaring and initializing an array - CORRECT ANSWER - int[] a = {6, 18, 9, -10};



static method - CORRECT ANSWER - has zero or more formal parameters of various
types, returns a value of a particular return type to the calling program (or nothing if it's void)


system - CORRECT ANSWER - any part of anything that you want to think about as an
indivisible unit


interface - CORRECT ANSWER - a description of the "boundary" between a system and
everything else, that also describes how to think of that system as a unit


subsystem - CORRECT ANSWER - (component), a system that is used inside (i.e. as a
part of) another system


client - CORRECT ANSWER - a person (or a role played by some agent) viewing the
system from the outside as an indivisible unit


implementer - CORRECT ANSWER - a person (or a role played by some agent) viewing
the system "from the inside" as an assembly of subsystems/components


information hiding - CORRECT ANSWER - a technique for describing system behavior in
which you intentionally leave out "internal implementation details" of the system

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

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

71250 documents were sold in the last 30 days

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

Start selling
$11.49
  • (0)
Add to cart
Added