Flashcards
Computer Science
Cards in this deck (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
Information
- Description
- Flashcards on Computer Science, created by Safwan Ahmed on 12/11/2019.
- Created by
- Safwan Ahmed
- Views
- 1
- Rating
More on Variables, Constants and Data Types