Programming Paradigms Flashcards
What is branching?
This is an instruction in a program that can cause a computer to begin executing a different instruction sequence, executing instructions in the order that is right.
What is a language-defined data type?
Also known as a built-in data type, these are data types that are included with the language that you are using to write code.
Alphanumeric Strings?
A string that contains both letters and numbers, and sometimes also special characters.
Boolean?
A result that can only have one of two possible values: true or false.
Characters?
A unit of information that roughly corresponds to a grapheme, grapheme-like unit, or symbol.
Floating Point (Real)?
A function or reusable code in the python programming language that converts values into floating point numbers.
Integers?
A sequence of digits optionally prefixed with + or -. Also only whole numbers.
Strings?
A string data type used in programming, that is used to represent text rather than numbers.
What is a user-defined data type?
The opposite of built-in data types is user-defined data types.
Of which these data types have to be defined by the user.
Array?
A data structure consisting of a collection of elements (values or variables), each identified by at least one array index or key.
Objects?
An object is a data structure or abstract data type containing fields (state variables containing data) and methods (subroutines or procedures defining the object’s behavior in code).
Records?
A record is a programmer-defined data type.
Sets?
A mutable collection of distinct (unique) immutable values that are unordered.
Different types of variables?
- Local variables
- Global variables
Difference between variables and constants?
A constant is a named data item with a predefined value, while a variable is a named data item whose value can change during program execution.