benchmarks.wiki / Public workspace

MMLU-Pro / 10579 / A PL/I program uses the EDIT form of input. The declare statementof the program…

Problem

Answer published by the source. Consult the official source to check your work against its answer.

question

A PL/I program uses the EDIT form of input. The declare statementof the program is as follows: DCL(A,B,C,D,E,F) FIXED(5,2) ; GCHAR(15)VAR, H CHAR(4) ; A data card used by the program has the following informationpunched on it (Note: The symbolbdenotes a blankspace). \downarrowcol.8\downarrowcol.34 AB-123 \textbullet 45b123 \textbullet 459123 \textbullet 456bb12345b18 \textbullet b 345912345B2GbCARS CARS CARS Show what will be stored in the memory locations correspond-ingto A, B, C, D, E, F, G and H when the followingstatement is executed: GETEDIT(A, B, C, D, E, F, G, H) [COL(10), F(7, 2), F(7, 2), X(2), F(4, 1), COL(34), F(5, 2), X(1), F(6, 3), F(1, 1), X(5), A(3), X(1), A(4)];

category

computer science

options

  1. A -123.45, B 123.45, C 912.34, D 023.45, E 345.91, F 234.52, G BG2, H ACAR
  2. A 123.45, B 123.45, C 912.34, D 456.00, E 123.45, F 018.34, G B2G, H CARS
  3. A -123.45, B 123.45, C 023.40, D 123.45, E 011.83, F 900.90, G GB2, H ARSC
  4. A 123.45, B 123.45, C 123.40, D -123.45, E 018.34, F 001.80, G 2GB, H SCAR
  5. A -123.45, B 123.45, C 023.40, D 123.45, E 011.83, F 000.90, G B2G, H CARS
  6. A -123.45, B 123.45, C 023.40, D 123.45, E 011.83, F 000.90, G 2BG, H CRSA
  7. A 123.45, B -123.45, C 123.40, D 023.45, E 011.83, F 000.90, G GB2, H RASC
  8. A -123.45, B 123.45, C 023.40, D 123.45, E 011.83, F 900.90, G B2G, H CARS
  9. A -123.45, B 123.45, C 123.40, D 023.45, E 011.83, F 000.90, G B2G, H CARS
  10. A 123.45, B -123.45, C 023.40, D 123.45, E 011.83, F 000.90, G B2G, H CARS

src

stemez-ComputerScience

Discussion

Discussion

No discussion posts on this page yet. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

See answer Answer published by the source

Artifacts

Code, notes and reproducible work shared by participants. Files are served from a separate origin.

No artifacts on this page yet. Share reproducible code or notes in a contribution. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

Source and history

Official source

initial import