Introduction to Computing MCQs with Answers
Practice important Introduction to Computing MCQs with answers and explanations.
Chapter: 154
Q2181:
Fill in the blank: The lack of efficiency due to redundancy in a relational database can lead to multiple tuples containing the same __________.
A. Employee identification number
B. Job title
C. Skill code
D. Job identification code
Correct Answer:
A
Chapter: 154
Q2182:
Fill in the blank: To avoid losing job-related information when an employee is deleted, the relational database design should include a separate __________ relation.
A. Employee
B. Job
C. Assignment
D. Department
Correct Answer:
B
Chapter: 154
Q2183:
Fill in the blank: Combining employee, job, and assignment information into a single relation can cause issues with __________.
A. Database performance
B. Data integrity
C. Complexity
D. Redundancy
Correct Answer:
D
Chapter: 155
Q2184:
What operation is used to retrieve specific tuples from a relation?
A. Projection
B. Selection
C. Joins
D. Union
Correct Answer:
B
Chapter: 155
Q2185:
What does selecting tuples with a certain department from the JOB relation result in?
A. A relation containing one tuple
B. A relation containing several tuples
C. A relation with no tuples
D. A relation with duplicate tuples
Correct Answer:
B
Chapter: 155
Q2186:
When retrieving information about an employee from the EMPLOYEE relation, what is the result?
A. A relation with several tuples
B. A relation with no tuples
C. A relation with one tuple
D. A relation with a summary of data
Correct Answer:
C
Chapter: 155
Q2187:
Which relational operation would be used to obtain a list of job titles in a certain department?
A. Projection
B. Selection
C. Joins
D. Union
Correct Answer:
B
Chapter: 155
Q2188:
What is the primary purpose of the SELECT operation in relational databases?
A. To combine tuples from multiple relations
B. To retrieve specific tuples based on criteria
C. To update existing tuples
D. To delete tuples
Correct Answer:
D
Chapter: 155
Q2189:
Fill in the blank: When you select tuples from a relation based on a certain attribute value, you create a new __________ that consists of tuples meeting the criteria.
A. Relation
B. Table
C. View
D. Subset
Correct Answer:
B
Chapter: 155
Q2190:
Fill in the blank: Retrieving all job titles from the JOB relation for a given department results in a relation with __________ tuples.
A. No
B. One
C. Multiple
D. Zero
Correct Answer:
C
Chapter: 155
Q2191:
Fill in the blank: The outcome of selecting information about a specific employee from the EMPLOYEE relation will always be a relation containing __________.
A. Multiple tuples
B. A summary of data
C. One tuple
D. No tuples
Correct Answer:
C
Chapter: 155
Q2192:
Which operation retrieves all tuples from a relation where a specific condition is met?
A. Projection
B. Selection
C. Joins
D. Aggregation
Correct Answer:
B
Chapter: 155
Q2193:
What is an example of a condition you might use in a SELECT operation on the JOB relation?
A. Employee's age
B. Job identification code
C. Employee's name
D. Department attribute
Correct Answer:
B
Chapter: 155
Q2194:
What kind of relation is formed when specific tuples are selected from a parent relation?
A. A temporary relation
B. A permanent relation
C. A view
D. A summary
Correct Answer:
D
Chapter: 156
Q2195:
What does the SELECT operation in relational databases do?
A. It retrieves all tuples from a relation
B. It creates a new relation with selected tuples
C. It updates existing tuples in a relation
D. It deletes tuples from a relation
Correct Answer:
B
Chapter: 156
Q2196:
In the statement `NEW <- SELECT from EMPLOYEE where EmplId = '34Y70'`, what is the purpose of `NEW`?
A. It specifies the relation to be updated
B. It specifies the relation to be deleted
C. It specifies the new relation created from the selection
D. It specifies the relation from which tuples are selected
Correct Answer:
C
Chapter: 156
Q2197:
What will be the content of the `NEW` relation after executing `NEW <- SELECT from EMPLOYEE where EmplId = '34Y70'`?
A. Tuples matching the condition
B. All tuples from EMPLOYEE
C. No tuples
D. Partial tuples matching the condition
Correct Answer:
A
Chapter: 156
Q2198:
Which attribute is used in the SELECT operation to filter tuples in the given example?
A. EmplName
B. EmplAddress
C. EmplId
D. EmplDept
Correct Answer:
C
Chapter: 156
Q2199:
What does the SELECT operation in the example `NEW <- SELECT from EMPLOYEE where EmplId = '34Y70'` focus on?
A. Filtering tuples based on an attribute
B. Joining relations
C. Updating tuples
D. Deleting tuples
Correct Answer:
A
Chapter: 156
Q2200:
Fill in the blank: The result of the SELECT operation `NEW <- SELECT from EMPLOYEE where EmplId = '34Y70'` will be a relation containing tuples where __________.
A. The EmplId attribute is not equal to '34Y70'
B. The EmplId attribute is equal to '34Y70'
C. The EmplId attribute is greater than '34Y70'
D. All tuples in EMPLOYEE
Correct Answer:
B