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

Physical Database Design Questions and Answers

21.

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.

22.

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.

23.

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.

25.

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.

26.

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.

27.

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.

28.

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.

29.

A field represents each component of a composite attribute.

Answer: A

Correct answer: True

A composite attribute is stored as one field per component - street, town and postcode rather than a single address field - whenever the parts will be used separately. Storing it whole is the alternative, and the choice turns on whether anything will ever need to search or sort on a part.

Please log in or register to report this question.

Answer: D

Correct answer: All of the above.

All three are integrity controls the DBMS itself can enforce: a default supplied when no value is given, a domain constraint limiting the permissible values, and a not-null constraint requiring one. Placing them in the database rather than in each application means every route to the data is checked identically.

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