Deck 8: Physical Database Design

ملء الشاشة (f)
exit full mode
سؤال
The ideal Btree structure is wide,i.e.it has many arrows branching from each node,and short,i.e.it has a small number of levels between the root and leaf nodes.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
In a hash file,if two keys hash to the same physical address it is referred to as a contraction.
سؤال
In index matching,the condition in the WHERE clause can never contain pattern matching (using the keyword LIKE),regardless of whether the index is a single-column or a composite index.
سؤال
A logical record may be split across several physical records.
سؤال
Unordered sequential files are sometimes known as heap files.
سؤال
To improve the response time to access and change a database,consumption of all of the resources used by database processing should be minimized,including physical record transfers,main memory and disk space.
سؤال
A Sequential File is a simple file organization in which records are stored in insertion order or by key value.
سؤال
A bitmap join index is actually a precomputed join from a column in a parent table to the rows of the child table that join with rows of the parent table.
سؤال
In a Btree structure,the height of the tree determines the number of physical record accesses required to locate a particular key,with the cost of access being less than or equal to the height.
سؤال
Physical records are synonymous to blocks or pages.
سؤال
INSERT and DELETE statements affect only the indexes of the records being added or deleted.
سؤال
Query binding indicates how to implement a query as operations on a file.
سؤال
Periodic reorganization of a file as it becomes too full is necessary for both static hashing and Btree file structures.
سؤال
Although they are useful when more than 5% of the rows of a file must be retrieved,clustering indexes are harder to maintain than a non-clustering index when data is modified.
سؤال
The B+tree structure improves the performance of sequential searches over Btree because the leaf nodes are connected together so that the search does not have to move up and down the tree.
سؤال
Different hash functions may be used on different attributes of the same table.
سؤال
In order to optimize queries,some DBMSs allow the programmer to use hints that influence the access plan,but these should be used cautiously because a hint will override the optimizer.
سؤال
In the processing of an SQL statement by the DBMS,a parsed query is the output of the code generation task.
سؤال
Bitmap indexes are a good alternative to Btree index nodes when the columns to be indexed contain only a few values.
سؤال
In hash files,if a collision occurs because two keys hash to the same physical address,one method for locating a physical record with free space is a linear probe.
سؤال
Chose the correct statement regarding memory access time and disk access time:

A) memory access time is typically a million times faster than disk access time
B) disk access time is typically a million times faster than memory access time
C) memory access time is essentially the same as disk access time
D) memory access time is determined by the speed of the disk rotation and magnetic head movement.
سؤال
To maintain the number of collisions at an adequate level without wasting too much storage,the ratio of used records to the total number of records should be as follows:

A) At least 90%
B) At most 90%
C) At most 70%
D) At most 20%
سؤال
In selecting an index,a column that has almost unique values is a good choice for a clustering index if it is used in equality conditions.
سؤال
During the query optimization process,which phase analyzes your query to ensure that you have not violated language constraints (example: misspelled key words)or misused columns and tables (example: trying to compare columns with incompatible data types)?

A) Syntax and semantic analysis
B) Query transformation
C) Access plan evaluation
D) Access plan interpretation
E) Code generation
سؤال
Which of the following is not an output of physical design?

A) Choice of index files
B) Choice of candidate keys
C) Placing rows from two tables in the same physical record
D) Lowering the normal form level of two tables by combining them
سؤال
During the query optimization process,which phase generates and evaluates access plans and chooses the access plan with the lowest cost?

A) Syntax and semantic analysis
B) Query transformation
C) Access plan evaluation
D) Access plan interpretation
E) Code generation
سؤال
Figuer: <strong>Figuer:   Each node of the B-tree can contain at most 4 keys.After inserting into the B-tree a record with key = 62 and a record with key = 85,the B-tree will have the following number of nodes (including the root):</strong> A) 3 B) 4 C) 5 D) 6 <div style=padding-top: 35px>
Each node of the B-tree can contain at most 4 keys.After inserting into the B-tree a record with key = 62 and a record with key = 85,the B-tree will have the following number of nodes (including the root):

