Flashcards
Computer Science flashcards 1
Flashcards do conjunto (7)
- 1What is an Algorithm?An algorithm Is a simple set of instructions or steps that can easily be followed like a recipe.
- 2What is Pseudo code and why is it useful?Pseudocode is a cross between basic english language and coding to make the instructions easily transferable to any programming language.
- 3What are variables and constants?Variable - A piece of stored data that can change at any point during the code.
Constant - A piece of stored data that cannot change once it is set. - 4What are the data types and how are they used?Integer- A whole number with no decimal
Real- A number with a decimal after
Character- A single letter/symbol
String- A collection of characters
Boolean- An answer with 2 choices (Y/N)
Data types are used to differentiate
between groups and make it identifiable. - 5Arithmatic Operators+ = Plus - = Minus
* = Times / = Divide
MOD = The remainder number
DIV = Whole part of division
^ = Exponent - 6Comparison Operators== - Equal to != - Not Equal to
< - Less than > - Greater than
<= - Less than or equal to
>= - Greater than or equal to - 7Logical OperatorsAND - Only True if both inputs are true
OR - True if either inputs are true
NOT - True if the input is false
XOR - True if ONLY 1 input is true
Informações
- Descrição
- FlashCards sobre Computer Science flashcards 1, criado por Connor Jobling em 14-09-2017.
- Criado por
- Connor Jobling · set 2017
- Atualizado
- 15 set 2017
- Visualizações
- 0
- Avaliação