×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

DBMS External Sort-Merge Algorithm MCQs

DBMS External Sort-Merge Algorithm MCQs: This section contains multiple-choice questions and answers on External Sort-Merge Algorithm in DBMS.
Submitted by Anushree Goswami, on May 14, 2022

1. A sort key must be built on any relation to be able to sort it. Then the sorted relation can be read using the index.

  1. Sort
  2. Primary
  3. Index
  4. Composite

Answer: A) Sort

Explanation:

A sort key must be built on any relation to be able to sort it. Then the sorted relation can be read using the index.

Discuss this Question


2. In which case sorting is performed?

  1. A relationship that has a small or medium size in comparison to the main memory.
  2. There is a size difference between relations and memory.
  3. Both A and B
  4. None of the above

Answer: C) Both A and B

Explanation:

Sorting is performed in the case when -

  1. A relationship that has a small or medium size in comparison to the main memory.
  2. There is a size difference between relations and memory.

Discuss this Question


3. Organizing relationships whose sizes are larger than the memory because they do not fit is known as -

  1. Internal Sorting
  2. External Sorting
  3. Organization Sorting
  4. Memory Sorting

Answer: B) External Sorting

Explanation:

Organizing relationships whose sizes are larger than the memory because they do not fit.

Discuss this Question


4. When sorting externally, the ___ merge is the most appropriate method to use.

  1. Internal-sort
  2. External-sort
  3. Merge-sort
  4. None

Answer: B) External-sort

Explanation:

When sorting externally, the external-sort merge is the most appropriate method to use.

Discuss this Question


5. The number M indicates how many disk blocks are available in the ___ memory buffer so that sorting may occur.

  1. Primary
  2. Main
  3. Secondary
  4. Tertiary

Answer: B) Main

Explanation:

The number M indicates how many disk blocks are available in the main memory buffer so that sorting may occur.

Discuss this Question


6. External-sort merge algorithm is called an ___ because it merges N runs.

  1. One-way
  2. Two-way
  3. N-way
  4. Null-way

Answer: C) N-way

Explanation:

External-sort merge algorithm is called an N-way merge because it merges N runs.

Discuss this Question


7. There will either be M or more runs generated depending on the size of the ___.

  1. Relation
  2. Memory
  3. Both A and B
  4. None of the above

Answer: C) Both A and B

Explanation:

There will either be M or more runs generated depending on the size of the relation and memory.

Discuss this Question


8. Since a single block cannot be allocated for each run of the processing, the merge operation will be performed ___ time(s).

  1. Once
  2. Twice
  3. Thrice
  4. Multiple

Answer: D) Multiple

Explanation:

Since a single block cannot be allocated for each run of the processing, the merge operation will be performed multiple times.

Discuss this Question


9. The input buffer blocks of M-1 are large enough for each merge to hold ___ runs.

  1. M
  2. M-2
  3. M-3
  4. M-1

Answer: D) M-1

Explanation:

The input buffer blocks of M-1 are large enough for each merge to hold M-1 runs.

Discuss this Question


10. What is TRUE about initial phase work in this algorithm?

  1. A single run is obtained by merging the first M-1 runs.
  2. The next run of M-1 is also merged.
  3. Until all initial runs are processed, this step continues.
  4. All of the above

Answer: D) All of the above

Explanation:

In case of the initial phase work in this algorithm -

  1. A single run is obtained by merging the first M-1 runs.
  2. The next run of M-1 is also merged.
  3. Until all initial runs are processed, this step continues.

Discuss this Question


11. With ___ exception(s), every block in the relation is read and written only once during each pass.

  1. 1
  2. 2
  3. 3
  4. 4

Answer: B) 2

Explanation:

With two exceptions, every block in the relation is read and written only once during each pass.

Discuss this Question


12. What is/are the two exception(s), every block in the relation is read and written only once during each pass?

  1. It is possible to produce a sorted result without writing the result to the disk on the final pass
  2. The pass may not be able to read out or write some runs.
  3. Both A and B
  4. None of the above

Answer: C) Both A and B

Explanation:

The two exception(s), every block in the relation is read and written only once during each pass are -

  1. It is possible to produce a sorted result without writing the result to the disk on the final pass
  2. The pass may not be able to read out or write some runs.

Discuss this Question





Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.