Databases Flashcards

Objective 5

1
Q

Given the info: Which of the following is descriptive of both tables?

Table A

ID Name

01 John

02 Ann

Table B

ID Address Phone Number

01 5555 John Lane 555-555-1234

02 7777 Ann Boulevard 777-777-4321

A. The database uses a flat file structure.

B. The database uses SQL.

C. The data most likely exists within a relational database.

D. The data is corrupted and is being shown as two sets.

A

C. The data most likely exists within a relational database.

Both tables A and B exhibit a relational structure. They contain related data organized into rows and columns, with a common identifier (ID) linking the records in the tables. This structure is characteristic of relational databases, where data is organized into tables, and relationships between tables are established using keys.

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

Which of the following is an advantage of a flat file?

A. Variety of data

B. Scalability

C. Portability

D. Multiple concurrent users

A

C. Portability

A, B, D are found more in databases and are reasons to use them vs file

A flat file is a type of database that stores data in a plain text file format. One advantage of using flat files is portability. Since flat files are stored in a simple text format, they can be easily transferred or moved between different systems and platforms without compatibility issues. This portability makes flat files convenient for sharing data between different applications, operating systems, and environments

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

Within a database, which of the following would be the best access method to use to display a subset of a table?

A. UPDATE

B. DROP

C. SELECT

D. INSERT

A

C. SELECT

In a database, the SELECT statement is used to retrieve data from one or more tables. It allows users to specify which columns and rows they want to retrieve by using various filtering and sorting criteria. When you want to display a subset of a table, the SELECT statement is the best access method to use.

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

Which of the following actions is most likely associated with database use?

A. Creating diagrams

B. Querying

C. File sharing

D. Printing

A

B. Querying

Querying is the process of retrieving specific data from a database by using queries, which are commands or statements written in a database query language such as SQL (Structured Query Language). Queries allow users to search, filter, and retrieve data based on specified criteria, enabling them to extract meaningful insights or information from the database.

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

Which of the following database structures is the most granular?

A. Column

B. Field

C. Record

D. Table

A

B. Field

In a database, the most granular structure refers to the smallest unit of data that can be accessed and manipulated. A field is the smallest unit of data in a database, representing a single attribute or characteristic of an entity. For example, in a database table storing information about employees, fields may include “EmployeeID,” “FirstName,” “LastName,” “Email,” etc. Each field represents a specific piece of information about the entity being stored. Therefore, the field is the most granular database structure among the options provided.

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

Which of the following describes the concept of a database record?

A. A collection of rows, columns, and constraints

B. A collection of fields about the same object

C. A collection of schemas within the same database

D. A collection of tables within different schemas

A

B. A collection of fields about the same object

A database record, also known as a row or tuple, is a collection of related data fields (also known as attributes or columns) that are organized together to represent a single entity or object within a database table. Each record typically contains information about a specific instance or entity, such as a person, product, transaction, etc. Therefore, option B, “A collection of fields about the same object,” best describes the concept of a database record.

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

The output of a query in a relational database is most likely used to generate:

A. a report.

B. a schema.

C. storage.

D. scalability.

A

A. A report

In a relational database, a query is used to retrieve specific data from one or more tables based on certain criteria. The output of a query typically consists of a set of records or rows that meet the specified conditions. This data is often used to generate reports, which are organized presentations of information that provide insights or summaries for decision-making purposes. Reports can take various forms, such as tables, charts, graphs, or narratives, depending on the requirements of the stakeholders.

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

Which of the following language types is MOST likely used to retrieve data from a database?

A. Query language

B. Scripted language

C. Assembly language

D. Compiled language

A

A. Query Language

A query language, such as SQL (Structured Query Language), is specifically designed for retrieving data from databases. SQL allows users to interact with databases by querying and manipulating data, retrieving specific information based on criteria specified in the query.

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

Which of the following is an element of a NoSQL database?

A. Primary keys

B. Constraints

C. Schema

D. Tables

E. Delimiters

A

A. Primary Keys

NoSQL databases use primary keys to uniquely identify documents or records within a database. This concept is similar to relational databases, although the way primary keys are used can vary between different types of NoSQL databases (e.g., key-value stores, document stores).”

B. Constraints: Constraints are more commonly associated with relational databases to enforce rules on the data. NoSQL databases generally have more flexible schemas and fewer constraints.

C. Schema: NoSQL databases are often schema-less or have a flexible schema. They do not enforce a fixed schema like relational databases do.

D. Tables: NoSQL databases typically do not use tables. Instead, they use other structures such as collections (document stores), key-value pairs, or graphs, depending on the type of NoSQL database.