A) 3
B) 4
C) 5
D) 6
سؤال
You should avoid creating too many indexes on tables which will have many insertion and/or deletion operations.
سؤال
Which one of the following is true about B-trees (including B-tree variations)?

A) The B-tree structure is used by many DBMS
B) The B-tree is rarely used because it is hard to implement
C) The B-tree is a theoretical model not used at all
D) The B-tree has been replaced in new relational DBMS by radically different data structures.
سؤال
An index on a combination of columns is just as flexible as multiple indexes on the individual columns,so either choice would be appropriate.
سؤال
Which of the following is used in establishing table profiles?

A) Number of rows
B) Number of physical records
C) Distribution of values in a column
D) All of the above
سؤال
A physical record:

A) May contain exactly one logical record
B) May contain several logical records from one table
C) May contain several logical records from different tables
D) All of the above
سؤال
Which of the following contributes to the difficulty of physical database design?

A) Complexity of the specific DBMS environment
B) Application profiles are hard to collect and changing
C) Uncertainty about the number of physical record accesses
D) All of the above
سؤال
Which of the following types of file is usually not provided by relational DBMS?

A) Heap
B) Hash file
C) Stack
D) B-tree
سؤال
Figuer: <strong>Figuer:   Each node of the B-tree can contain at most 4 keys.To delete the records with key = 30 and key = 20,do the following:</strong> A) Delete keys 20 and 30 from node B B) Delete keys 20 and 30 from node B, move key 15 from B to A and delete node B C) Delete keys 20 and 30 from node B, and move key = 10 from A to B D) Delete keys 20 and 30 from node B, and move 50 from C to A <div style=padding-top: 35px>
Each node of the B-tree can contain at most 4 keys.To delete the records with key = 30 and key = 20,do the following:

A) Delete keys 20 and 30 from node B
B) Delete keys 20 and 30 from node B, move key 15 from B to A and delete node B
C) Delete keys 20 and 30 from node B, and move key = 10 from A to B
D) Delete keys 20 and 30 from node B, and move 50 from C to A
سؤال
To retrieve logical record 2312,how many physical records will need to be accessed?

A) 1
B) 2
C) 3
D) 4
سؤال
In RAID technology,striping involves the allocation of logical records to different disks.
سؤال
Figuer: <strong>Figuer:   Each node of the B-tree can contain at most 4 keys.To insert into the B-tree a record with key = 25,do the following:</strong> A) Split the node labeled B B) Insert the record into the node labeled B C) Insert the record into the node labeled A D) Split the node labeled C <div style=padding-top: 35px>
Each node of the B-tree can contain at most 4 keys.To insert into the B-tree a record with key = 25,do the following:

A) Split the node labeled B
B) Insert the record into the node labeled B
C) Insert the record into the node labeled A
D) Split the node labeled C
سؤال
In the processing of an SQL statement by the DBMS,code generation:

A) Comes first
B) Follows query transformation
C) Follows syntax and semantics analysis
D) Follows access plan evaluation
سؤال
Which logical record (identified by empno)is stored at physical address 13?

A) 2313
B) 2211
C) 2012
D) 2311
سؤال
A simple file structure in which records are stored by a key value is a(n)_________________ file.
سؤال
Query binding:

A) Saves the access plan selected for a query
B) Reduces optimization time
C) May be changed if table profiles change
D) All of the above
سؤال
A(n)______________ is a collection of bytes that are transferred between volatile storage in main memory and stable storage on a disk.
سؤال
Which of the following is not true about the difficulty of index selection?

A) The number of choices of indexes is linear in the number of columns
B) The query optimizer may have subtle reasons not to use an index
C) Values of parameters used in SQL statements of forms often vary from highly selective to not very selective
D) Index choices can be interrelated in a subtle way
سؤال
A(n)_____________ file is a specialized file structure that transforms a key value into a physical record address to provide fast access to the data.
سؤال
File structures,data placement,data formatting,and denormalization are all ____________ of the physical database design process.
سؤال
To analyze value distribution in a table,a ___________________ is often used,which is a two-dimensional graph where the x-axis represents the column ranges and the y-axis represents the number of rows containing the range of values.
سؤال
A(n)____________ is a collection of physical records organized for efficient access.
سؤال
Which of the following is not true of having sname as an attribute of ENROLLMENT?

