Skip to content

平成22年度 春期 ITパスポート試験 問94

This question's explanation and your answers so far.

問94
頻出度★★★

A社研究所の資料室では,文献の貸出管理業務を行っている。文献の貸出管理業務には,PCのデータベースソフトを活用した文献貸出管理システム(以下,文献システムという)を利用している。 文献システムのデータベース構造は,次のとおりである。 社員表

社員番号社員名メールアドレス

文献表

文献番号文献名

貸出表

文献番号文献名社員番号社員名メールアドレス貸出日返却日

保有する文献と貸出についての条件は,次のとおりである。 〔保有する文献と貸出についての条件〕 (1) 同一文献は複数保有せず,文献ごとに固有な文献番号が採番されている。 (2) 貸出期間は,貸出日を含んで最長2週間である。ここで,返却された文献をその日に違う社員に貸し出すことは可能であるが,同じ社員に対して返却した同一文献をその日のうちに貸し出すことはない。 貸出から返却までの手続は,次のとおりである。 〔貸出から返却までの手続〕 (1) 社員は借りたい文献を書庫から取り出して,資料室の担当者(以下,担当者という)に手渡し,社員番号を提示する。 (2) 担当者は文献システムを使って貸出処理を行い,社員に文献を手渡す。 (3) 文献返却時,社員は担当者に文献を返却し,担当者は文献システムを使って返却処理を行う。 文献システムにおける貸出処理と返却処理の仕様は,次のとおりである。 〔貸出処理〕 (1) 文献番号で文献表を検索し,文献名を取得する。 (2) 社員番号で社員表を検索し,社員名とメールアドレスを取得する。 (3) 貸出表のレコード(以下,貸出レコードという)を用意して,(1),(2)で取得した文献番号,文献名,社員番号,社員名,メールアドレスを設定し,貸出日に当日の日付を,返却日に空白値を設定する。 (4) (3)で設定した貸出レコードを貸出表に追加する。 〔返却処理〕 (1) 文献番号で貸出表を検索し,返却日が空白値である貸出レコードを抽出する。 (2) 抽出した貸出レコードの返却日に当日の日付を設定し,貸出表を更新する。 文献システムの〔貸出処理〕と〔返却処理〕に基づき,次の図に示す DFD を作成した。DFD の a~c に入る適切な字句の組合せはどれか。 〔DFD〕 - 「社員」(データの源泉・吸収)から「a 処理」へ,および「社員」から「c 処理」へデータが流れる。 - 「a 処理」と「b 表」(データストア)の間,および「c 処理」と「b 表」の間でデータが流れる。 - 「b 表」の左右にはそれぞれ網掛けのデータストアがあり,いずれからも「a 処理」へデータが流れる。 注 網掛けの部分は,表示していない。

出典 平成22年度 春期 ITパスポート試験 問94
解説

問 94

  • ア

    正解 The correct answer is ア (a=lending, b=lending, c=return). The deciding clue is the direction of the arrows in the figure. Into “process a” flows not only data from “Employee” (the data source/sink) but also data from the two data stores hidden by the shading, while the only flow leaving “process a” is a one-way write into “table b”. This is exactly what the lending process does: it searches the document table by document number to obtain the document name, searches the employee table by employee number to obtain the employee name and e-mail address (these two referenced tables are the shaded data stores), and then creates a new lending record combining them and adds it to the lending table. Therefore a=lending process, and b=lending table, the table it adds to. Meanwhile “process c” receives a document number from the employee and has two-way flows with “table b”: b→c (read) and c→b (write). This matches the behavior of the return process, which searches the lending table for the lending record whose return date is blank, extracts it, sets that return date to the current date, and thereby updates the lending table — a read plus an update. So c=return process, and the combination is ア.

  • Incorrectイ

    The pairing a=lending and c=return is correct, but b is wrong. The document table is what the lending process searches in order to obtain the document name, so the data flow would have to run document table → process a, which is the opposite of the write direction process a → table b shown in the figure. The document table is one of the two data stores hidden by the shading, so it does not fit b. b is the lending table, which stores the lending records created by the lending process and which the return process searches and updates.

  • Incorrectウ

    Here a=return and c=lending, so the two roles are swapped. The return process first searches the lending table and extracts the matching record, and only then updates it, so its exchange with the table must be two-way; that does not match the figure, which shows only the one-way flow process a → table b. Also, if the lending process were c, the references that the lending process needs to the document table and the employee table (the flows from the shaded data stores into process a) could not be explained.

  • Incorrectエ

    In addition to a and c being swapped, b is also wrong. If b were the document table, then the lending table that holds the lending records created by the lending process would appear nowhere in the DFD, and the return process would also be unable to extract and update a lending record. Furthermore, the flow this option implies — the return process, placed at a, writing one-way into the document table — does not match the specification of the return process, which searches and updates the lending table.

ここがポイント
  • A DFD (data flow diagram) represents the flow of a business process with four symbols: data sources/sinks (external entities, rectangles), processes (circles), data stores (tables or files, double lines), and data flows (arrows). The basic point when reading one is that the direction of an arrow shows whether it is a read from a data store (store → process) or a write to it (process → store).
  • A process that creates and adds a new record only writes one-way into that data store, whereas a process that searches for an existing record and updates it exchanges data with the same data store in both directions. Using this asymmetry as a clue, you can determine from the figure alone, and uniquely, which process is the lending process and which is the return process.
用語

Your answers