COBOL Quiz

20 Questions | Attempts: 2384
Share

SettingsSettingsSettings
COBOL Quizzes & Trivia

COBOL is a programing language that is mostly used in finance, Businesses and administrative systems. With COBOL programmers being in demand these days’ people are learning it and basing their careers on it. This is the Quiz on COBOL for mainframe professionals. Give it a try and see just how much you remember from class.


Questions and Answers
  • 1. 

    COMP is more effecient at word boundaries?

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 2. 

    S9(7) SIGN TRAILING SEPARATE filed occupy 8 Bytes.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 3. 

    What are the different file open modes in COBOL?

    • A.

      INPUT, I-O

    • B.

      INPUT, I-O, OUTPUT, EXTEND

    • C.

      INPUT, I-O

    • D.

      INPUT, I-O

    Correct Answer
    B. INPUT, I-O, OUTPUT, EXTEND
  • 4. 

    What is file status 92?

    • A.

      It is a logical error

    • B.

      It is a logical error, file is opend for input and attemt is made to write it

    • C.

      It is not an logical error

    • D.

      It is a logical error, It is not file related error

    • E.

      None

    Correct Answer
    B. It is a logical error, file is opend for input and attemt is made to write it
  • 5. 

    Usage is POINTER, supported in?

    • A.

      COBOL I

    • B.

      COBOL I, COBOL II

    • C.

      COBOL I, COBOL II, OO COBOL

    • D.

      None

    Correct Answer
    C. COBOL I, COBOL II, OO COBOL
  • 6. 

    Only COBOL II programs supported in CICS.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 7. 

    Compiler option for dynamic linking?

    • A.

      No Dynam

    • B.

      Dynam

    • C.

      MAP

    • D.

      No MAP

    Correct Answer
    B. Dynam
  • 8. 

    Maximum dimensional array can be created in COBOL?

    • A.

      1

    • B.

      7

    • C.

      2

    • D.

      3

    Correct Answer
    B. 7
  • 9. 

    Can u call COBOL I pgm from COBOL-II?

    • A.

      Not possible

    • B.

      Possible in Non cics

    • C.

      Not possible in CICS

    • D.

      None

    Correct Answer
    C. Not possible in CICS
  • 10. 

    What is INCLUDE in COBOL?

    • A.

      Not reserved word

    • B.

      It's not reserved word. Used to include SQLCA in the form of cobol code

    • C.

      Reserved word

    • D.

      None

    Correct Answer
    B. It's not reserved word. Used to include SQLCA in the form of cobol code
  • 11. 

    What is 41 file status code?

    • A.

      Close attempted on closed file

    • B.

      Open attemted on open file

    • C.

      Not error

    • D.

      None

    Correct Answer
    B. Open attemted on open file
  • 12. 

    What are the error handling conditions in Cobol?

    • A.

      On Exception

    • B.

      On Exception, On Overflow, On Size Error

    • C.

      On Divide

    • D.

      None

    Correct Answer
    B. On Exception, On Overflow, On Size Error
  • 13. 

    What are the performance improvements in Cobol?

    • A.

      RENAMES

    • B.

      REDEFINES, COMP, COMP-3, RENAMES, EVALUATE

    • C.

      REDEFINES, EVALUATE

    • D.

      None

    Correct Answer
    B. REDEFINES, COMP, COMP-3, RENAMES, EVALUATE
  • 14. 

    Which is default?

    • A.

      Call by reference

    • B.

      Call by value

    • C.

      Both 1 and 2

    • D.

      None

    Correct Answer
    A. Call by reference
  • 15. 

    How many sub-levels can have a group item in COBOL?

    • A.

      48

    • B.

      49

    • C.

      50

    • D.

      None

    Correct Answer
    A. 48
  • 16. 

    What are the scope terminators in Cobol II?

    • A.

      READ

    • B.

      READ, String, Evaluate, Call, Perform, Search

    • C.

      Only Read

    • D.

      None

    Correct Answer
    B. READ, String, Evaluate, Call, Perform, Search
  • 17. 

    Next Sentence - Call will pass to next sentence end with period?

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 18. 

    Sort is is declared at?

    • A.

      FD

    • B.

      SD

    • C.

      Both SD, FD

    • D.

      Create, Replace, Update

    Correct Answer
    A. FD
  • 19. 

    SD SORT-FILE.       LABEL RECORDS ARE STANDARD      01 SORT-REC                                                  is true/false?

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 20. 

    RETURN SORT-FILE, what does RETURN means?

    • A.

      READ

    • B.

      CLOSE

    • C.

      WRITE

    • D.

      None

    Correct Answer
    A. READ
    Explanation
    Explanation is ...RELEASE command releases record(before sorting) to the INPUT procedure. RETURN statement returns record to OUTPUT procedure.
    Sort cycle:
    RELEASE->INPUT PROCEDURE->SORTED FILE->RETURN->OUTPUT PROCEDURE

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 28, 2019
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 06, 2012
    Quiz Created by
    Srinimf
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.