Databases

Databases

61 questions · IT Passport · 51–61

Practice

A “Member_management” table that is managed in a relational database was normalized and divided into a “Store” table, a “Member_type” table, and a “Member” table. Which of the following is appropriate as the “Member” table? Here, an underline in a table indicates a primary key, and when one member registers with multiple stores, a member number is assigned for each store.

Member_management

Store_​codeStore_​nameMember_​numberMember_​nameMember_​type_​codeMember_​type_​name
001Sapporo1Shiken Hanako02Gold
001Sapporo2Joho Taro02Gold
002Tokyo1Kodo Jiro03Regular
002Tokyo2Gozen Sakurako01Platinum
003Osaka1Gozen Sakurako03Regular

Store

Store_codeStore_name

Member_type

Member_type_codeMember_type_name

Which of the following lists all and only the appropriate descriptions concerning the setting of a primary key in a relational database?

AA field whose value duplicates that of another record cannot be used as a primary key.BIt cannot be set so that it overlaps with an index.CThe value of a primary key must be a numeric value.DA primary key can be composed of multiple fields.

Which of the following is the join operation in a relational database?

Which of the following is an appropriate description concerning the ACID properties of transaction processing?

Which of the following is the term for the operation that extracts only the Name column from the “Employee” table managed in a relational database?

Employee

Employee numberNameDepartment code
H001Shiken HanakoG02
H002Joho TaroG01
H003Kodo JiroG03
H004Gozen SakurakoG03
H005Gogo SaburoG02

In an account transfer of a financial system, the consistency of the database is maintained by ensuring that, for the withdrawal processing from the transfer source account and the deposit processing to the transfer destination account, either both of the processes are executed or neither of them is executed. What is the term for handling such a series of processes for a database as a transaction and confirming the updated content of the database when the processing has been completed without inconsistency?

Among the functions A through D concerning information systems, which of the following lists all and only those that are provided in a DBMS?

AAccess rights managementBFailure recoveryCConcurrency controlDFirewall

An “Employee” table that is to be managed with a relational database is designed by using the items shown below. Which of the following is a redundant item that can be derived from other items?

Employee

Employee numberEmployee nameDate of birthCurrent ageAddressHobby

Among the descriptions A through C concerning data processing, which of the following lists all and only the effects obtained by introducing a DBMS?

AEven when multiple programs access the same data at the same time, consistency is maintained.BSince the DBMS decides the order of processing according to the priority of each transaction, the response time of real-time processing becomes shorter.CSince the efficiency of the page management of virtual memory improves, the access time to data becomes constant regardless of the amount of data.

A single file was updated concurrently from two (2) PCs. When the processing for data n in the file was performed in the order of ① through ④, which of the following is the final value of data n? Here, the initial value of data n was 10.

Data nFile[Processing details]① Reads data n,and subtracts 5.③ Writes the resultof processing ①to data n.[Processing details]② Reads data n,and adds 7.④ Writes the resultof processing ②to data n.PC-APC-B

In a relational database, which of the following is the result of executing an intersection operation on table A and table B?

Table A

Product namePrice
Gum100
Rice cracker250
Chocolate150

Table B

Product namePrice
Rice cracker250
Chocolate150
Dorayaki100
OptionProduct namePrice