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 7 pages
Exam (elaborations)

CSE 1321 EVALUATION EXAM 2026.pdf

Document preview thumbnail
Preview 2 out of 7 pages

CSE 1321 EVALUATION EXAM

Content preview

CSE 1321 EVALUATION EXAM 2026/2027 QUESTIONS
AND SOLUTIONS RATED A+
✔✔abstraction - ✔✔In computing:
-Abstraction refers to the LOGICAL GROUPING of
concepts or objects
-We want to hide the details (in functions - later)
-We like to think at a high level of abstraction (no details)
-Too many details overwhelm us!

✔✔Algorithms can be created using - ✔✔-Natural language (e.g. English)
-Pictures or flowcharts
-Pseudocode or a specific programming language

✔✔Pseudocode - ✔✔-It's a mixture of languages
-Not concerned with syntax, but concepts

✔✔Any computing algorithm will have AT MOST five kinds of components: - ✔✔-Data
structures to hold data
• Instructions to change data value
• Conditional expressions to make decisions
• Control structures to act on decisions
• Modules to make the algorithm manageable by abstraction (i.e., grouping related
components)

✔✔A good algorithm exhibits - ✔✔precision, clarity, completeness, correctness, and
simplicity.

✔✔An algorithm is just - ✔✔a set of instructions

✔✔Abstraction is just - ✔✔the level of detail

✔✔Skeleton programs: - ✔✔-Are the smallest program you can write
-Are the minimal amount of code that compiles
-Do NOTHING
-Define the entry/starting point of the program

✔✔A variable: - ✔✔-Is a chunk of the computer's memory
-Can hold a value
-Is of a particular "type"
Integer
Floating point number
Character
String - which is just text

, ✔✔Variables: Usually, it's two steps: - ✔✔-"Declare" the variable - tell the computer
what it is (do this only once)
-Assign values to the variable

✔✔Basic Operators - ✔✔Math Operators
Addition (+)
Subtraction (-)
Multiplication (*)
Division (/)

✔✔An ------ is a combination of one or more operators and operands - ✔✔expression

✔✔It has both a data type and a value that results from the expression evaluation -
✔✔expression

✔✔Operands may be: - ✔✔- literals
-constants
-variables

✔✔Arithmetic Operators - ✔✔+ addition
- subtraction
* multiplication
/ division
% modulus (say what?)

✔✔When dividing two integer values: - ✔✔- the quotient is an integer
-the remainder is truncated (discarded)

✔✔To get the ------, use the modulus operator with the same operands - ✔✔remainder

✔✔Operator Precedence - ✔✔Left-to-right operations
- multiplication, division and modulus
- addition and subtraction (example 3 + 3)
- string concatenation ("Hello, " + "world!")
Right-to-left operations
- unary plus and unary minus (example, +1 or -1)
- assignment

✔✔Variable = expression; - ✔✔1) the expression on the right side of the = operator is
evaluated Expression has data type and value

2) the result is stored in the variable on the left if the types are compatible (overwriting
the original value)

✔✔Shortcut Operators - ✔✔++ increment by 1

Document information

Uploaded on
July 21, 2026
Number of pages
7
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$17.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

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
BOARDWALK
3.5
(40)
Sold
276
Followers
8
Items
32861
Last sold
6 hours 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