Flashcards
Programming
Flashcards do conjunto (4)
- 1Programming Arithmetic Operators"+" is Addition (Eg. x=5+6 gives 11)
"-" is Subtraction (Eg. x=7-3 gives 4)
"*" is Multiplication (Eg. x=12*1 gives 12)
"/" is Division (Eg. 35/5 gives 7)
"MOD" is modulus [The remainder when shared] (17MOD4 gives 1)
"DIV" is Quotient [The number it can be shared equally between] (Eg. 17DIV4 gives 4)
"^" is Exponentiation [To the power] (Eg. 3^4 gives 81) - 2Comparison Operators"==" is Equal to (Eg. 2==2)
"!=" is Not equal to (Eg. 4!=3)
"<" is Less than (Eg. 5<7)
"<=" is Less than or equal to (Eg. 6<=8)
">" is More than (Eg. 9>3)
">=" is More than or equal to (Eg. 5>=1) - 3Logical Operators"AND" means that both comparisons are True (Eg. 6==6 AND 2!=7)
"OR" means that at least one of the comparisons are True (Eg. 4<8 OR 3==2)
"NOT" flips the results of the comparison (Eg. NOT 2==2)
"XOR" is exclusive OR - only 1 comparison is True (Eg. 1<=4 XOR 3==7) - 4Data TypesInteger = A whole number (Eg. 25)
Real/Floating Point = A number with a fractional part (Eg. 34.6)
Character = A single letter, number or special character (Eg. C)
String = One or more letter, number or character (Eg. %&)
Boolean = A Variable which cam hold a True or False value (Eg. True (1))
Informações
- Descrição
- A level Computing FlashCards sobre Programming, criado por Jasmine Ortiz em 14-09-2017.
- Criado por
- Jasmine Ortiz
- Visualizações
- 0
- Avaliação