Karteikarten
basic programming techniques
Karten in diesem Stapel (15)
- 1Define the term VARIABLEa memory location used to store a value which can be changed while the program is running.
- 2Define the term CONSTANTa memory location used to store a value which can NOT be changed while the program is running.
- 3Name 3 data typesString
Boolean
integer
Float
Character - 4Define the data type FLOATA float is a decimal number
- 5Define a booleanwhere it only has two outcomes
TRUE
FALSE - 6what is CASTING used forcasting is used to covert one data type into another
**Eg: Int(stringvariable)
would convert a string into an intager.** - 7what is a NUMERICAL OPERATORit is something that is applied to do maths with an INTAGER/FLOAT
- 8name 3 numerical operators// - whole number division
% - returns the remainder
* - multiplies two or more numbers together
+ - adds two or more numbers together
- - minuses two or more numbers - 9name the difference between (MOD) and (DIV)MOD returns the remainder however DIV divides the numbers and gives the closest whole number
- 10what is SELECTION used forUsed to choose between two or more options in a program.
- 11how do we structure selectionwe use IF/THEN/ELSE structure to decide which path the program should take.
- 12what is ITERATIONthe process of repeating a set of instructions of a fixed number of times or until a condition is met.
- 13name 2 types of loopscount controlled loop
condition controlled loop - 14define the term STRINGany sequence of characters (letters,numerals,symbols,punctuation)
- 15define CONCATENATIONThis is used to join two strings together using "+" sign.
Informationen
- Beschreibung
- Karteikarten am basic programming techniques, erstellt von Georgie Sutcliffe am 12/11/2019.
- Erstellt von
- Georgie Sutcliffe · Nov 2019
- Aktualisiert
- 13 Nov 2019
- Aufrufe
- 1
- Bewertung