HCL Nrs - COBOL Quiz

10 Questions | Total Attempts: 1566

SettingsSettingsSettings
Please wait...
HCL Nrs - COBOL Quiz

This quiz is created for assesment after COBOL training


Questions and Answers
  • 1. 
    Name the divisions which is not in COBOL program.
    • A. 

      IDENTIFICATION

    • B. 

      ENVIRONMENT

    • C. 

      FILE

    • D. 

      DATA

    • E. 

      WORKING

  • 2. 
    What level is used for RENAMES clause?
    • A. 

      66

    • B. 

      77

    • C. 

      88

    • D. 

      90

    • E. 

      01

  • 3. 
    How do you define a table/array in COBOL using INDEX?
    • A. 

      01 ARRAYS. 05 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX

    • B. 

      01 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX

    • C. 

      01 ARRAYS. 05 ARRAY1 PIC X(9) OCCURS INDEX BY 10 TIMES

    • D. 

      01 ARRAYS. 88 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX

    • E. 

      None of the Above

  • 4. 
    Which mode of opening is required when REWRITE is used?
    • A. 

      UPDATE

    • B. 

      OPEN

    • C. 

      I-O

    • D. 

      INPUT

    • E. 

      REWRITE

  • 5. 
    Which clause can be used instead of checking for FILE STATUS = 10?
    • A. 

      RECORD NOT FOUND

    • B. 

      AT END

    • C. 

      DUPLICATE RECORD

    • D. 

      END OF FILE

    • E. 

      AT SPACES

  • 6. 
    What are the access mode requirements of START statement?
    • A. 

      SEQUENTIAL

    • B. 

      DYNAMIC

    • C. 

      RELATIVE

    • D. 

      INDEX

    • E. 

      ALL OF THE ABOVE

  • 7. 
    What is comp-3 usage ?
    • A. 

      Packed decimal

    • B. 

      Binary usage

    • C. 

      Hex

    • D. 

      Single precision floating point

    • E. 

      None

  • 8. 
    In which section do sort description  is given?
    • A. 

      WORKING-STORAGE

    • B. 

      FILE SECTION

    • C. 

      CONTROL SECTION

    • D. 

      LINKAGE SECTION

    • E. 

      NONE

  • 9. 
    Which level is used for condition clause?
    • A. 

      77

    • B. 

      01

    • C. 

      05

    • D. 

      88

    • E. 

      Any level can be used

  • 10. 
    Which statement is used to end the COBOL program?
    • A. 

      STOP

    • B. 

      END

    • C. 

      STOP RUN

    • D. 

      END RUN

    • E. 

      None of the Above