Fichas
Computer Science
Fichas del 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
Información
- Descripción
- Fichas sobre Computer Science, creado por Safwan Ahmed el 12/11/2019.
- Creado por
- Safwan Ahmed
- Visitas
- 1
- Valoración
Más sobre Variables, Constants and Data Types