Flashcards
Computer Science
Flashcards do conjunto (5)
- 1What is a variable?A variable is a memory location used to store a value-it can be changed while the program is running.
- 2What is a constant?A constant is a memory location that is used to store a value-it cannot be changed while the program is running.
- 3What are all the common data types?The common data types are: string, integer, float and Boolean
- 4What is casting and why would it be used?Casting is used to change a variables' data types. A reason we use casting would be that we would need to convert an integer into a string.
- 5What is the difference between modulus and quotient.Modulus is whole number division. It will give you a whole number when dividing. eg 21//4=5.
Modulus just gets you the rem
Informações
- Descrição
- FlashCards sobre Computer Science, criado por Safwan Ahmed em 12-11-2019.
- Criado por
- Safwan Ahmed
- Visualizações
- 1
- Avaliação
Mais sobre Variables, Constants and Data Types