A) This will facilitate retrieving grades of students in different offerings
B) This will result in update anomalies when the student's grades are updated
C) This will cause ENROLLMENT to violate 2NF
D) This will violate referential integrity in table ENROLLMENT
سؤال
One of the inputs to the physical database design is the _________________,which are statistics for each table such as the number of rows and unique column values.
سؤال
Figuer: <strong>Figuer:   The restriction operation for RENTALS.PICKUP = 'ERIE' OR RENTALS.PICKUP = 'CARY' Should be performed:</strong> A) In AA B) In BB C) In CC D) In DD <div style=padding-top: 35px>
The restriction operation for RENTALS.PICKUP = 'ERIE' OR RENTALS.PICKUP = 'CARY'
Should be performed:

A) In AA
B) In BB
C) In CC
D) In DD
سؤال
Which of the following is true about access plan execution?

A) Machine code generated from the access plan executes faster than interpreting the access plan
B) The difference in execution time of machine code and of interpretation is usually small for most users
C) DBMS usually interpret access plan rather than generate machine code because of the great variety of hardware
D) All of the above
سؤال
Figuer: <strong>Figuer:   The following operation should be performed in BB:</strong> A) Sort(CID) B) Sort(MAKE) C) Merge join D) Restriction operations <div style=padding-top: 35px>
The following operation should be performed in BB:

A) Sort(CID)
B) Sort(MAKE)
C) Merge join
D) Restriction operations
سؤال
Which of the following statements is not true when having overall_gpa and gpa_in_major as attributes of the STUDENT table?

A) This will increase the time of retrieving the overall_gpa and gpa_in_major for students
B) This will increase the time of updates whenever a grade is changed
C) This will not change the normal form of the table STUDENT
D) This will avoid join operations when retrieving the gpa_in_major for a student
سؤال
Figuer: <strong>Figuer:   The following operation should be performed in AA:</strong> A) Sort(CID) B) Sort(MAKE) C) Merge join D) Restriction operations <div style=padding-top: 35px>
The following operation should be performed in AA:

A) Sort(CID)
B) Sort(MAKE)
C) Merge join
D) Restriction operations
سؤال
There is a DBMS with 3 disks that can be read and written in parallel and a file that contains the following sequential physical records: PR1,PR2,PR3,PR4,PR5,PR6,PR7,PR8,PR9.The records are allocated in sequence to disk stripes.Select the correct statement:

A) PR1, PR2, PR3 are located each on a different disk
B) PR1, PR2, PR3 may be read in parallel from disks
C) PR1, PR2, PR3 may be written in parallel to disks
D) All of the above
سؤال
In the processing of an SQL statement by the DBMS,a relational algebra query is the output of:

A) Code generation
B) Query transformation
C) Syntax and semantics analysis
D) Access plan evaluation
سؤال
A simple file structure in which records are stored in the order they are inserted is a(n)_________________ file.
سؤال
Figuer: <strong>Figuer:   What programmer's or user's decision typically will affect the performance of the query?</strong> A) Placing the condition PICKUP = 'ERIE' OR PICKUP = 'CARY' before the condition CUSTOMER.CID = RENTALS.CID in the query. B) Placing the condition PICKUP = 'ERIE' OR PICKUP = 'CARY' after the condition CUSTOMER.CID = RENTALS.CID and before the condition RENTALS.MAKE = RENTCOST.MAKE in the query. C) Selecting the attributes CID in CUSTOMERS and CID in RENTALS as indexes on the tables. D) None of the above <div style=padding-top: 35px>
What programmer's or user's decision typically will affect the performance of the query?

