Machine-translated by Google. Questions are authored in English.
Top

Physical Database Design Questions and Answers

11.

What is the best data type definition for Oracle when a field is alphanumeric and has a fixed length?

Answer: A

Correct answer: CHAR

CHAR is fixed width and pads every value to the declared length, which is exactly right for data that genuinely has one length - a two-character state code, a fixed-format reference. For anything varying, the padding is waste, and VARCHAR2 is the correct choice instead.

Please log in or register to report this question.

12.

Hashing algorithm converts a primary key value into a record address.

Answer: A

Correct answer: True

A hashing algorithm computes an address directly from the key value, so a record is found in one access with no index to traverse. The price is that the records are then in no useful order, so sequential processing by key becomes expensive, and that collisions must be handled when two keys hash to the same address.

Please log in or register to report this question.

13.

If a denormalization situation exists with a many-to-many or associative binary relationship, which of the following is true?

Answer: B

Correct answer: All fields are stored in two relations.

A many-to-many relationship denormalises into the associative relation and one of the participants, giving two relations rather than three. It cannot be collapsed into one, because doing so would repeat every attribute of one participant for each of its associations - which is the redundancy normalisation exists to prevent.

Please log in or register to report this question.

14.

Which of the following is not a factor to consider when switching from small to large block size?

Answer: B

Correct answer: The number of columns

Block size decisions turn on how much data a read brings in and how many rows share a block, so row length, block contention and random access speed all bear on it. The number of columns matters only through its effect on the row length, and so is not a separate factor.

Please log in or register to report this question.

15.

What is the best data type definition for Oracle when a field is alphanumeric and has a length that can vary?

Answer: A

Correct answer: VARCHAR2

VARCHAR2 stores only the characters actually supplied, so a column declared long enough for the worst case costs nothing for the shorter values. CHAR pads every value to the full declared width, which wastes space and can complicate comparison when the data varies in length.

Please log in or register to report this question.

Answer: B

Correct answer: the number of physical records per page.

The blocking factor is how many records fit in one block or page, and it follows from the record length and the block size. It governs how many records one read brings in, which is why sequential processing is faster with a high blocking factor and why block size is a physical design decision.

Please log in or register to report this question.

17.

Denormalization and clustering can work well to minimize data access time for small records.

Answer: A

Correct answer: True

Clustering places records that are read together on the same page, so one physical read brings in all of them, and denormalisation removes the join that would otherwise have been needed. Both work best on small records, since more of them fit in a block and the saving per read is correspondingly greater.

Please log in or register to report this question.

18.

When storage space is scarce and physical records cannot span pages, creating multiple physical records from one logical relation will minimize wasted storage space.

Answer: A

Correct answer: True

Where a record cannot span a page, any space left at the end of a page after the last whole record is wasted. Splitting the relation into several shorter physical records lets more of them fit, so less is left over. It is a genuine trade - the retrieval now needs more than one record - and it is worth making only when space is the binding constraint.

Please log in or register to report this question.

19.

Distributing the columns of a table into several separate physical records is known as horizontal partitioning.

Answer: B

Correct answer: False

Distributing the columns of a table is vertical partitioning. Horizontal partitioning distributes the rows, typically by a value such as region or date, so each partition holds complete records for part of the population. The statement has given the definition of one under the name of the other.

Please log in or register to report this question.

20.

If a denormalization situation exists with a one-to-one binary relationship, which of the following is true?

Answer: A

Correct answer: All fields are stored in one relation.

In a one-to-one relationship each row on either side matches at most one on the other, so the two relations can be merged with no duplication of any value. That is why this is the safest case for denormalisation - the join is removed and nothing is repeated in exchange.

Please log in or register to report this question.

Loading…
Tags: Physical Database Design Questions and Answers || Physical Database Design MCQ Questions and Answers || Physical Database Design GK Questions and Answers || Physical Database Design GK MCQ Questions || Physical Database Design Multiple Choice Questions and Answers || Physical Database Design GK || GK on Physical Database Design || Database Questions and Answers || Database MCQ Questions and Answers || Database GK Questions and Answers || GK on Database