aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • mainframe Online Quiz - 18
  • Code Snippet: 01 Data Pic 99. 88 val1 values are 10 thru ...
Multiple choice technology mainframe

Code Snippet: 01 Data Pic 99. 88 val1 values are 10 thru 19. Set val1 to true. What is the value of Data ?

  1. Compile error

  2. 10

  3. 0

  4. 19

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

The SET statement assigns the first value in the range defined by the level-88 condition, which is 10, to the elementary data item Data.

Keep practicing — related questions

  • "05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. DISPLAY X The result would be?"
  • "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 maximum value of the variable declared as PIC S9(9) ?
  • what will be the output when i)pic 9(6) value 000178 is moved to pic 9(3)V9(3). ii)pic 9(3)V9(3) value 123....
  • What will be the output ?
  • What will be the output of the following program : void main() { int val=2; val = - --val- val--- --val; pr...
  • A PL/I programmer wants to display a number in his/her program. Which of the following variables is suited ...
  • PIC S999 VALUE 5231. What would be the value getting stored in memory?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Languages and Compilers (2284 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy