Ohio State Software I (CSE 2221).pdf file:///C:/Users/HP/Desktop/SSSSSSS/Ohio%20State%20Software%
Ohio State Software I (CSE 2221)
1. What command is necessary after you are done using a SimpleReader/Sim-pleWriter?
this
ANS this.close();
2. variable
ANS the name of a "location" that "stores" a value of a particular type
3. type
ANS the name of the set of all possible values that a variable might have
4. program variable
ANS has a particular value at any one time during program execu-tion, and that value
(generally) may change at other times
5. mathematical variable
ANS an arbitrary but fixed value
6. program type
ANS has a corresponding mathematical type that models it
7. declare
1/5
1 of 17 8/30/2024, 3:37
,Ohio State Software I (CSE 2221).pdf file:///C:/Users/HP/Desktop/SSSSSSS/Ohio%20State%20Software%
ANS providing a name for a location to store its value, and indicate its programtype
8. initialize
ANS assigning a variable its value
9. literal
ANS a data value appearing in a program
10. constant
ANS a variable whose value is initialized and never changed
11. operator
ANS a symbol (or combination of a couple symbols) that is used withvariables and values
to simplify how you write certain program expressions
12. expression
ANS a "syntactically well-formed and meaningful fragment" (roughlyanalogous to a word in
natural language)
13. statement
ANS a "smallest complete unit of execution" (roughly analogous to asentence in natural
language).
14. assignment statement
ANS copies the value of the expression on the right side ofthe assignment operator to the
2/5
2 of 17 8/30/2024, 3:37
,Ohio State Software I (CSE 2221).pdf file:///C:/Users/HP/Desktop/SSSSSSS/Ohio%20State%20Software%
variable on the left side
15. block
ANS any sequence of zero or more statements enclosed in {...}
16. conditional statement
ANS if, if-else, if-else-if, switch...
17. loop statement
ANS while, for, do-while
18. random sampling
ANS class of computational methods to estimate results; "throw-ing darts"
19. static method
ANS a block of code with a name, using which it can be called (invoked) to perform its
computation, then "takes over" execution when it is called,until it returns to the calling
program at the point it was called
20. path of execution
ANS going through a method, ending in a return statement withan expression of the return
type of the method
21. scope
ANS the block where variables are declared
3/5
3 of 17 8/30/2024, 3:37
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 TIPSCORE. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.99. You're not tied to anything after your purchase.