A) Placing the condition "PICKUP = 'ERIE' OR PICKUP = 'CARY'" before the condition "CUSTOMER.CID = RENTALS.CID" in the query.
B) Placing the condition "PICKUP = 'ERIE' OR PICKUP = 'CARY'" after the condition "CUSTOMER.CID = RENTALS.CID" and before the condition "RENTALS.MAKE = RENTCOST.MAKE" in the query.
C) Selecting the attributes CID in CUSTOMERS and CID in RENTALS as indexes on the tables.
D) None of the above
سؤال
One of the inputs to the physical database design is the _________________,which are statistics for each form,report and query,such as the tables accessed/updated and the frequency of access/update.
سؤال
Using the index matching rules on a table with indexes created on columns C1,C2,C3,and C4,list the column(s)that would be matched if the WHERE clause contained the conditions "C2 = 10 AND C3 = 15 AND C4 = 4"._____________
سؤال
A(n)______________________ is a tree that encodes decisions about file structures to access individual tables,the order of joining tables,and the algorithm to join tables.
سؤال
In Btree file structures,the physical record size,the key size and the pointer size determine node capacity.How many pairs can be stored in a node if the physical record size is 1024 bytes,the key size is 8 bytes,and the pointer size is 8 bytes? __________
سؤال
When a condition in the WHERE clause of a query references a column that has been indexed,the DBMS performs an operation known as ____________________ to determine if the index can be used.
سؤال
In a(n)_________________ file,the most popular variation of the Btree,all keys are stored redundantly in the leaf nodes.
سؤال
A(n)_________________ index references the rows of a child table that join with rows of the parent table containing the column.
سؤال
A dominant RAID architecture which uses both data and error-correcting pages to improve reliability is ____________.
سؤال
One of the dominant RAID architectures,___________ involves a full mirror or redundant array of disks,on which each physical record is written to both arrays in parallel.
سؤال
In a ____________ index,the order of the data records is unrelated to the index order.
سؤال
The process of associating a query with an access plan is known as ____________________.
سؤال
A(n)________________ is a situation that occurs when a hash function assigns the same physical record address to more than one key in a file.
سؤال
A popular tree-shaped file structure used by many DBMSs that demonstrates good performance on both sequential searches and key searches is a(n)________________.
سؤال
List three characteristics of a Btree file structure that lend themselves to the possible meaning of the B in the name: _________________________
سؤال
In a ____________ index,the order of the data records is close to the index order.
سؤال
Using the index matching rules on a table with indexes created on columns C1,C2,C3,and C4,list the column(s)that would be matched if the WHERE clause contained the conditions "C2 = 10 AND C1 BETWEEN 15 AND 20 AND C3 <= 4"._____________
سؤال
______________ is a collection of disks that operates as a single disk.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/76
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 8: Physical Database Design
1
The ideal Btree structure is wide,i.e.it has many arrows branching from each node,and short,i.e.it has a small number of levels between the root and leaf nodes.
True
2
In a hash file,if two keys hash to the same physical address it is referred to as a contraction.
True
Explanation: It is referred to as a collision.
3
In index matching,the condition in the WHERE clause can never contain pattern matching (using the keyword LIKE),regardless of whether the index is a single-column or a composite index.
False
Explanation: In a single-column index, LIKE is acceptable as long as the pattern searched for does not contain a meta character as the first part of the pattern.
4
A logical record may be split across several physical records.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
5
Unordered sequential files are sometimes known as heap files.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
6
To improve the response time to access and change a database,consumption of all of the resources used by database processing should be minimized,including physical record transfers,main memory and disk space.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
7
A Sequential File is a simple file organization in which records are stored in insertion order or by key value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
8
A bitmap join index is actually a precomputed join from a column in a parent table to the rows of the child table that join with rows of the parent table.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
9
In a Btree structure,the height of the tree determines the number of physical record accesses required to locate a particular key,with the cost of access being less than or equal to the height.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
10
Physical records are synonymous to blocks or pages.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
11
INSERT and DELETE statements affect only the indexes of the records being added or deleted.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
12
Query binding indicates how to implement a query as operations on a file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
13
Periodic reorganization of a file as it becomes too full is necessary for both static hashing and Btree file structures.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
14
Although they are useful when more than 5% of the rows of a file must be retrieved,clustering indexes are harder to maintain than a non-clustering index when data is modified.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
15
The B+tree structure improves the performance of sequential searches over Btree because the leaf nodes are connected together so that the search does not have to move up and down the tree.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
16
Different hash functions may be used on different attributes of the same table.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
17
In order to optimize queries,some DBMSs allow the programmer to use hints that influence the access plan,but these should be used cautiously because a hint will override the optimizer.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
18
In the processing of an SQL statement by the DBMS,a parsed query is the output of the code generation task.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
19
Bitmap indexes are a good alternative to Btree index nodes when the columns to be indexed contain only a few values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
20
In hash files,if a collision occurs because two keys hash to the same physical address,one method for locating a physical record with free space is a linear probe.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
21
Chose the correct statement regarding memory access time and disk access time:

