aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Cobol Basics - 1
  • In COBOL consider the data division, WS-X PICTURE PPP9999...
Multiple choice

In COBOL consider the data division, WS-X PICTURE PPP9999. MOVE 123 TO WS-X. What is the value stored in WS-X?

  1. 1230

  2. 000.123

  3. .0000123

  4. 1230000

  5. Compiler error

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

This option is correct. Since P appears in the left most side, the decimal point lies on the left most side.

Keep practicing — related questions

  • Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wi...
  • Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wi...
  • "01 WS-VAR1 PIC X(10) VALUE 'ABCDEFGHIJ'. 01 WS-VAR2 REDEFINES WS-VAR1 PIC 9(5) VALUE '12345' DISPLAY WS-VA...
  • What is the size of the COBOL variable with picture cause S999V99?
  • 01 ws-var1 pic 9(9).99. 01 ws-var2 pic 9(9)v99 value 10. move zeros to ws-var1. compute ws-var1 = ws-var1 +...
  • What abend will be hit when a COBOL program is trying to move Alphabetic Data into Numeric fields?
  • The division not present in COBOL is?
  • Suppose if the Variables A and B are declared as S9(7) and 9(7). Which of the below statement(s) violate CO...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy