Unit 4 Vocab Flashcards
Expression
A combination of operators and values that evaluates to a single value
Assignment Operator
Allows a program to change the value represented by a variable
Variable
A named reference to a value that can be used repeatedly throughout a program
Concatenate
to link together or join. Typically used when joining together text Strings in programming (e.g. “Hello, “+name)
String
Any sequence of characters between quotation marks (ex: “hello”, “42”, “this is a string!”).
Boolean Value
A data type that is either true or false
Boolean Expression
in programming, an expression that evaluates to True or False.
Comparison (Relational) Operators
Used to compare two values.
= = equal to
! = not equal to
> greater than
< less than
> = greater than or equal to
< = less than or equal to
Logical Operators
Allow you to compare the results of more than one Boolean operation at a time.
&& and
to evaluate true – both must be true
| | or
to evaluate true – one or both must be true
! not
To evaluate true – not false
Abstractions
a simplified representation of something more complex. Abstractions allow you to hide details to help you manage complexity, focus on relevant concepts, and reason about problems at a higher level.
Used in functions
Function
A named group of programming instructions. Functions are reusable abstractions that reduce the complexity of writing and maintaining programs
Procedure
A named group of programming instructions that may have parameters and return values
Function Call (to invoke a function)
A command that executes the code within a function
High Level Programming Language
A programming language with many commands and features designed to make common tasks easier to program. Any high level functionality is encapsulated as a human can read it
Low Level Programming Language
A programming language that captures only the most primitive operations available to a machine. Anything that a computer can do can be represented with combinations of low level commands