A) memory access time is typically a million times faster than disk access time
B) disk access time is typically a million times faster than memory access time
C) memory access time is essentially the same as disk access time
D) memory access time is determined by the speed of the disk rotation and magnetic head movement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
22
To maintain the number of collisions at an adequate level without wasting too much storage,the ratio of used records to the total number of records should be as follows:

A) At least 90%
B) At most 90%
C) At most 70%
D) At most 20%
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
23
In selecting an index,a column that has almost unique values is a good choice for a clustering index if it is used in equality conditions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
24
During the query optimization process,which phase analyzes your query to ensure that you have not violated language constraints (example: misspelled key words)or misused columns and tables (example: trying to compare columns with incompatible data types)?

A) Syntax and semantic analysis
B) Query transformation
C) Access plan evaluation
D) Access plan interpretation
E) Code generation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
25
Which of the following is not an output of physical design?

A) Choice of index files
B) Choice of candidate keys
C) Placing rows from two tables in the same physical record
D) Lowering the normal form level of two tables by combining them
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
26
During the query optimization process,which phase generates and evaluates access plans and chooses the access plan with the lowest cost?

A) Syntax and semantic analysis
B) Query transformation
C) Access plan evaluation
D) Access plan interpretation
E) Code generation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
27
Figuer: <strong>Figuer:   Each node of the B-tree can contain at most 4 keys.After inserting into the B-tree a record with key = 62 and a record with key = 85,the B-tree will have the following number of nodes (including the root):</strong> A) 3 B) 4 C) 5 D) 6
Each node of the B-tree can contain at most 4 keys.After inserting into the B-tree a record with key = 62 and a record with key = 85,the B-tree will have the following number of nodes (including the root):

A) 3
B) 4
C) 5
D) 6
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
28
You should avoid creating too many indexes on tables which will have many insertion and/or deletion operations.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
29
Which one of the following is true about B-trees (including B-tree variations)?

A) The B-tree structure is used by many DBMS
B) The B-tree is rarely used because it is hard to implement
C) The B-tree is a theoretical model not used at all
D) The B-tree has been replaced in new relational DBMS by radically different data structures.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
30
An index on a combination of columns is just as flexible as multiple indexes on the individual columns,so either choice would be appropriate.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
31
Which of the following is used in establishing table profiles?

A) Number of rows
B) Number of physical records
C) Distribution of values in a column
D) All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
32
A physical record:

A) May contain exactly one logical record
B) May contain several logical records from one table
C) May contain several logical records from different tables
D) All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
33
Which of the following contributes to the difficulty of physical database design?

A) Complexity of the specific DBMS environment
B) Application profiles are hard to collect and changing
C) Uncertainty about the number of physical record accesses
D) All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
34
Which of the following types of file is usually not provided by relational DBMS?

A) Heap
B) Hash file
C) Stack
D) B-tree
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
35
Figuer: <strong>Figuer:   Each node of the B-tree can contain at most 4 keys.To delete the records with key = 30 and key = 20,do the following:</strong> A) Delete keys 20 and 30 from node B B) Delete keys 20 and 30 from node B, move key 15 from B to A and delete node B C) Delete keys 20 and 30 from node B, and move key = 10 from A to B D) Delete keys 20 and 30 from node B, and move 50 from C to A
Each node of the B-tree can contain at most 4 keys.To delete the records with key = 30 and key = 20,do the following:

A) Delete keys 20 and 30 from node B
B) Delete keys 20 and 30 from node B, move key 15 from B to A and delete node B
C) Delete keys 20 and 30 from node B, and move key = 10 from A to B
D) Delete keys 20 and 30 from node B, and move 50 from C to A
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
36
To retrieve logical record 2312,how many physical records will need to be accessed?