E. Delimiters: Delimiters are not a fundamental concept in NoSQL databases. They are more relevant to data formats or parsing rather than database structure.

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

A user needs all of the data from a database, including the structure of the objects, the users, and the statistics. Which of the following is the BEST method to obtain this information?

A. A query

B. A report

C. A dump

D. A script

A

C. A Dump

A database dump is a snapshot of the entire database, including its structure (schema), data, users, and other related information. It typically generates a file containing SQL statements or data in a specific format that can be used to recreate the database or transfer it to another system. A dump provides a comprehensive backup of the database, making it suitable for obtaining all the required information.

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

Which of the following is MOST often used to retrieve data from a relational database?

A. DELETE

B. ALTER

C. QUERY

D. IMPORT

A

C. Query

Retrieve Data

In a relational database, data retrieval is most commonly performed using queries. A query is a request for information from a database, typically expressed in a structured query language (SQL) such as SELECT statements. Queries allow users to retrieve specific data based on specified criteria.

DELETE statement in SQL is used to remove rows from a table based on specified conditions. However, DELETE is not primarily used for retrieving data; its primary function is to remove data from the database.

ALTER statement in SQL is used to modify the structure of a database table, such as adding, modifying, or dropping columns. It is not primarily used for retrieving data.

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

A database administrator needs to add a record to an existing table. Which of the following statements would the administrator MOST likely use?

A. INSERT

B. SELECT

C. UDATE

D. DELETE

A

A. Insert

add a record to a table

The database administrator would most likely use the INSERT statement to add a record to an existing table in the database. The INSERT statement is specifically designed to insert new rows of data into a table.

The SELECT statement is used to retrieve data from one or more tables in a database, not to add new records.

The UPDATE statement is used to modify existing records in a table, not to add new records.

The DELETE statement is used to remove existing records from a table, not to add new records.

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

A company expects to gather increasingly large amounts of information, which need to be accessed quickly by employees. Which of the following is the MOST appropriate method to store the information?

A. Spreadsheet

B. Flat file

C. Network shared folder

D. Database

A

D. Database

large amounts of data, access quickly by employees

A database is the most appropriate method for storing large amounts of information that need to be accessed quickly by employees. Databases are designed to efficiently manage and organize data, allowing for fast retrieval and manipulation of information. They provide features such as indexing, querying, and data integrity mechanisms, which are essential for handling large datasets effectively.

Flat files are simple text files that store data without any structure or organization. While they may be suitable for small amounts of data, they are not well-suited for managing large volumes of information efficiently.

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

A user wants to create a link between two tables in a database. Which of the following is the user MOST likely to use?

A. Primary key

B. Index

C. Foreign key

D. Constraint

A

C. Foriegn Key

foriegn keys refer back to the primary key

A foreign key is the database attribute that establishes a relationship between two tables in a relational database. It links a field in one table to a field in another table, typically referencing the primary key of the related table. This relationship ensures referential integrity and enables the enforcement of constraints such as data consistency and integrity between related tables.

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

A music studio needs to store artist data as text, demos as MP3 files, and sheet music as PDF files in an organized and easily searchable format. Which of the following is BEST suited to meet this need?

A. Web page

B. List

C. Flat file

D. Database

A

D. Database

variety of data types

A database is the best-suited option to meet the music studio’s need to store artist data as text, demos as MP3 files, and sheet music as PDF files in an organized and easily searchable format. Databases are structured collections of data organized in tables, allowing for efficient storage, retrieval, and management of various types of data. They provide features such as indexing, querying, and relationships between data entities, making them ideal for organizing and searching through different types of data.

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

he data set that is supporting an application utilizes commas to separate records. Which of the following describes the data set?

A. Relational

B. Flat file

C. NoSQL

D. Spreadsheet

A

B. Flat File

A data set that utilizes commas to separate records is typically referred to as a flat file. In a flat file format, each record is represented as a single line of text, and individual fields within the record are separated by delimiters such as commas, tabs, or pipes. Flat files are simple and easy to work with but may lack the structure and organization provided by more complex database systems.

17
Q

A user wants to use a workstation to view data ad hoc from a company database. Which of the following access methods would be BEST?

A. Command-line interface

B. Report builder

C. User interface

D. Programmatic

A

C. User interface

The best access method for a user to view data ad hoc from a company database would be through the user interface. A user interface provides a graphical interface that allows users to interact with the database using menus, buttons, forms, and other visual elements. This allows users to easily navigate the database, query data, and view results without needing specialized programming knowledge or skills. User interfaces are intuitive and user-friendly, making them the preferred choice for most users, especially for ad hoc data analysis.

18
Q

A company wants a solution with an easily searchable method of storing information and files associated with a customer. Which of the following should be used to implement this business case?

A. Flat file

B. Fileshare

C. Database

D. Spreadsheet

A

C. Database

A database is the most suitable solution for implementing the business case of storing information and files associated with a customer in an easily searchable manner. Databases provide a structured and organized way to store large amounts of data, including text, images, and files. They offer features such as indexing and querying, which make it easy to search for specific information quickly and efficiently. Additionally, databases ensure data integrity and security, which are essential for managing customer information effectively.

19
Q

An administrator must select a data storage program to support an application. The program should include a management system to maintain structured data. Which of the following will the administrator MOST likely use?

a. Relational

b. Spreadsheet

c. NoSQL

d. Flat file

A

A. Relational

Relational databases are structured data storage programs that utilize a management system to maintain structured data. They organize data into tables with rows and columns, and they enforce relationships between different tables. This structure allows for efficient querying and manipulation of data. Relational databases are commonly used in various applications where structured data management is required.

20
Q

Which of the following relational database constructs is used to ensure valid values are entered for a column?

A. Schema

B. Permissions

C. Constraint

D. Column

A

C. Constraint

Constraints are rules applied to columns in a relational database to enforce data integrity. Examples include CHECK constraints, which ensure that values meet specific criteria, and FOREIGN KEY constraints, which enforce relationships between tables.

21
Q

For which of the following is a relational database management system most commonly used?

A. Building flowcharts

B. Storing information

C. Generating reports

D. Creating diagrams

A

B. Storing information

Relational database management systems are designed primarily to store, manage, and retrieve structured data. They organize data into tables and define relationships between those tables, making them ideal for managing large amounts of data efficiently.

21
Q
A
22
Q

Which of the following describes something in a database that refers to the unique identifier in the parent table?

Attribute

Constraint

Foreign key

Schema

A

C. Foreign Key

refers to unique identifier (PK)

A foreign key is a field (or a set of fields) in a table that refers to the primary key in another (parent) table. This relationship links the two tables together and ensures referential integrity, meaning the values in the foreign key column must match a value in the parent table’s primary key column.

23
Q

Which of the following database concepts would most likely use a CSV file?

A. Data querying

B. Data reports

C. Data importing

D. Data persistence

A

C. Data importing

CSV (Comma-Separated Values) files are commonly used for importing data into databases. A CSV file contains structured data in a simple, tabular format that can be easily read and imported into a database system.

24
Q

What would be used to add a column in a database.

A. Select

B. Alter

C. Drop

D. Delete

A

B. Alter

ALTER TABLE table_name ADD column_name data_type;

The ALTER command is used in SQL to modify an existing table. You can use it to add, delete, or modify columns in a table. For example, to add a new column,

25
Q

What would be the BEST use of a database?

A. client call list

B. automated data capture and reporting

C. client check in information from various locations

A

B. Automated data capture and reporting

Databases excel at efficiently storing, organizing, and processing large volumes of data. They are particularly useful for automating the capture of data from various sources and generating reports based on that data. This use leverages the full potential of a database’s capabilities in terms of scalability, querying, and data management

26
Q

Which of the following consists of columns and rows of numerical or text data?

A. Document database

B. Key/value database

C. Database dump 539

D. Relational database

A

D. Relational Database

A relational database stores data in tables, which consist of rows and columns. Each row represents a record, and each column represents a data attribute. This structure is designed for organizing and managing numerical or text data efficiently.

27
Q

he sales department needs to keep a customer list that contains names, contact information, and sales records. This list will need to be edited by multiple people at the same time. Which of the following applications should be used to create this list?

A. Database software

B. Word processing software

C. Conferencing software

D. Presentation software

A

A. Database Software

various data, multiple people assessing it.

Database software is designed to store, organize, and manage large amounts of data, making it ideal for creating a customer list with names, contact information, and sales records.

Database software often includes features for collaborative editing, allowing multiple users to access and modify the data simultaneously. This collaborative editing capability ensures that changes made by one user are reflected in real-time for all other users accessing the database.

28
Q

Which of the following categories describes commands used to extract information from a database?

A. DDL

B. DDR

C. DLL

D. DML

A

D. DML

SELECT will extract

DML stands for Data Manipulation Language. It is a category of SQL (Structured Query Language) commands used to extract, manipulate, and manage data within a database. DML commands primarily consist of SELECT, INSERT, UPDATE, and DELETE statements, which allow users to retrieve, add, modify, and remove data from database tables.

29
Q
A