Soru

Zorluk: OrtaSorting and Multi-Column Ordering

The table below lists operational data for seven regional hydroelectric power stations:

Station NameRiver SystemInstalled Capacity (MW)Annual Generation (GWh)Operating Efficiency (%)
Apex DamColumbia4501,80088%
Beacon HydroSnake3201,44092%
Crest FallsColumbia5001,95085%
Delta FlowMissouri2801,12090%
Eagle RidgeSnake4001,60086%
Frontier HydroMissouri3501,47091%
Glacier PeakColumbia4201,76489%

Statement: If the table is sorted in ascending alphabetical order by River System, and any ties in River System are broken by sorting Operating Efficiency in descending order, Beacon Hydro will appear immediately above Eagle Ridge in the sorted list.

Cevap: Cevap

Cevap

True
Sorting primarily by River System (alphabetical) places the two Snake stations at the bottom of the table. Breaking the tie by sorting Operating Efficiency descending places Beacon Hydro (92%) above Eagle Ridge (86%), confirming Beacon Hydro immediately precedes Eagle Ridge.

Adım Adım Çözüm

1
Group rows by the primary sort key: River System in ascending alphabetical order.
The river systems are ordered as Columbia, then Missouri, then Snake.
Alphabetical sorting orders C before M, and M before S.
2
Sort the entries within each river system group by the tie-breaker rule: Operating Efficiency in descending order.
Columbia group: Glacier Peak (89%), Apex Dam (88%), Crest Falls (85%). Missouri group: Frontier Hydro (91%), Delta Flow (90%). Snake group: Beacon Hydro (92%), Eagle Ridge (86%).
Descending efficiency puts higher percentage values above lower percentage values within each group.
3
Combine the ordered groups to form the complete sorted list.
Position 1: Glacier Peak, Position 2: Apex Dam, Position 3: Crest Falls, Position 4: Frontier Hydro, Position 5: Delta Flow, Position 6: Beacon Hydro, Position 7: Eagle Ridge.
Evaluating positions shows Beacon Hydro (6th) is placed directly above Eagle Ridge (7th).

Anahtar Kavram

Sorting and Multi-Column Ordering
Bu soruyu puanla