{"id":8725,"date":"2023-11-27T05:22:00","date_gmt":"2023-11-26T23:52:00","guid":{"rendered":"https:\/\/www.monsterindia.com\/career-advice\/18-cobol-interview-questions-and-answers-8725\/"},"modified":"2025-01-30T14:44:16","modified_gmt":"2025-01-30T09:14:16","slug":"18-cobol-interview-questions-and-answers","status":"publish","type":"post","link":"https:\/\/www.foundit.in\/career-advice\/18-cobol-interview-questions-and-answers\/","title":{"rendered":"Top 18 COBOL Interview Questions and Answers (2026)"},"content":{"rendered":"\n<p class=\"has-text-align-left\"><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\"><\/span><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">COBOL or Common Business Oriented Language is an English like compiled programming language used mainly for business. <\/span><\/p>\n\n\n\n<p class=\"has-text-align-left\"><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">A COBOL program runs on any Main Frame Server and is easily portable. <\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\"><strong>List of 18 COBOL Questions and Answers<\/strong><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. What do you know about COBOL?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">COBOL is the abbreviation for Common Business Oriented Language. It is among the old programming languages and is primarily used in finance, business and administrative systems and applications. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. What are the data types that COBOL supports?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">COBOL supports 3 different data types- Alphanumeric (X), Alphabetic(A) and Numeric(9). <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. What are the different divisions of a COBOL program?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">The various divisions of a COBOL program are IDENTIFICATION DIVISION, ENVIRONMENT DIVISION, DATA DIVISION and PROCEDURE DIVISION. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4. List a few features of the COBOL language<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">COBOL is a structured, standard programming language that can be compiled and executed on any machine. <\/span><\/p>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">It is typically used in business applications as it can handle a large volume of data. It contains numerous debugging and testing capabilities. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>5. What is meant by IS NUMERIC clause?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">The IS NUMERIC clause is used to check if an item is numeric or not. The value returned will be TRUE if the item that is checked for contains only numbers whether positive or negative. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>6. What are level 66 and level 88 in COBOL?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">Level 66 is used in RENAMES clause and level 88 is used for condition names. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>7. Differentiate between Subscript and Index.<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">Subscript refers to the occurrence in an array whereas Index refers to the number of bytes or displacement from the beginning of the array. <\/span><\/p>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">An Index can be modified only with PERFORM, SEARCH and SET commands. <\/span><\/p>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">The index is needed to perform SEARCH or SEARCH ALL in a Table. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>8. Differentiate between SEARCH and SEARCH ALL.<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">SEARCH command in COBOL is used for serial search while SEARCH ALL is used to binary search where the table or array must be sorted using ASCENDING or DESCENDING key. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>9. What is the difference between performing a SECTION and performing a PARAGRAPH?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">When you perform a SECTION, all paragraphs under the section will be performed. But if you are performing a paragraph, only the particular paragraph will be performed. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>10. What are the modes of File opening in COBOL?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">The modes of opening a file in COBOL are OUTPUT, INPUT, I\/O and EXTEND. <\/span><\/p>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">What is the extreme size of a mimetic field that can be defined in COBOL? <\/span><\/p>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">The maximum size of a numeric field that can be defined in COBOL is PIC 9(18). <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>11. What is the difference between CONTINUE and NEXT SENTENCE commands?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">CONTINUE command is similar to a null command that brings about execution while NEXT SENTENCE command handovers control to the subsequent sentence. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>12. What are the various applications of the OPEN mode in COBOL?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">The OPEN mode can be used for operations such as INPUT, OUTPUT, INPUT-OUTPUT and EXTEND. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>13. Explain the terms Static Linking and Dynamic Linking.<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">In Static linking, the subroutine links into the calling program whereas in Dynamic linking, the key program and subroutine will remain as separate modules. Static linking and Dynamic linking can be attained by link edit options- DYNAM or NODYNAM. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>14. Explain the function of EVALUATE statement in COBOL.<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">EVALUATE statement does the same job of a CASE statement or a nested-IF statement. The main difference between EVALUATE and nested-IF is that \u201cbreak\u201d is not needed for the former and the control leaves the EVALUATE statement once a match is found. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>15. Explain the difference between PERFORM \u2026WITH TEST AFTER and PERFORM\u2026WITH TEST BEFORE.<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">In TEST BEFORE option, the condition will be tested at the beginning of each execution of the PERFORM block. <\/span><\/p>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">In TEST AFTER option, the condition will be tested at the end of the PERFORM block. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>16. What is the function of REPLACING in a COPY statement?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">REPLACING allows for the same copy to be repeated more than once in the same code just by replacing the value. <\/span><\/p>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">Syntax: COPY\u202fREPLACING BY <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>17. What kinds of errors are caught by the ON SIZE ERROR OPTION?<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">The following errors are trapped by the ON SIZE ERROR option: <\/span><\/p>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">Fixed point overflow <\/span><br><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">Number zero raised to power zero <\/span><br><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">Divide by zero <\/span><br><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">Number zero raised to power negative number <\/span><br><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">A negative number raised to the power of a fraction. <\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>18. Differentiate between structured COBOL program and Object Oriented COBOL Program.<\/strong><\/h3>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">Structured programming is the logical way of writing a program where functions are divided into modules and tackled logically. <\/span><\/p>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">Object oriented programs are those where you write the methods and functions around the Object that is identified. <\/span><\/p>\n\n\n\n<p><span style=\"font-size: 12pt;font-family: verdana, geneva, sans-serif\">COBOL is a structured and a very user friendly programming language. It is one of the oldest programming language and the functionality it provides for big administrative systems cannot be easily replaced. <\/span><\/p>\n\n\n\n\n \n    },\n     \n    },\n     \n    },\n     \n    },\n     \n    }\n  ]\n}\n\n\n\n\n<p><strong>You May Also Like :<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong><a href=\"https:\/\/www.foundit.in\/career-advice\/sql-interview-questions-for-data-analyst-fresher\/\" target=\"_blank\" rel=\"noopener\" title=\"\">SQL Interview Questions and Answers <\/a><\/strong><\/td><td><a href=\"https:\/\/www.foundit.in\/career-advice\/data-structures-and-algorithms-interview-questions\/\" target=\"_blank\" rel=\"noopener\" title=\"\"><strong>Data Structures and Algorithms Interview Questions and Answers<\/strong><\/a><\/td><\/tr><tr><td><strong><a href=\"https:\/\/www.foundit.in\/career-advice\/10-frequently-asked-advanced-java-interview-questions\/\" target=\"_blank\" rel=\"noopener\" title=\"\">Advanced Java Interview Questions<\/a><\/strong><\/td><td><strong><a href=\"https:\/\/www.foundit.in\/career-advice\/top-30-php-oops-interview-questions-and-answers\/\" target=\"_blank\" rel=\"noopener\" title=\"\">PHP OOPS Interview Questions and Answers<\/a><\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>COBOL or Common Business Oriented Language is an English like compiled programming language used mainly for business. A COBOL program runs on any Main Frame Server and is easily portable. List of 18 COBOL Questions and Answers 1. What do you know about COBOL? COBOL is the abbreviation for Common Business Oriented Language. It is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8726,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[147],"tags":[],"class_list":{"0":"post-8725","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-interview-questions"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/posts\/8725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/comments?post=8725"}],"version-history":[{"count":9,"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/posts\/8725\/revisions"}],"predecessor-version":[{"id":45292,"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/posts\/8725\/revisions\/45292"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/media\/8726"}],"wp:attachment":[{"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/media?parent=8725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/categories?post=8725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.foundit.in\/career-advice\/wp-json\/wp\/v2\/tags?post=8725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}