Visual COBOL MCQ Quiz

20 Questions | Total Attempts: 65

SettingsSettingsSettings
COBOL Quizzes & Trivia

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

      COMP

    • B. 

      COMP-1

    • 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 ____________.
    • A. 

      TYPE ERROR

    • B. 

      SIZE ERROR

    • C. 

      ARITHMETIC ERROR

    • D. 

      NONE OF THE ABOVE

  • 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
    • A. 

      REDEFINES

    • B. 

      QUALIFICATION

    • C. 

      RENAMES

    • D. 

      ALL THE ABOVE

  • 6. 
    What is true regarding REDEFINES clause? (dataname-2 REDEFINES dataname-1)
    • A. 

      At the 01 level in the FILE SECTION

    • B. 

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

    • C. 

      REDEFINES can only be applicable when level number is 66 or 88

    • D. 

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

  • 7. 
    How do you come out of an EVALUATE statement?
    • A. 

      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.

    • B. 

      STOP RUN

    • C. 

      ESCAPE

    • D. 

      SKIP

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

      8-11

    • B. 

      73-80

    • C. 

      7

    • D. 

      NONE OF THE ABOVE

  • 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.
    • A. 

      RENAMES

    • B. 

      REDEFINES

    • C. 

      USAGE

    • D. 

      CONDITION NAME CONDITION

  • 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.
    • A. 

      Compute

    • B. 

      Perform

    • C. 

      Add

    • D. 

      All the above

  • 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.
    • A. 

      88

    • B. 

      Any level between 01 to 49

    • C. 

      01

    • D. 

      None of the above

  • 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