COBOL Mocktest-4

20 Questions | Attempts: 5968
Share

SettingsSettingsSettings
COBOL Quizzes & Trivia

Questions and Answers
  • 1. 

    PERFORM with _____ phrase executes the number of times specified by the value in identifier or Integer.         

    • A.

      UNTIL

    • B.

      THRU

    • C.

      TIMES

    • D.

      none.

    Correct Answer
    C. TIMES
  • 2. 

    FILE STATUS should be defined in the data division as a two character ________ field.                   

    • A.

      Numeric

    • B.

      Alphanumeric

    • C.

      Alphabetic

    • D.

      None.

    Correct Answer
    B. Alphanumeric
  • 3. 

    _________ clause it is also possible to start the Transfer of Characters from Some OtherLocation.   

    Correct Answer
    with pointer
  • 4. 

    The processing of a file should begin with the execution of  an OPEN statement.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 5. 

     Indexes can be manipulated only by the _____________                       

    • A.

      SET

    • B.

      SEARCH

    • C.

      PERFORM

    • D.

      All of the above

    Correct Answer
    D. All of the above
  • 6. 

    PERFORM P2 VARYING I FROM 1 BY 1 UNTIL I <10 will Execute P2                 

    • A.

      9 TIMES

    • B.

      10 TIMES

    • C.

      0 TIMES

    • D.

      1 TIME

    Correct Answer
    C. 0 TIMES
  • 7. 

    The __________ phrase sets the limits of the string.  

    Correct Answer
    Delimited by
  • 8. 

    The  ORGANIZATION  IS INDEXED clause indicates the file is an indexed file.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 9. 

    INITIALIZE Verb Serves as a Convenient Alternative to the Use of MOVE in    PROCEDURE DIVISION.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 10. 

    The ______ verb is used to set, increase or decreases the value of the indexes.   

    • A.

      SET

    • B.

      SEARCH

    • C.

      PERFORM

    • D.

      none

    Correct Answer
    A. SET
  • 11. 

    The  WRITE statement cannot be used for files opened in the I-O mode.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 12. 

    Called Program can Call Other Programs, But Must Not Call the Calling Program.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
  • 13. 

    .    The ________ verb indicates a no operation, and when executed, no action takes place.            

    • A.

      STOP RUN

    • B.

      EXIT

    • C.

      END

    • D.

      none

    Correct Answer
    B. EXIT
  • 14. 

    It is Possible to Access Data in Tables in a Direct Manner Using _______. a) b)c) d)

    • A.

      Index

    • B.

      Subscript

    • C.

      both

    • D.

      None

    Correct Answer
    A. Index
  • 15. 

    By using ________ option with PERFORM we can execute a series of procedures which are in a  sequence.

    Correct Answer
    Thru
  • 16. 

     _______is Used to Transform And Move Data from One Index Item to Another  or                                                                  from subscript  to Another or from Subscript to a Corresponding Item.

    Correct Answer
    set
  • 17. 

    Using ________ Option With INITIALIZE Verb We can Set Alphanumeric Fields Other Than Spaces, Numeric Fields Other Than Zeroes.  

    Correct Answer
    Replacing
  • 18. 

    If  at END of file occurs what is the FILE STATUS______________            

    • A.

      00

    • B.

      10

    • C.

      30

    • D.

      34

    Correct Answer
    B. 10
  • 19. 

    The simple SORT verb requires the naming of three files  ____________, _____________, and   ___________

    Correct Answer
    unsorted input file, sorted output file and the work file
  • 20. 

    What is the  Difference between index and subscript?

    • A.

      Index represents the displacement value of the entry from beginning of table. Subscript is the occurrence number of the table entry.

    • B.

      Index is the occurrence number of the table entry. Subscript is the displacement value of the entry from beginning of table.

    • C.

      None

    Correct Answer
    A. Index represents the displacement value of the entry from beginning of table. Subscript is the occurrence number of the table entry.

Quiz Review Timeline +

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

  • Current Version
  • Jan 28, 2013
    Quiz Edited by
    ProProfs Editorial Team
  • Jul 13, 2011
    Quiz Created by
    Sharmiladevi
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.