COBOL Programming Mock Test Quiz

20 Questions | Total Attempts: 10659

SettingsSettingsSettings
COBOL Programming Mock Test Quiz - Quiz

COBOL is a high-level programming language that was introduced in the 1960s. This language is commonly used in the business, finance, and administrative systems for companies and governments. With the COBOL programming mock test almost here, it is important to keep on your feet. Take up the quiz below and see just how ready you are for it. Keep on revising!


Questions and Answers
  • 1. 
    Which of the following is valid COBOL word?
    • A. 

      B12-4

    • B. 

      –GROSS

    • C. 

      OVER TIME

    • D. 

      GROSS_SALARY

  • 2. 
    Which of the following is not a figurative constant?
    • A. 

      SPACES

    • B. 

      QUOTE

    • C. 

      BLANK

    • D. 

      LOW-VALUE

  • 3. 
    What is the edited value of the picture clause PIC field     9999+ Numeric value moved to the field -382 and the Edited value is
    • A. 

      0382-

    • B. 

      3820-

    • C. 

      -0038

    • D. 

      -0003

  • 4. 
    Which division is used to specify the computer used by the program?
    • A. 

      Identification Division

    • B. 

      Environment Division

    • C. 

      Data Division

    • D. 

      Procedure Division

  • 5. 
    1. Initially A=30, B=60
     IF A = 40             DISPLAY ‘ABC’  ELSE             NEXT SENTENCE END-IF MOVE 90 TO B. DISPLAY B. What is the output of the program?
    • A. 

      30

    • B. 

      60

    • C. 

      90

    • D. 

      Can’t perform the operation

  • 6. 
    In WRITE statement, it is required to mention the record name and not the file name.
    • A. 

      True

    • B. 

      False

  • 7. 
    S9(7) COMP-3 field occupy _________ bytes.  
    • A. 

      4

    • B. 

      6

    • C. 

      8

    • D. 

      1

  • 8. 
       ________ clause used for the purpose allows the said area to be referred to by more than one data name with different sizes and pictures.
    • A. 

      JUSTIFIED

    • B. 

      REDEFINES

    • C. 

      USAGE

    • D. 

      SIGN

  • 9. 
    A data name gives references to the storage space to the memory where the actual value is stored.  
    • A. 

      True

    • B. 

      False

  • 10. 
    .    If A=10, B=20, C=30,D=0                Then the result of operation ______________                    ADD A B TO C GIVING D              
    • A. 

      60

    • B. 

      50

    • C. 

      20

    • D. 

      10

  • 11. 
        _______ verb causes the termination of the execution of object program.
    • A. 

      STOP RUN

    • B. 

      END

    • C. 

      GO-BACK

  • 12. 
    What is the difference between COMP & COMP-3?
    • A. 

      Binary format,

    • B. 

      packed decimal format

    • C. 

      packed decimal format & binary format,

  • 13. 
    Which of the following is false among the statements?
    • A. 

      77 level used for elementary level item

    • B. 

      88 level used for condition.

    • C. 

      77 level can be sub divided themselves

    • D. 

      66 level used for RENAMES clause

  • 14. 
    A ____means the specific value which remains unchanged throughout the execution of program. 
    • A. 

      LITERAL

    • B. 

      GLOBAL

    • C. 

      STOP RUN

  • 15. 
    The USAGE clause can be specified at any level.
    • A. 

      True

    • B. 

      False

  • 16. 
    Which of the following is not a valid delimiter in COBOL?
    • A. 

      A. ,

    • B. 

      .

    • C. 

      ;

    • D. 

  • 17. 
    In a COBOL program, specify the column position range of Area A                .  
    • A. 

      8-11

    • B. 

      12-80

    • C. 

      0-7

  • 18. 
     A numeric literal can have maximum of 18 digits.
    • A. 

      True

    • B. 

      False

  • 19. 
    The standard left-hand alignment of alphanumeric or alphabetic data can be reversed by using the                    _________CLAUSE.
    • A. 

      JUSTIFIED

    • B. 

      SIGN

    • C. 

      SYNCHRONIZED

    • D. 

      USAGE

  • 20. 
    What is the edited value of the following                      PICTURE      Value        Internal Representation                       $$$$$            009               ______________ 
    • A. 

      Bbb$9

    • B. 

      $9

    • C. 

      Bbb

    • D. 

      $9bbb

Back to Top Back to top