Question | Answer |
What are integers? How many bits are they represented by? | Integers are whole numbers and are usually represented by 32 bits. This is split between positive and negative so ranges from -2,147,483,648 to 2,147,483,647. |
What are Real numbers? How many bytes are they represented by? | Real numbers or floating point (floats) are numbers with decimals. They can either be short - 4 bytes or long - 8 bytes. |
What is a boolean and what is it used for? | Booleans are a data structure that represents either Yes or No (or alternatively True or False). |
What is a Char? | A Char is short for Character and holds the ASCII value for a character like "A" or "&", they are one byte long. |
What is a string? How many bytes does it take to represent? | A string is a one dimensional array that is used to store anything without numeric value like a word or a phone number. One character is represented by one byte so an 11 digit phone number will be represented by 11 bytes. |
Want to create your own Flashcards for free with GoConqr? Learn more.