(Done) 2. Programming Flashcards

1
Q

What are the five main data types

A
  • String
  • Integer
  • Boolean
  • Character
  • Float
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What data is a string

A
  • A collection of characters
  • Used to represent text
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What data is an integer

A
  • Whole numbers only
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What data is boolean

A
  • One of two values, usually true or false
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What data is a character

A
  • A single letter, number, symbol
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What data is a float

A
  • Numbers that have a decimal point
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How much memory does an integer use

A
  • 2 or 4 bytes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How much memory does a float use

A
  • 4 or 8 bytes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How much data does Boolean use

A
  • 1 bit is needed but 1 byte is used
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How much data does a character use

A
  • 1 byte
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How much data does a string use

A
  • 1 byte per character in a string
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Define a constant

A
  • A constant is assigned a data value at design time that can’t be changed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How is SELECT used in SQL

A
  • Followed by the names of the fields(columns) you want to retrieve and display
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How is FROM used in SQL

A
  • Followed by the names of the table(s) you want to search
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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