Flashcards
cards
Flashcards do conjunto (8)
- 1What is a variable?Computer programs accept inputs from a user, process them using some constants and output back to the user.
It is a good idea to label various inputs, constants and outputs with descriptive names (the process known as assignment). - 2keywordsinput output
assignment pseudo code
flowchart identifier
variable constant
concatenation memory locations
parameters - 3OperatorsNumbers: addition, subtraction, division, modular division (division with a remainder), integer division, multiplication, to-the-power-of, negation
Boolean: AND, OR, NOT, larger, smaller, equal, not equal
Strings/characters: slicing, length, format - 4keywordsaddition-subtraction-division-negation
modular division-integer division
and-or-not-greater than-less than
equal-not equal - 5keywordsArithmetic-Boolean-string-concatenate
sub string-delimiter-split-left-mid-right
modulus-quotient-exponentiation - 6sequencesSequencing allows a programmer to solve complex tasks through a number of simple steps. The order of steps in most tasks matters – similarly, we use brackets in math to make sure that certain operations are done before others (sometimes we need to add before we do multiplication and division).
- 7advantages and disadvantages of sequencesadvantages: each line follows the next ; create simple program;Easy to follow for a small program;Fundamental principal of a program; - Starts at the top, finishes at the bottom disadvantages:
Not at all efficient; becomes very difficult to follow with large programs ;Extremely hard to maintain - 8selectionThe use of selection allows a computer to “think” – make decisions
Selection changes the flow of a program, depending on a set of conditions, it is used for validation, calculation and making sense of a user’s choices.
Good connection to the topic of Boolean operations and logic gates
Informações
- Descrição
- FlashCards sobre cards, criado por josh mercurius em 31-01-2019.
- Criado por
- josh mercurius
- Visualizações
- 1
- Avaliação