Skip to content

平成23年度 特別試験 ITパスポート試験 問62

This question's explanation and your answers so far.

問62
頻出度★★☆

“空港”表と“ダイヤ”表がある。F空港から出発し,K空港に到着する時刻が最も早い予約可能な便名はどれか。 空港

空港コード空港名
A0001T空港
A0002K空港
A0003F空港

ダイヤ

便名出発空港コード到着空港コード出発時刻到着時刻予約状況
IPA101A0003A000212:1013:05満席
IPA201A0003A000112:1513:35可能
IPA301A0003A000212:4513:40可能
IPA401A0002A000313:0513:55可能
IPA501A0003A000213:4014:35可能
IPA601A0001A000312:4014:00満席
出典 平成23年度 特別試験 ITパスポート試験 問62
解説

問 62

  • Incorrectア

    IPA101 departs from airport code A0003 (airport F) and arrives at airport code A0002 (airport K), so it does meet the route condition, and its arrival time of 13:05 is the earliest among the four choices. However, its booking status is fully booked, so it does not meet the condition of being a “bookable” flight that the question requires. Looking only at the arrival times and picking the smallest one is the trap here, and this is the classic wrong answer for this question. Note that the conditions for narrowing down the rows include not only the route but also the booking status.

  • Incorrectイ

    IPA201 has a booking status of available, and its arrival time of 13:35 is even earlier than the 13:40 of IPA301. However, its arrival airport code is A0001, which the “Airport” table shows to be airport T. It does not arrive at airport K (A0002), so it is not a flight the question is asking about in the first place. You would pick it if you compared only the times without checking the correspondence between airport names and codes, which shows how important it is to first convert names into codes with the “Airport” table and only then narrow down by the conditions.

  • ウ

    正解 The correct answer is ウ (IPA301). This question has you trace by hand the basic operations of a relational database: linking two tables (join), narrowing down to the rows that meet the conditions (selection), and then picking the smallest value among them. The procedure has three stages. Stage 1 is converting names into codes. The “Schedule” table contains no airport names; it holds only departure airport codes and arrival airport codes. So, using the airport code as the common item, look up the “Airport” table and you find that airport F = A0003 and airport K = A0002. The flight you want is one where the departure airport code = A0003 and the arrival airport code = A0002. Stage 2 is narrowing down the rows. Three flights meet this condition: IPA101 (departs 12:10, arrives 13:05), IPA301 (departs 12:45, arrives 13:40), and IPA501 (departs 13:40, arrives 14:35). Here the question imposes one more condition, “bookable”, so a flight whose booking status is fully booked cannot be chosen. IPA101 is fully booked and is excluded, leaving the two flights IPA301 and IPA501. Stage 3 is comparing the arrival times. What the question asks for is not the flight that departs earliest but the flight with “the earliest arrival time at airport K”, so compare the arrival times with each other. IPA301 arrives at 13:40 and IPA501 arrives at 14:35, so 13:40 is earlier. Therefore the flight name that satisfies all the conditions is IPA301, and the answer is ウ. The key is not to mix up these three points: (1) look up the code table and replace airport names with airport codes; (2) narrow the rows by both the direction of departure and arrival and the booking status; (3) compare by arrival time, not by departure time.

  • Incorrectエ

    IPA501 departs from airport code A0003 (airport F), arrives at airport code A0002 (airport K), and its booking status is also available, so it certainly is a flight that satisfies all the conditions of the question. However, its arrival time is 14:35, which is later than the 13:40 of IPA301, which also satisfies the conditions. The question asks you to pick the single flight with the earliest arrival time among the flights that satisfy the conditions, so IPA501 is not the correct answer. When more than one candidate satisfies the conditions, you must rank them by the comparison criterion specified last (here, how early the arrival time is).

ここがポイント
  • Basic operations of a relational database — linking several tables using a common item (here, the airport code) as the clue is a join, and taking out only the rows that meet a condition is selection. For questions that span tables, solving them in this order — first convert names into codes with the code table, then narrow the rows by the conditions — is the reliable approach.
  • Pick up every condition in the question without missing any — in this kind of table-reading question, three independent conditions are given: the route (the direction of departure and arrival), a status such as the booking status, and the comparison criterion (departure time or arrival time). Missing even one of them leads to the classic mistakes of choosing a fully booked flight, or a flight going the opposite direction or to a different airport.
用語

Your answers