Engr 103 Study Guide With
Complete Solution
Algorithm - ANSWER A set of instructions to perform a task or solve a
problem, must be precise enough for a computer to execute
your code
Computation - ANSWER When a computer executes an algorithm
"run" or \.program.py
Semantics - ANSWER Refers to meaning, concepts/vocabulary used across
programming languages
Syntax - ANSWER Programming language specific, like a grammar that a
compiler can recognize
Input - ANSWER The data or information passed into a computational system
before a program is run
e.g., input()
Output - ANSWER The data or information passed out of a computational
system once the computation is complete
e.g., print()
Execution - ANSWER The process by which a computer interprets our
program or performs the instructions of our program
Interactivity - ANSWER The ability of the code to detect events from a user,
,e.g., mouse clicks, sensor-based information
Identifier - ANSWER Name given to item in program
letters and _
Value - ANSWER Value assigned to identifier
Memory location - ANSWER Location where identifier and value are stored
Variable - ANSWER Memory location with name and type to store value, A
representation for a value.
Value (2nd) - ANSWER e.g. 'flower' or 237
Identity - ANSWER Unique memory location
id()
Type - ANSWER Description of the information that guides how a
programming language interprets the content
Type()
String - ANSWER A sequence of characters
string()
Integer - ANSWER Whole numbers
Int()
Float - ANSWER Floating point numbers
float ()
Boolean - ANSWER Considered numeric type, value can be True or False
, True (1), False (0)
Assignment Statement - ANSWER This is how we get the value in the variable
identifier
=
Constant - ANSWER A term without a variable
use all caps
Function - ANSWER A block of code which only runs when it is called
Operators - ANSWER Operators are used to perform operations on variables
and values
Operands - ANSWER Values in the expression
Expression - ANSWER Particular instantiation of operators and operands
Evaluation - ANSWER Process of obtaining results from operations on
operands
Return value - ANSWER The output of a function or operation
Mathematical Operators - ANSWER -Add
-Subtract
-Multiply
-Divide
-Remainder
-Floor division
-Exponential
Complete Solution
Algorithm - ANSWER A set of instructions to perform a task or solve a
problem, must be precise enough for a computer to execute
your code
Computation - ANSWER When a computer executes an algorithm
"run" or \.program.py
Semantics - ANSWER Refers to meaning, concepts/vocabulary used across
programming languages
Syntax - ANSWER Programming language specific, like a grammar that a
compiler can recognize
Input - ANSWER The data or information passed into a computational system
before a program is run
e.g., input()
Output - ANSWER The data or information passed out of a computational
system once the computation is complete
e.g., print()
Execution - ANSWER The process by which a computer interprets our
program or performs the instructions of our program
Interactivity - ANSWER The ability of the code to detect events from a user,
,e.g., mouse clicks, sensor-based information
Identifier - ANSWER Name given to item in program
letters and _
Value - ANSWER Value assigned to identifier
Memory location - ANSWER Location where identifier and value are stored
Variable - ANSWER Memory location with name and type to store value, A
representation for a value.
Value (2nd) - ANSWER e.g. 'flower' or 237
Identity - ANSWER Unique memory location
id()
Type - ANSWER Description of the information that guides how a
programming language interprets the content
Type()
String - ANSWER A sequence of characters
string()
Integer - ANSWER Whole numbers
Int()
Float - ANSWER Floating point numbers
float ()
Boolean - ANSWER Considered numeric type, value can be True or False
, True (1), False (0)
Assignment Statement - ANSWER This is how we get the value in the variable
identifier
=
Constant - ANSWER A term without a variable
use all caps
Function - ANSWER A block of code which only runs when it is called
Operators - ANSWER Operators are used to perform operations on variables
and values
Operands - ANSWER Values in the expression
Expression - ANSWER Particular instantiation of operators and operands
Evaluation - ANSWER Process of obtaining results from operations on
operands
Return value - ANSWER The output of a function or operation
Mathematical Operators - ANSWER -Add
-Subtract
-Multiply
-Divide
-Remainder
-Floor division
-Exponential