AI Gen Flashcards

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
Q

What is the structure of the specialization hierarchy?

A

A tree structure or strict hierarchy

Every subclass participates as a subclass in only one class/subclass relationship.

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

What is a specialization lattice?

A

Subclass can be a subclass in more than one class/subclass relationship

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

Define single inheritance.

A

Subclass entity inherits all attributes and relationships of superclass

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

What is multiple inheritance?

A

Subclass with more than one superclass

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

What happens if an attribute from the same superclass is inherited more than once in multiple inheritance?

A

Included only once in shared subclass

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

What are the types of specialization constraints?

A

Overlapping or disjoint

Place ‘o’ or ‘d’ in specialization circle to indicate constraint.

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

What indicates total specialization?

A

Double line connecting superclass to specialization circle

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

What indicates partial specialization?

A

Single line connecting superclass to specialization circle

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

What are the three definitions of specialization?

A
  • Predicate-defined
  • Attribute-defined
  • User-defined
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

What is a category or union type?

A

Represents a single superclass/subclass relationship with more than one superclass

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

In a category type, how is attribute inheritance handled?

A

Works more selectively

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

What is the cardinality between supertype and subtype?

A

Always 1:0

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

What design choices can be made for specialization and generalization?

A
  • Define many specializations and subclasses
  • Merge subclass into superclass if few specific attributes
  • Replace with type attributes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

What should generally be avoided in design choices?

A

Union types and categories

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

What is the definition of a record in data storage?

A

Describes entities and their attributes

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

What constitutes a record type?

A

A collection of field names and their corresponding data types

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

What are the two types of record lengths?

A

Fixed or variable lengths

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

What is a file in data organization?

A

A sequence of records

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

When is a file said to have fixed-length records?

A

If every record in the file has exactly the same size in bytes

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

What is meant by variable-length records?

A

Records may have different sizes due to varying field sizes or optional fields

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

What is a spanned organization in file structure?

A

Records can span more than one block

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

What is an unspanned organization?

A

Records are not allowed to cross block boundaries

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

What are the two types of operations on files?

A
  • Retrieval
  • Update
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
48
Q

What does the open operation do in file management?

A

Prepares the file for reading or writing

49
Q

What is the purpose of the find operation?

A

Searches for the first record that satisfies a search condition

50
Q

What is a heap (pile) file?

A

Records are placed in the file in the order they are inserted

51
Q

What is a relative or direct file?

A

Unordered fixed-length records using unspanned blocks and contiguous allocation

52
Q

How are sorted files organized?

A

Physically order the records based on the values of one of their fields called the ordering field

53
Q

What is hashing in file organization?

A

Provides very fast access to records based on certain search conditions

54
Q

What is a B-Tree?

A

Allows an indexing field value to appear only once at some level in the tree

55
Q

What is a primary index?

A

Ordered index with one entry record for each block

56
Q

What is a clustering index?

A

Records physically ordered by a non-key field

57
Q

What is a dense secondary index?

A

Includes several index entries with the same value of the indexing field

58
Q

What is a static multilevel index?

A

Considers the index file as an ordered file with distinct values of the indexing field

59
Q

What is a static multilevel index?

A

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
Q

What is the formula for determining the number of levels in a multilevel index?

A

t = ┌ logfo r1┐ where r1 is the first-level entries and fo is the fanout.

61
Q

What is an indexed sequential file?

A

A file organization where the data file is ordered with a multilevel primary index on its ordering key field.

62
Q

What are the benefits of dynamic multilevel indexes?

A

They retain multilevel indexing benefits while reducing insertion and deletion problems by automatically reorganizing with local changes.

63
Q

What is a B-tree?

A

A type of dynamic multilevel index that allows efficient insertion and deletion operations.

64
Q

What is a hash index?

A

An index that organizes indexing fields and their associated pointers into a hash file structure.

65
Q

What is a database management system (DBMS)?

A

A software system that manages large, shared, and persistent collections of data, ensuring reliability and privacy.

66
Q

What is SQL?

A

Structured Query Language, a standardized programming language used for managing and communicating with relational databases.

67
Q

What are schemas in a database?

A

The design of a database, which can be at physical or logical levels, and is made up of the characteristics of the data.

68
Q

What is the role of a database administrator (DBA)?

A

Responsible for the design, control, and administration of the database.

69
Q

What is the conceptual model to physical model transformation?

A

An entity becomes a table, an instance becomes a row, and an attribute becomes a column.

70
Q

What does DDL stand for and what is its purpose?

A

Data Definition Language; used for specifying the database schema and defining logical, external, and physical schemas.

71
Q

What is DML used for?

A

Data Manipulation Language; used for accessing and manipulating data in a database.

72
Q

What is the purpose of DCL?

A

