Finals - L5 - Persistent Storage Database Flashcards

1
Q

What is the crucial component that manages communication
between the memory and the processor in a computer
system?

Example: CPU (cache) and RAM (1 and 0)

A

Memory Controller

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

This performs a particular function. What term is this?

Example: WEB, CLI/CONSOLE, GUI

A

Applications

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

What is the supplementary memory system that temporarily (not persistent) stores frequently used instructions and data for quicker processing?

A

Caching

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

What is any data storage device that retains data after power to that device is shut off?

A

Persistent Storage

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

What is this called?
* This is a database stored in a file called a flat file.
* There are no structures for indexing or recognizing relationships
between records.

Example:
.txt/.csv
This is not structured

A

Flat-file database

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

What is the kind of database used by the examples below?
* SQL-based
* sqlite
* Oracle
* MSSQL server
* MySQL

A

Structured Database

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

EACH DATABASE HAS OWN blank

Example:

Microsoft sql server ———————-ssms- sql server management
studio
Mysql —————————————management studio -
PHPmyadmin

A

MANAGEMENT SUITE

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

Workbench
blank is the hostname or the computer that is
currently in use to run a program, in which the computer has the role as a virtual server.
* Anyhost —- IP Address

A

Localhost—127.0.0.1

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

What are the type of constraints used to specify rules for the data in a table?
* These constraints are used to limit the type of data
that can go into a table. This ensures the accuracy and
reliability of the data in the table.

A

SQL constraints

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

IDENTIFY THE MOST COMMON SQL DATA TYPE:

NUMERIC DATA
blank – Stores numeric values from -2147483648 to
2147483647
blank – Stores numeric values with decimals with lower floating
point that float.
blank – Stores numeric values with decimals with a high floating point
blank – Stores TRUE = 1 or FALSE = 0

A
  • INTEGER / INT
  • DOUBLE
  • FLOAT
  • BOOL
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

IDENTIFY THE MOST COMMON SQL DATA TYPE:

TIME DATA
blank – Stores Date in the format YYYY-MM-DD.
blank – Stores Time in the format hh:mm:ss
blank – Stores Date and time in the format YYYY-MM-DD
hh:mm:ss.

MISCELLANEOUS DATA
blank – Stores large binary data

A

TIME DATA
* DATE
* TIME
* DATETIME

MISCELLANEOUS DATA
* BLOB

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

IDENTIFY THE MOST COMMON SQL DATA TYPE:

TIME DATA
blank – Stores Date in the format YYYY-MM-DD.
blank – Stores Time in the format hh:mm:ss
blank – Stores Date and time in the format YYYY-MM-DD
hh:mm:ss.

MISCELLANEOUS DATA
blank – Stores large binary data

A

TIME DATA
* DATE
* TIME
* DATETIME

MISCELLANEOUS DATA
* BLOB

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

What is the command used to create objects in the database?

A

Create

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

What is the command used to create a table in the MySQL server?

A

CREATE TABLE

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

What are the 2 commands to log into the MySQL server?

A
  • mysql -u root -p
  • CREATE DATABASE database1
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the command used to insert data into the MySQL server?

A

INSERT INTO

17
Q

The blank statement is used to modify the existing records in a
table.

SYNTAX EXAMPLE:
~~~
UPDATE employee SET firstname=’Darna’, lastname=’Wonderwoman’, yearhired=2010
where empid=2
~~~

A

UPDATE

18
Q

The blank statement is used to delete existing records in
a table.

SYNTAX EXAMPLE:

DELETE FROM table_name WHERE condition;

A

DELETE