A) 1
B) 2
C) 3
D) 4
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
37
In RAID technology,striping involves the allocation of logical records to different disks.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
38
Figuer: <strong>Figuer:   Each node of the B-tree can contain at most 4 keys.To insert into the B-tree a record with key = 25,do the following:</strong> A) Split the node labeled B B) Insert the record into the node labeled B C) Insert the record into the node labeled A D) Split the node labeled C
Each node of the B-tree can contain at most 4 keys.To insert into the B-tree a record with key = 25,do the following:

A) Split the node labeled B
B) Insert the record into the node labeled B
C) Insert the record into the node labeled A
D) Split the node labeled C
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
39
In the processing of an SQL statement by the DBMS,code generation:

A) Comes first
B) Follows query transformation
C) Follows syntax and semantics analysis
D) Follows access plan evaluation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
40
Which logical record (identified by empno)is stored at physical address 13?

A) 2313
B) 2211
C) 2012
D) 2311
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
41
A simple file structure in which records are stored by a key value is a(n)_________________ file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
42
Query binding:

A) Saves the access plan selected for a query
B) Reduces optimization time
C) May be changed if table profiles change
D) All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
43
A(n)______________ is a collection of bytes that are transferred between volatile storage in main memory and stable storage on a disk.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
44
Which of the following is not true about the difficulty of index selection?

A) The number of choices of indexes is linear in the number of columns
B) The query optimizer may have subtle reasons not to use an index
C) Values of parameters used in SQL statements of forms often vary from highly selective to not very selective
D) Index choices can be interrelated in a subtle way
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
45
A(n)_____________ file is a specialized file structure that transforms a key value into a physical record address to provide fast access to the data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
46
File structures,data placement,data formatting,and denormalization are all ____________ of the physical database design process.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
47
To analyze value distribution in a table,a ___________________ is often used,which is a two-dimensional graph where the x-axis represents the column ranges and the y-axis represents the number of rows containing the range of values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
48
A(n)____________ is a collection of physical records organized for efficient access.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
49
Which of the following is not true of having sname as an attribute of ENROLLMENT?

A) This will facilitate retrieving grades of students in different offerings
B) This will result in update anomalies when the student's grades are updated
C) This will cause ENROLLMENT to violate 2NF
D) This will violate referential integrity in table ENROLLMENT
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
50
One of the inputs to the physical database design is the _________________,which are statistics for each table such as the number of rows and unique column values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
51
Figuer: <strong>Figuer:   The restriction operation for RENTALS.PICKUP = 'ERIE' OR RENTALS.PICKUP = 'CARY' Should be performed:</strong> A) In AA B) In BB C) In CC D) In DD
The restriction operation for RENTALS.PICKUP = 'ERIE' OR RENTALS.PICKUP = 'CARY'
Should be performed:

A) In AA
B) In BB
C) In CC
D) In DD
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
52
Which of the following is true about access plan execution?

A) Machine code generated from the access plan executes faster than interpreting the access plan
B) The difference in execution time of machine code and of interpretation is usually small for most users
C) DBMS usually interpret access plan rather than generate machine code because of the great variety of hardware
D) All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
53
Figuer: <strong>Figuer:   The following operation should be performed in BB:</strong> A) Sort(CID) B) Sort(MAKE) C) Merge join D) Restriction operations
The following operation should be performed in BB:

A) Sort(CID)
B) Sort(MAKE)
C) Merge join
D) Restriction operations
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
54
Which of the following statements is not true when having overall_gpa and gpa_in_major as attributes of the STUDENT table?

A) This will increase the time of retrieving the overall_gpa and gpa_in_major for students
B) This will increase the time of updates whenever a grade is changed
C) This will not change the normal form of the table STUDENT
D) This will avoid join operations when retrieving the gpa_in_major for a student
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
55
Figuer: <strong>Figuer:   The following operation should be performed in AA:</strong> A) Sort(CID) B) Sort(MAKE) C) Merge join D) Restriction operations
The following operation should be performed in AA:

