Karteikarten
Computer Science
Karten in diesem Stapel (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
Informationen
- Beschreibung
- Karteikarten am Computer Science, erstellt von Safwan Ahmed am 12/11/2019.
- Erstellt von
- Safwan Ahmed
- Aufrufe
- 1
- Bewertung
Mehr zu Variables, Constants and Data Types