Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Online COBOL 400 Quiz Test

Topics Covered

  • Procedures
  • Addition Operators
  • Variables and Renaming Variables
  • User Sequence
  • Evaluate Statement
  • Move Operation
  • String Pointers
  • Redefining Variables

Useful for hiring

  • COBOL Programmer
  • COBOL Developer
  • COBOL Analyst

Start hiring job-fit candidates using this assessment

GET A DEMO

"Our recruiters no longer rely only on the telephonic interviews. We shortlist candidates based on assessment reports. The detailed test reports provide skill wise analysis of each candidate. This has helped our clients reduce their time to hire by 60%."

Vipin Sharma, Mobile Programming,
General Manager HR & Recruitement
Question

If the alphabet name clause is USER-SEQUENCE IS 1 THRU 247, 251 THRU 256, "7", ALSO "8", ALSO "9"; if all 256 EBCDIC characters have been specified; if the two Data Division items are specified as follows:

        01 ITEM-1 PIC X(3) VALUE HIGH-VALUE.
        01 ITEM-2 PIC X(3) VALUE "787".

then which of the following comparisons are true?

Note: There can be multiple correct answers to this question.

Answer
    • IF ITEM-1 = ITEM-2

    • IF ITEM-1 > ITEM-2

    • IF ITEM-2 = HIGH-VALUE

Question

What is the result of following code?

IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO.

DATA DIVISION.
   WORKING-STORAGE SECTION.
   01 WS-DESCRIPTION.
   05 WS-NUM.
   10 WS-NUM1 PIC 9(2) VALUE 56.
   10 WS-NUM2 PIC 9(2) VALUE 26.
   05 WS-CHAR.
   10 WS-CHAR1 PIC X(2) VALUE 'AA'.
   10 WS-CHAR2 PIC X(2) VALUE 'BB'.
   10 WS-RENAME RENAMES WS-NUM2 THRU WS-CHAR1.

PROCEDURE DIVISION.
DISPLAY "WS-WS-RENAME:WS-RENAME.
   
STOP RUN.

Answer
    • 56AABB

    • Compilation Error

    • 0000

    • None of the mentioned

Question

What is the result of following code?

IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO.

DATA DIVISION.
   WORKING-STORAGE SECTION.
   01 WS-DESCRIPTION.
   05 WS-DATE1 VALUE '20140831'.
   10 WS-YEAR PIC X(4).
   10 WS-MONTH PIC X(2).
   10 WS-DATE PIC X(2).
   05 WS-DATE2 REDEFINES WS-DATE1 PIC 9(4).

PROCEDURE DIVISION.
DISPLAY WS-DATE2.

STOP RUN.

Answer
    • 00002014

    • 20140831

    • 2014

    • None of the mentioned

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO