Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 10 pages
Exam (elaborations)

Ohio State: Software I (CSE 2221) Questions with 100% Correct Answers

Document preview thumbnail
Preview 2 out of 10 pages

Ohio State: Software I (CSE 2221) Questions with 100% Correct Answers

Content preview

1




Ohio State: Software I (CSE 2221)
Questions with 100% Correct Answers
What command is necessary after you are done using a
SimpleReader/SimpleWriter?


this_____ Correct Answer: this.close();


variable Correct Answer: the name of a "location" that "stores" a value of a
particular type


type Correct Answer: the name of the set of all possible values that a variable
might have


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


mathematical variable Correct Answer: an arbitrary but fixed value


program type Correct Answer: has a corresponding mathematical type that
models it


declare Correct Answer: providing a name for a location to store its value, and
indicate its program type


initialize Correct Answer: assigning a variable its value


literal Correct Answer: a data value appearing in a program




:
vPretest - Stuvia US

, 2




constant Correct Answer: a variable whose value is initialized and never
changed


operator Correct Answer: a symbol (or combination of a couple symbols) that is
used with variables and values to simplify how you write certain program
expressions


expression Correct Answer: a "syntactically well-formed and meaningful
fragment" (roughly analogous to a word in natural language)


statement Correct Answer: a "smallest complete unit of execution" (roughly
analogous to a sentence in natural language).


assignment statement Correct Answer: copies the value of the expression on the
right side of the assignment operator to the variable on the left side


block Correct Answer: any sequence of zero or more statements enclosed in {...}


conditional statement Correct Answer: if, if-else, if-else-if, switch...


loop statement Correct Answer: while, for, do-while


random sampling Correct Answer: class of computational methods to estimate
results; "throwing darts"


static method Correct Answer: 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


path of execution Correct Answer: going through a method, ending in a return
statement with an expression of the return type of the method

:

vPretest - Stuvia US

Document information

Uploaded on
November 17, 2025
Number of pages
10
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$13.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
7
Followers
0
Items
4111
Last sold
2 weeks ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions