AI Gen Flashcards

(118 cards)

1
Q

What is the primary difference between data and information?

A

Data are raw facts; Information is the result of processing raw data to reveal its meaning.

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

What constitutes the building blocks of information?

A

Data.

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

Define a database.

A

An integrated collection of files built for a specific purpose to store corporate data.

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

How can databases be classified based on the number of users?

A
  • Single-user database
  • Multiuser database
  • Workgroup database (<50 users)
  • Enterprise database (>50 users)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the three levels of database architecture?

A
  • External: users’ views of the database
  • Conceptual: logical structure of an entire database
  • Internal: details of the physical storage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the purpose of data modeling?

A
  • Represent the real world
  • Helps with efficient computerisation
  • Focus on the use of elements
  • Represent necessary elements and their relationships
  • Reduce data redundancy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the four main concepts represented in an ER model?

A
  • Entity
  • Attributes
  • Relation
  • Cardinality
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does an ER diagram (ERD) help designers to do?

A

Design a database.

Understand and specify the desired components of the database and the relationships among those components.

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

What shape represents an entity in an ERD?

A

Rectangle.

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

What shape represents attributes in an ERD?

A

Ellipse or oval.

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

What shape represents relationships among entity sets in an ERD?

A

Diamond.

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

What is an attribute in the context of a database entity?

A

Attributes are used for describing the entities and must include an identifier that is unique for each entity.

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

How can redundancy in attributes be reduced?

A

Avoid structured attributes and decompose them into simpler elements.

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

What is a relation in a database?

A

A relation specifies the association between two or more entities.

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

What does maximum cardinality indicate in a relation?

A

The maximum number of instances on either side of a relation.

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

What is the Enhanced or Extended Entity Relationship (EER) model?

A

A conceptual data model that incorporates extensions to the ER model to design more accurate database schemas.

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

What is specialization in the context of subclasses?

A

The process of defining a set of subclasses of an entity type based on distinguishing characteristics.

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

What is generalization in database modeling?

A

The process of defining a generalized entity type from given entity types.

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

What is the difference between single inheritance and multiple inheritance?

A
  • Single inheritance: Subclass inherits all attributes from one superclass
  • Multiple inheritance: Subclass inherits from more than one superclass.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Fill in the blank: A database is the core _______ technology to store corporate data.

A

[information systems]

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

True or False: An entity in a database can exist independently.

A

True.

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

What are the types of end users interacting with a database?

A
  • Casual end users
  • Naive or parametric end users
  • Sophisticated end users
  • Standalone users
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What does the term ‘cardinality’ refer to in database relations?

A

The number of associated instances in a relationship.

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

What is functional dependency in database attributes?

A

A relationship where one attribute’s value uniquely determines another attribute’s value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What is the structure of the specialization hierarchy?
A tree structure or strict hierarchy ## Footnote Every subclass participates as a subclass in only one class/subclass relationship.
26
What is a specialization lattice?
Subclass can be a subclass in more than one class/subclass relationship
27
Define single inheritance.
Subclass entity inherits all attributes and relationships of superclass
28
What is multiple inheritance?
Subclass with more than one superclass
29
What happens if an attribute from the same superclass is inherited more than once in multiple inheritance?
Included only once in shared subclass
30
What are the types of specialization constraints?
Overlapping or disjoint ## Footnote Place 'o' or 'd' in specialization circle to indicate constraint.
31
What indicates total specialization?
Double line connecting superclass to specialization circle
32
What indicates partial specialization?
Single line connecting superclass to specialization circle
33
What are the three definitions of specialization?
* Predicate-defined * Attribute-defined * User-defined
34
What is a category or union type?
Represents a single superclass/subclass relationship with more than one superclass
35
In a category type, how is attribute inheritance handled?
Works more selectively
36
What is the cardinality between supertype and subtype?
Always 1:0
37
What design choices can be made for specialization and generalization?
* Define many specializations and subclasses * Merge subclass into superclass if few specific attributes * Replace with type attributes
38
What should generally be avoided in design choices?
Union types and categories
39
What is the definition of a record in data storage?
Describes entities and their attributes
40
What constitutes a record type?
A collection of field names and their corresponding data types
41
What are the two types of record lengths?
Fixed or variable lengths
42
What is a file in data organization?
A sequence of records
43
When is a file said to have fixed-length records?
If every record in the file has exactly the same size in bytes
44
What is meant by variable-length records?
Records may have different sizes due to varying field sizes or optional fields
45
What is a spanned organization in file structure?
Records can span more than one block
46
What is an unspanned organization?
Records are not allowed to cross block boundaries
47
What are the two types of operations on files?
* Retrieval * Update
48
What does the open operation do in file management?
Prepares the file for reading or writing
49
What is the purpose of the find operation?
Searches for the first record that satisfies a search condition
50
What is a heap (pile) file?
Records are placed in the file in the order they are inserted
51
What is a relative or direct file?
Unordered fixed-length records using unspanned blocks and contiguous allocation
52
How are sorted files organized?
Physically order the records based on the values of one of their fields called the ordering field
53
What is hashing in file organization?
Provides very fast access to records based on certain search conditions
54
What is a B-Tree?
Allows an indexing field value to appear only once at some level in the tree
55
What is a primary index?
Ordered index with one entry record for each block
56
What is a clustering index?
Records physically ordered by a non-key field
57
What is a dense secondary index?
Includes several index entries with the same value of the indexing field
58
What is a static multilevel index?
Considers the index file as an ordered file with distinct values of the indexing field
59
What is a static multilevel index?
An index where the first level is an ordered file with distinct values of the indexing field, requiring updates when the data file is modified.
60
What is the formula for determining the number of levels in a multilevel index?
t = ┌ logfo r1┐ where r1 is the first-level entries and fo is the fanout.
61
What is an indexed sequential file?
A file organization where the data file is ordered with a multilevel primary index on its ordering key field.
62
What are the benefits of dynamic multilevel indexes?
They retain multilevel indexing benefits while reducing insertion and deletion problems by automatically reorganizing with local changes.
63
What is a B-tree?
A type of dynamic multilevel index that allows efficient insertion and deletion operations.
64
What is a hash index?
An index that organizes indexing fields and their associated pointers into a hash file structure.
65
What is a database management system (DBMS)?
A software system that manages large, shared, and persistent collections of data, ensuring reliability and privacy.
66
What is SQL?
Structured Query Language, a standardized programming language used for managing and communicating with relational databases.
67
What are schemas in a database?
The design of a database, which can be at physical or logical levels, and is made up of the characteristics of the data.
68
What is the role of a database administrator (DBA)?
Responsible for the design, control, and administration of the database.
69
What is the conceptual model to physical model transformation?
An entity becomes a table, an instance becomes a row, and an attribute becomes a column.
70
What does DDL stand for and what is its purpose?
Data Definition Language; used for specifying the database schema and defining logical, external, and physical schemas.
71
What is DML used for?
Data Manipulation Language; used for accessing and manipulating data in a database.
72
What is the purpose of DCL?
Data Control Language; used for granting and revoking user access on a database.
73
What are the basic SQL commands?
* Select * Insert * Update * Delete * Create * Drop
74
What do angular brackets < and > denote in SQL syntax?
Terms that must be enclosed.
75
What are the elementary domains in SQL?
* Characters * Bit * Exact numeric domains * Approximate numeric domains * Date and time * Temporal intervals
76
What is the basic syntax for creating a table in SQL?
CREATE TABLE table_name(column1 datatype, column2 datatype, ..., PRIMARY KEY(column));
77
How do you insert a new row into a table in SQL?
INSERT INTO TABLE_NAME [(column1, column2, ...)] VALUES (value1, value2, ...);
78
What does the SELECT clause do in an SQL query?
Lists the attributes desired in the result of a query.
79
What is the purpose of the WHERE clause in SQL?
Defines the selection predicate involving attributes of the relations in the FROM clause.
80
What does the UPDATE query do in SQL?
Modifies existing records in a table.
81
What is the syntax for deleting records in SQL?
DELETE FROM table_name WHERE [condition];
82
What does the IN operator do in SQL?
Compares a value to a list of literal values.
83
True or False: The LIKE operator is used to compare a value to similar values using wildcard operators.
True
84
What is the purpose of the CONCAT function in SQL?
Concatenates two or more strings.
85
What does the ROUND function do in SQL?
Rounds a number to the nearest integer or specified decimal places.
86
What is the significance of the sysdate in SQL?
Retrieves the current date and time.
87
What does the LENGTH function do in SQL?
Returns the length of a string.
88
What does the TRUNC function do in SQL?
Truncates a date to a specified unit (e.g., year, month).
89
What does SQL stand for?
Structured Query Language
90
What is the purpose of a query optimizer in a DBMS?
Analyzes SQL queries and determines efficient execution mechanisms
91
What does QBE stand for?
Query By Example
92
What is Query By Example (QBE)?
A graphical way of querying relational data using example tables
93
True or False: QBE provides a user-friendly method for running database queries.
True
94
Fill in the blank: In SQL, the command to insert a new employee record is _______.
INSERT INTO
95
What SQL command is used to update records in a table?
UPDATE
96
What condition is used to filter results in SQL queries?
WHERE
97
List the types of aggregation functions in SQL.
* AVG * COUNT * MAX * MIN * SUM
98
What is the purpose of the 'CASE' statement in SQL?
To provide conditional logic in queries
99
What is the SQL command to delete records from a table?
DELETE
100
Fill in the blank: The command used to retrieve data from a database is _______.
SELECT
101
What does 'LOWER' function do in SQL?
Converts a string to lowercase
102
What does 'COALESCE' function do in SQL?
Returns the first non-null value in a list
103
Fill in the blank: To concatenate strings in SQL, use the _______ operator.
||
104
What is the command to modify the structure of a table?
ALTER TABLE
105
What is 'Embedded SQL'?
SQL statements contained within an application programming language
106
What is the purpose of the 'GROUP BY' clause in SQL?
To group rows that have the same values in specified columns
107
What SQL function would you use to count distinct values in a column?
COUNT(DISTINCT column_name)
108
What is the typical use of non-procedural queries?
Data retrieval without needing to know physical data storage format
109
What does the 'HAVING' clause do in SQL?
Filters groups based on a specified condition
110
List the components needed for Embedded SQL in VB.Net.
* MySQL workbench * MySQL connector * MySQL for Visual Studio * Visual Studio
111
What is the command to add a new column to an existing table?
ALTER TABLE table_name ADD column_name data_type
112
True or False: QBE allows for complex query conditions to be expressed.
True
113
What is the purpose of the 'ORDER BY' clause in SQL?
To sort the result set of a query by one or more columns
114
Fill in the blank: To display unique values in a query, use the _______ keyword.
DISTINCT
115
What is the SQL command to combine two or more conditions in a query?
AND / OR
116
What is the purpose of 'INSERT INTO' command in SQL?
To add new records to a table
117
What does the 'TRUNC' function do in SQL?
Rounds a number down to the nearest integer or truncates a date
118
What is the command to change the data type of a column in SQL?
ALTER TABLE table_name MODIFY column_name new_data_type