100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CSE 2221 Midterm 1 Review Exam/79 questions with answers $8.49   Add to cart

Exam (elaborations)

CSE 2221 Midterm 1 Review Exam/79 questions with answers

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

CSE 2221 Midterm 1 Review Exam/79 questions with answers

Preview 2 out of 5  pages

  • September 26, 2024
  • 5
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CSE 2221
  • CSE 2221
avatar-seller
Nursephil2023
CSE 2221 Midterm 1 Review
Exam/79 questions with answers
Algorithm - - step-by-step description on how to solve a problem

- Computer Program - - tells a computer, in minute detail, the sequence of
steps that are needed to fulfill a task

- RSS 2.0 - - well-formed XML

- <item> in RSS - - must have <title> and <description> tag

- label() method in XML - - gives the name of the that element

- Compile-time error - - Occur due to inaccuracies in the code, before the
program has compiled

- Run-time error - - Syntactically correct, and the program runs, but take an
action the programmer didn't intend; sometimes lead to program crashes

- Classes - - fundamental building blocks of java program

- Methods - - Part of classes, contain a sequence of instructions

- public static void main (String [] args) - - "Main" program where most
statements are executed

- close() - - method to close input/output stream; must always close
input/output stream

- concatenated - - joining two strings together

- literals - - values that literally appear in your program (like "true" for a
boolean variable)

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

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

- program variable - - has a particular value during program execution, but
that value may change during any time

- mathematical variable - - has an arbitrary but fixed value

, - program type - - has mathematical type that models it

- Declaring a variable - - must provide a name for its location to store a
value, and its program type

- Initializing a variable - - To initialize a variable, you assign it a value

- Constant - - value is initialized and never changed; have "final in front of
them (Ex. final int pi = 3.14;)

- Operator - - symbol(s) that is used with variables and values to simplify
how you write certain program expressions

- Expression - - syntactically well-formed and meaningful fragment (Ex.
keyBoardIn.nextLine()); analogous to a word in English

- Statement - - smallest complete unit of execution; terminated with a semi-
colon; analogous to a sentence in English (j+=7;)

- Assigment statement form - - variable = expression;

- block - - any sequence of zero or more statements enclosed in a set of
{...}

- Conditional/selection statements - - if;if-else;if-else-if;switch

- Loop/iteration statements - - for;while; do-while

- Best practice for (b==true) - - b

- Best practice for (b==false) - - !b

- test - - the condition a while loop or if-else structure

- To create a set of random values in a range - - (Math.random()*(max-min))
+ min

- To check whether a point lies in a circle - - if(x*x + y * y <= radius)
{
hits++;
}
(where x = min + (max-min)*Math.random() and y = min + ( max-
min)*Math.random()

- static method - - a block of code with a name, that can be "called" to
perform its computation

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 $8.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
$8.49
  • (0)
  Add to cart