A) Sort(CID)
B) Sort(MAKE)
C) Merge join
D) Restriction operations
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
56
There is a DBMS with 3 disks that can be read and written in parallel and a file that contains the following sequential physical records: PR1,PR2,PR3,PR4,PR5,PR6,PR7,PR8,PR9.The records are allocated in sequence to disk stripes.Select the correct statement:

A) PR1, PR2, PR3 are located each on a different disk
B) PR1, PR2, PR3 may be read in parallel from disks
C) PR1, PR2, PR3 may be written in parallel to disks
D) All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
57
In the processing of an SQL statement by the DBMS,a relational algebra query is the output of:

A) Code generation
B) Query transformation
C) Syntax and semantics analysis
D) Access plan evaluation
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
58
A simple file structure in which records are stored in the order they are inserted is a(n)_________________ file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
59
Figuer: <strong>Figuer:   What programmer's or user's decision typically will affect the performance of the query?</strong> A) Placing the condition PICKUP = 'ERIE' OR PICKUP = 'CARY' before the condition CUSTOMER.CID = RENTALS.CID in the query. B) Placing the condition PICKUP = 'ERIE' OR PICKUP = 'CARY' after the condition CUSTOMER.CID = RENTALS.CID and before the condition RENTALS.MAKE = RENTCOST.MAKE in the query. C) Selecting the attributes CID in CUSTOMERS and CID in RENTALS as indexes on the tables. D) None of the above
What programmer's or user's decision typically will affect the performance of the query?

A) Placing the condition "PICKUP = 'ERIE' OR PICKUP = 'CARY'" before the condition "CUSTOMER.CID = RENTALS.CID" in the query.
B) Placing the condition "PICKUP = 'ERIE' OR PICKUP = 'CARY'" after the condition "CUSTOMER.CID = RENTALS.CID" and before the condition "RENTALS.MAKE = RENTCOST.MAKE" in the query.
C) Selecting the attributes CID in CUSTOMERS and CID in RENTALS as indexes on the tables.
D) None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
60
One of the inputs to the physical database design is the _________________,which are statistics for each form,report and query,such as the tables accessed/updated and the frequency of access/update.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
61
Using the index matching rules on a table with indexes created on columns C1,C2,C3,and C4,list the column(s)that would be matched if the WHERE clause contained the conditions "C2 = 10 AND C3 = 15 AND C4 = 4"._____________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
62
A(n)______________________ is a tree that encodes decisions about file structures to access individual tables,the order of joining tables,and the algorithm to join tables.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
63
In Btree file structures,the physical record size,the key size and the pointer size determine node capacity.How many pairs can be stored in a node if the physical record size is 1024 bytes,the key size is 8 bytes,and the pointer size is 8 bytes? __________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
64
When a condition in the WHERE clause of a query references a column that has been indexed,the DBMS performs an operation known as ____________________ to determine if the index can be used.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
65
In a(n)_________________ file,the most popular variation of the Btree,all keys are stored redundantly in the leaf nodes.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
66
A(n)_________________ index references the rows of a child table that join with rows of the parent table containing the column.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
67
A dominant RAID architecture which uses both data and error-correcting pages to improve reliability is ____________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
68
One of the dominant RAID architectures,___________ involves a full mirror or redundant array of disks,on which each physical record is written to both arrays in parallel.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
69
In a ____________ index,the order of the data records is unrelated to the index order.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
70
The process of associating a query with an access plan is known as ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
71
A(n)________________ is a situation that occurs when a hash function assigns the same physical record address to more than one key in a file.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
72
A popular tree-shaped file structure used by many DBMSs that demonstrates good performance on both sequential searches and key searches is a(n)________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
73
List three characteristics of a Btree file structure that lend themselves to the possible meaning of the B in the name: _________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
74
In a ____________ index,the order of the data records is close to the index order.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
75
Using the index matching rules on a table with indexes created on columns C1,C2,C3,and C4,list the column(s)that would be matched if the WHERE clause contained the conditions "C2 = 10 AND C1 BETWEEN 15 AND 20 AND C3 <= 4"._____________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
76
______________ is a collection of disks that operates as a single disk.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.