Multiple choice technology mainframe

Is compute w=u a valid statement ?

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The COBOL statement COMPUTE W=U is valid syntax. The COMPUTE verb assigns the result of an arithmetic expression to a receiving field. In this case, it simply assigns the value of U to W. While MOVE would be more typical for simple assignment, COMPUTE is syntactically correct and functional.