Data Control Language; used for granting and revoking user access on a database.

73
Q

What are the basic SQL commands?

A
  • Select
  • Insert
  • Update
  • Delete
  • Create
  • Drop
74
Q

What do angular brackets < and > denote in SQL syntax?

A

Terms that must be enclosed.

75
Q

What are the elementary domains in SQL?

A
  • Characters
  • Bit
  • Exact numeric domains
  • Approximate numeric domains
  • Date and time
  • Temporal intervals
76
Q

What is the basic syntax for creating a table in SQL?

A

CREATE TABLE table_name(column1 datatype, column2 datatype, …, PRIMARY KEY(column));

77
Q

How do you insert a new row into a table in SQL?

A

INSERT INTO TABLE_NAME [(column1, column2, …)] VALUES (value1, value2, …);

78
Q

What does the SELECT clause do in an SQL query?

A

Lists the attributes desired in the result of a query.

79
Q

What is the purpose of the WHERE clause in SQL?

A

Defines the selection predicate involving attributes of the relations in the FROM clause.

80
Q

What does the UPDATE query do in SQL?

A

Modifies existing records in a table.

81
Q

What is the syntax for deleting records in SQL?

A

DELETE FROM table_name WHERE [condition];

82
Q

What does the IN operator do in SQL?

A

Compares a value to a list of literal values.

83
Q

True or False: The LIKE operator is used to compare a value to similar values using wildcard operators.

84
Q

What is the purpose of the CONCAT function in SQL?

A

Concatenates two or more strings.

85
Q

What does the ROUND function do in SQL?

A

Rounds a number to the nearest integer or specified decimal places.

86
Q

What is the significance of the sysdate in SQL?

A

Retrieves the current date and time.

87
Q

What does the LENGTH function do in SQL?

A

Returns the length of a string.

88
Q

What does the TRUNC function do in SQL?

A

Truncates a date to a specified unit (e.g., year, month).

89
Q

What does SQL stand for?

A

Structured Query Language

90
Q

What is the purpose of a query optimizer in a DBMS?

A

Analyzes SQL queries and determines efficient execution mechanisms

91
Q

What does QBE stand for?

A

Query By Example

92
Q

What is Query By Example (QBE)?

A

A graphical way of querying relational data using example tables

93
Q

True or False: QBE provides a user-friendly method for running database queries.

94
Q

Fill in the blank: In SQL, the command to insert a new employee record is _______.

A

INSERT INTO

95
Q

What SQL command is used to update records in a table?

96
Q

What condition is used to filter results in SQL queries?

97
Q

List the types of aggregation functions in SQL.

A
  • AVG
  • COUNT
  • MAX
  • MIN
  • SUM
98
Q

What is the purpose of the ‘CASE’ statement in SQL?

A

To provide conditional logic in queries

99
Q

What is the SQL command to delete records from a table?

100
Q

Fill in the blank: The command used to retrieve data from a database is _______.

101
Q

What does ‘LOWER’ function do in SQL?

A

Converts a string to lowercase

102
Q

What does ‘COALESCE’ function do in SQL?

A

Returns the first non-null value in a list

103
Q

Fill in the blank: To concatenate strings in SQL, use the _______ operator.

104
Q

What is the command to modify the structure of a table?

A

ALTER TABLE

105
Q

What is ‘Embedded SQL’?

A

SQL statements contained within an application programming language

106
Q

What is the purpose of the ‘GROUP BY’ clause in SQL?

A

To group rows that have the same values in specified columns

107
Q

What SQL function would you use to count distinct values in a column?

A

COUNT(DISTINCT column_name)

108
Q

What is the typical use of non-procedural queries?

A

Data retrieval without needing to know physical data storage format

109
Q

What does the ‘HAVING’ clause do in SQL?

A

Filters groups based on a specified condition

110
Q

List the components needed for Embedded SQL in VB.Net.

A
  • MySQL workbench
  • MySQL connector
  • MySQL for Visual Studio
  • Visual Studio
111
Q

What is the command to add a new column to an existing table?

A

ALTER TABLE table_name ADD column_name data_type

112
Q

True or False: QBE allows for complex query conditions to be expressed.

113
Q

What is the purpose of the ‘ORDER BY’ clause in SQL?

A

To sort the result set of a query by one or more columns

114
Q

Fill in the blank: To display unique values in a query, use the _______ keyword.

115
Q

What is the SQL command to combine two or more conditions in a query?

116
Q

What is the purpose of ‘INSERT INTO’ command in SQL?

A

To add new records to a table

117
Q

What does the ‘TRUNC’ function do in SQL?

A

Rounds a number down to the nearest integer or truncates a date

118
Q

What is the command to change the data type of a column in SQL?

A

ALTER TABLE table_name MODIFY column_name new_data_type