×

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 Selection Operation in Query Processing MCQs

DBMS Selection Operation in Query Processing MCQs: This section contains multiple-choice questions and answers on Selection Operation in Query Processing in DBMS.
Submitted by Anushree Goswami, on May 19, 2022

1. The file scan performs the selection operation.

  1. Updation
  2. Insertion
  3. Selection
  4. Deletion

Answer: C) Selection

Explanation:

The file scan performs the selection operation.

Discuss this Question


2. Data is found and accessed by using ___ algorithms called file scans.

  1. Update
  2. Search
  3. Add
  4. Delete

Answer: B) Search

Explanation:

Data is found and accessed by using search algorithms called file scans.

Discuss this Question


3. As the lowest level of query processing, file scans are used.

  1. Middle
  2. Centre
  3. Highest
  4. Lowest

Answer: D) Lowest

Explanation:

As the lowest level of query processing, file scans are used.

Discuss this Question


4. A file scan reads a relation in an RDBMS or relational database system only if the whole relationship is stored in ___ file.

  1. Multiple
  2. Two
  3. Three
  4. One

Answer: D) One

Explanation:

A file scan reads a relation in an RDBMS or relational database system only if the whole relationship is stored in one file.

Discuss this Question


5. ____ search involves scanning each record to determine whether it meets the given selection criteria.

  1. Linear
  2. Cross
  3. Merge
  4. None

Answer: A) Linear

Explanation:

Linear search involves scanning each record to determine whether it meets the given selection criteria.

Discuss this Question


6. The linear search algorithm, on the other hand, is the ____ type of search, but it can be applied to any situation.

  1. Fastest
  2. Average
  3. Slowest
  4. None

Answer: C) Slowest

Explanation:

The linear search algorithm, on the other hand, is the slowest type of search, but it can be applied to any situation.

Discuss this Question


7. There's no need to take into account the ___ when using the Linear Search algorithm.

  1. Nature of Selection
  2. Availability of indices
  3. File Sequence
  4. All of the above

Answer: D) All of the above

Explanation:

There's no need to take into account the nature of selection, availability of indices, or file sequence when using the Linear Search algorithm.

Discuss this Question


8. Index ___ are another name for index-based search algorithm.

  1. Scans
  2. Logs
  3. Stacks
  4. Queues

Answer: A) Scans

Explanation:

Index scans are another name for index-based search algorithm.

Discuss this Question


9. ____ are the index structures used by index-based search algorithms.

  1. Access roads
  2. Access paths
  3. Access Terminal
  4. None

Answer: B) Access paths

Explanation:

Access paths are the index structures used by index-based search algorithms.

Discuss this Question


10. Data in a file can be ___ by using access paths.

  1. Accessed
  2. Located
  3. Both A and B
  4. None of the above

Answer: C) Both A and B

Explanation:

Data in a file can be accessed and located by using access paths.

Discuss this Question


11. Our selection condition is based on finding a record that satisfies the ____ condition in the index.

  1. Non-equality
  2. Equality
  3. Duality
  4. Non-duality

Answer: B) Equality

Explanation:

Our selection condition is based on finding a record that satisfies the equality condition in the index.

Discuss this Question


12. A key attribute having a primary key is compared for equality.

  1. Primary
  2. Alternate
  3. Composite
  4. None

Answer: A) Primary

Explanation:

A key attribute having a primary key is compared for equality.

Discuss this Question


13. We can fetch ___ record(s) with equality on key, as opposed to equality on non-key.

  1. One
  2. Two
  3. Three
  4. Multiple

Answer: D) Multiple

Explanation:

We can fetch multiple records with equality on key, as opposed to equality on non-key.

Discuss this Question


14. When the selection criteria specify an ___ comparison on a non-key, multiple records can be fetched using a primary key.

  1. Equality
  2. Duality
  3. Non-equality
  4. Non-duality

Answer: A) Equality

Explanation:

When the selection criteria specify an equality comparison on a non-key, multiple records can be fetched using a primary key.

Discuss this Question


15. ____ indexes can be used for selections with equality conditions.

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

