W3D1 Flashcards

1
Q

What is a programming paradigm?

A

Is a way to classify the programming language according to their style.

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

What are 2 programming paradigms in Ruby?

A
  1. Imperative Programming: This style feeds step by step instructions for the computer to execute by explicitly writing each command.
  2. Declarative Programming: This style will describe the results that you want to achieve without explicitly writing the steps.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does RDBMS stand for and what do they do?

A

Relational Database Management Systems is a way to organize data and their relationships, persists data, and query data.

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

What does query mean?

A

A set of instructions that describes what data to retrieve from a given data source.

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

What is persistence?

A

Persistence is the characteristic of state that outlives the process that created it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you persist state?

A

To persist data, you must store the state as data in a database or data storage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is used as the unique identifier of a table row?

A

The primary key and by convention it is the id.

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

Describe the table.

A

Each table is a type of resource. Each row in a table is an instance of that resource and each column is data that is associated to each instance of said resource.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a database schema?

A

A database schema is the organizational design of your database tables and columns.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the 3 things you must decide on when implementing a database schema?

A
  1. ) The tables you will have
  2. ) What data columns to have
  3. ) The data type of each of those columns
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a foreign key?

A

A foreign key is a value in a database table whose responsibility is to point to a row in a different table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does SQL stand for and what does it do?

A

SQL stands for Structured Query Language and is a domain specific language used to manage data held in RDBMS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the naming convention of SQL tables?

A

snake_case and pluralized

How well did you know this?
1
Not at all
2
3
4
5
Perfectly