General terms for programming Flashcards
What is a type?
A general term to determine the kind of value you’re using.
Give examples of types?
Strings, booleans, integers, characters, floating point numbers
What does an integer represent?
A whole number
What does floating point represent?
A number with fractional parts
What is a string?
A sequence of characters
What characterises a boolean expression?
It is either true or fale
True and False are special in what way?
They are their own special values that belong to type Bool
= is what?
An assignment operator
== is what?
relational operator to determine if the object to the left has the same value as the object to the right
what are the three logical operators
and, or, not
What do conditional statements allow?
Code blocks can be executed depending on certain scenarios
A header (if) followed by a block of code is what kidn of statement?
A compound statement
Alternatives (if, else) can be described as being…
branches
Multiple if statements in the form of elif can be described as being…
chained conditions
An if statement with another if statement is what?
Nested