IBM COBOL Mocktest Quiz

20 Questions | Total Attempts: 4055

SettingsSettingsSettings
COBOL Quizzes & Trivia

COBOL (Common Business-Oriented Language) is a programming language used by programmers at a high level for business applications and is known as the first popular language developed that was unspecific to a certain operating system. It is actually still being used in the business and financial world today despite first appearing as far back as 1959. What can you tell us about COBOL? Take the quiz to find out!


Questions and Answers
  • 1. 
    PIC S9 (4) results 3 bytes
    • A. 

      COMP

    • B. 

      COMP1

    • C. 

      COMP3

    • D. 

      DISPLAY

  • 2. 
     If after an arithmetic operation, the result exceeds the largest value that can be accommodated in the result                    field, the error is called a ____________ .
  • 3. 
    77 A PIC $ZZ999.         MOVE 985 TO A.         What would be the output?                                             
    • A. 

      $985

    • B. 

      $00985

    • C. 

      $ 985

    • D. 

      NONE OF THESE

  • 4. 
    The   __________ clause eliminates the need for separate entries for repeated data item.                               
    • A. 

      REDEFINES

    • B. 

      RENAME

    • C. 

      USAGE

    • D. 

      OCCURS

  • 5. 
    ____Gives the Flexibility of Defining Data-names With the Same Name.
  • 6. 
    What is true regarding REDEFINES clause?                                    
    • A. 

      At the 01 level in the FILE SECTION.

    • B. 

      When the levels of dataname-1 and dataname-2 are different.

    • C. 

      When the level number is 66 or 88.

    • D. 

      Used to allow the same storage location to be referenced by different datanames

  • 7. 
    After the execution of one of the when clauses, the control is automatically passed on to the next      sentence after the EVALUATE statement. There is no need of any extra code.
    • A. 

      True

    • B. 

      False

  • 8. 
    On which column position we can write continuation                      
    • A. 

      8-11

    • B. 

      73-80.

    • C. 

      7

    • D. 

      None

  • 9. 
     The REDEFINES clause can appear in the same data description entry which contains an OCCURS     clause.
    • A. 

      True

    • B. 

      False

  • 10. 
    The __________ CLAUSE must be used only with the special level number 66.  
  • 11. 
     What is the resultant value of C from the statement, if initially A=30 and B=60 MOVE A B TO C.
    • A. 

      C=30

    • B. 

      C=60

    • C. 

      Operation can’t performed because of improper syntax

    • D. 

      None.

  • 12. 
    Which of the following is true related to the ‘.’ Picture character.
    • A. 

      01 COST PIC 999V99.9

    • B. 

      01 COST PIC 999.99.9

    • C. 

      01 COST PIC 999.99

    • D. 

      01 COST PIC 9999.

  • 13. 
    A Single  __________ statement can substitute Multiple Arithmetic Statements.  
  • 14. 
    A COBOL word can contain a blank?
    • A. 

      True

    • B. 

      False

  • 15. 
    What is the edited value of the following                      PICTURE      Value        Internal Representation                     9999CR            2359       ______________ 
  • 16. 
    LINKAGE-SECTION present which DIVISION.
    • A. 

      IDENTIFICATION DIVISION.

    • B. 

      ENVIRONMENT DIVISION.

    • C. 

      DATA DIVISION.

    • D. 

      PROCEDURE DIVISION.

  • 17. 
    Every Paragraph should end with a Period ( . )
    • A. 

      True

    • B. 

      False

  • 18. 
    _______ level number indicates highest level in data hierarchy & refers to entire data set contained in it.
  • 19. 
    A COBOL word can have national characters.               
    • A. 

      True

    • B. 

      False

  • 20. 
    Every Data name used in the program must be defined in PROCEDURE DIVISION.
    • A. 

      True

    • B. 

      False

Back to Top Back to top