Questions et réponses d'entretien les plus demandées et tests en ligne
Plateforme d'apprentissage pour la preparation aux entretiens, les tests en ligne, les tutoriels et la pratique en direct

Developpez vos competences grace a des parcours cibles, des tests blancs et un contenu pret pour l'entretien.

WithoutBook rassemble des questions d'entretien par sujet, des tests pratiques en ligne, des tutoriels et des guides de comparaison dans un espace d'apprentissage reactif.

Preparation a l'entretien

COBOL Questions et reponses d'entretien

Test your skills through the online practice test: COBOL Quiz Online Practice Test

Question 6. How do you handle errors in COBOL programs?

Errors in COBOL programs are often handled using the ON EXCEPTION clause or the use of condition names. This allows for the graceful handling of errors.

Example:

READ FILE-1 INTO WS-RECORD ON EXCEPTION
  DISPLAY 'Error reading file'
END-READ.

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 7. Explain the difference between CALL and PERFORM in COBOL.

CALL is used to transfer control to another program or a specific paragraph within the same program. PERFORM is used for looping and invoking paragraphs or sections.

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 8. What is the purpose of the FILE SECTION in COBOL?

The FILE SECTION in COBOL is used to describe the structure and attributes of files used by the program. It includes the FD (File Description) entries.

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 9. How is indexing done in COBOL?

Indexing in COBOL is typically done using INDEXED BY clause. It associates an index name with a data item, allowing for efficient access to table elements.

Example:

01 EMPLOYEE-TABLE OCCURS 10 TIMES INDEXED BY EMPLOYEE-INDEX.
...

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Question 10. What is the purpose of the REDEFINES clause?

The REDEFINES clause in COBOL is used to share storage between two or more data items. It allows multiple data descriptions for the same physical storage.

Example:

01 EMPLOYEE-NAME PIC X(20).
01 EMPLOYEE-NAME-REDEFINED REDEFINES EMPLOYEE-NAME PIC 9(9).

Est-ce utile ? Ajouter un commentaire Voir les commentaires
 

Les plus utiles selon les utilisateurs :

Copyright © 2026, WithoutBook.