(Done) 2. Programming Flashcards
1
Q
What are the five main data types
A
- String
- Integer
- Boolean
- Character
- Float
2
Q
What data is a string
A
- A collection of characters
- Used to represent text
3
Q
What data is an integer
A
- Whole numbers only
4
Q
What data is boolean
A
- One of two values, usually true or false
5
Q
What data is a character
A
- A single letter, number, symbol
6
Q
What data is a float
A
- Numbers that have a decimal point
7
Q
How much memory does an integer use
A
- 2 or 4 bytes
8
Q
How much memory does a float use
A
- 4 or 8 bytes
9
Q
How much data does Boolean use
A
- 1 bit is needed but 1 byte is used
10
Q
How much data does a character use
A
- 1 byte
11
Q
How much data does a string use
A
- 1 byte per character in a string
12
Q
Define a constant
A
- A constant is assigned a data value at design time that can’t be changed
13
Q
Define a variable
A
- A named memory address that holds a value
- The value held in a variable can change as the program is running
14
Q
How is SELECT used in SQL
A
- Followed by the names of the fields(columns) you want to retrieve and display
15
Q
How is FROM used in SQL
A
- Followed by the names of the table(s) you want to search
16
Q
How is WHERE used in SQL
A
- Used to specify conditions that a record must satisfy before it is returned
17
Q
What does SQL stand for
A
structured query language