Answer: B) Secondary

Explanation:

Secondary indexes can be used for selections with equality conditions.

Discuss this Question


16. When the equality condition is met on the key, or multiple records when it is met on the nonkey, we can retrieve a single record from the ___ index strategy.

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

Answer: B) Secondary

Explanation:

When the equality condition is met on the key, or multiple records when it is met on the nonkey, we can retrieve a single record from the secondary index strategy.

Discuss this Question


17. A single record can be retrieved for the same time as the ___ index.

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

Answer: A) Primary

Explanation:

A single record can be retrieved for the same time as the primary index.

Discuss this Question


18. Using ___ can be used to make selections based on comparisons in a relation.

  1. Linear Search
  2. Indices
  3. Both A and B
  4. None of the above

Answer: C) Both A and B

Explanation:

Using linear search or indices can be used to make selections based on comparisons in a relation.

Discuss this Question


19. An ordered primary index, such as an index from the primary __ tree, is used when the selection condition is a comparison.

  1. B
  2. B+
  3. B++
  4. None

Answer: B) B+

Explanation:

An ordered primary index, such as an index from the primary B+ tree, is used when the selection condition is a comparison.

Discuss this Question


20. File scans start searching from the very beginning until the very end and output all ___ that meet the given selection criteria.

  1. Attributes
  2. Tuples
  3. Columns
  4. None

Answer: B) Tuples

Explanation:

File scans start searching from the very beginning until the very end and output all tuples that meet the given selection criteria.

Discuss this Question


21. In the case of Secondary Index, comparison, the files scan scans the blocks of the lowest-level index to satisfy the selection operation involving the characters ____, or >=.

  1. <=
  2. All of the above

Answer: D) All of the above

Explanation:

In the case of Secondary Index, comparison, the files scan scans the blocks of the lowest-level index to satisfy the selection operation involving the characters <, >, <=, or >=.

Discuss this Question


22. In general, only a few records should be selected from the ___ index.

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

Answer: B) Secondary

Explanation:

In general, only a few records should be selected from the secondary index.

Discuss this Question


23. By providing ___ to each record, an index facilitates the retrieval of a record by the users.

  1. Logs
  2. Arrays
  3. Pointers
  4. None

Answer: C) Pointers

Explanation:

By providing pointers to each record, an index facilitates the retrieval of a record by the users.

Discuss this Question


24. ___ may need to be retrieved from different blocks in the files, so I/O operations may be required.

  1. Files
  2. Records
  3. Databases
  4. Tables

Answer: B) Records

Explanation:

Records may need to be retrieved from different blocks in the files, so I/O operations may be required.

Discuss this Question


25. The secondary index becomes ___ if there are many records to fetch.

  1. Cheap
  2. Expensive
  3. Not costly
  4. None

Answer: B) Expensive

Explanation:

The secondary index becomes expensive if there are many records to fetch.

Discuss this Question


26. The ___ selection predicates are used when working on a complex selection.

  1. Conjunction
  2. Disjunction
  3. Negation
  4. All of the above

Answer: D) All of the above

Explanation:

The Conjunction, Disjunction, and Negation selection predicates are used when working on a complex selection.

Discuss this Question


27. ____ occur when records that satisfy the above selection condition cross.

  1. Conjunction
  2. Disjunction
  3. Negation
  4. None of the above

Answer: A) Conjunction

Explanation:

Conjunctions occur when records that satisfy the above selection condition cross.

Discuss this Question


28. ___ are a union of all records which satisfy the given conditions.

  1. Conjunction
  2. Disjunction
  3. Negation
  4. None of the above

Answer: B) Disjunction

Explanation:

Disjunctions are a union of all records which satisfy the given conditions.

Discuss this Question


29. Each ____ in the block appears together in the block, so we can retrieve all selected records of the block with a single I/O operation.

  1. Pointer
  2. Array
  3. Stack
  4. Queue

Answer: A) Pointer

Explanation:

Each pointer in the block appears together in the block, so we can retrieve all selected records of the block with a single I/O operation.

Discuss this Question





Comments and Discussions!

Load comments ↻





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