InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Why Is It Necessary To Open A File In I-o Mode For Rewrite? |
|
Answer» Before REWRITE is PERFORMED, the RECORD MUST be opened and read from the FILE. Therefore, the file must be opened in I-O MODE for rewrite functionality. Before REWRITE is performed, the record must be opened and read from the file. Therefore, the file must be opened in I-O mode for rewrite functionality. |
|
| 2. |
What Is The Difference Between Pic 9.99 And Pic9v99? |
|
Answer» PIC 9.99 is a FOUR position field that actually contains a decimal POINT where as PIC 9v99 is three position numeric field with ASSUMED decimal position. PIC 9.99 is a four position field that actually contains a decimal point where as PIC 9v99 is three position numeric field with assumed decimal position. |
|
| 3. |
What Are The Access Modes Of Start Statement? |
|
Answer» Access modes are SEQUENTIAL or DYNAMIC for the START STATEMENT. Access modes are SEQUENTIAL or DYNAMIC for the start statement. |
|
| 4. |
What Is Local-storage Section? |
|
Answer» Local-Storage is allocated each time a PROGRAM is CALLED and will be de-allocated when the program STOPS via an EXIT PROGRAM, GOBACK, or STOP RUN. It is defined in the DATA DIVISION after the WORKING-STORAGE SECTION. Local-Storage is allocated each time a program is called and will be de-allocated when the program stops via an EXIT PROGRAM, GOBACK, or STOP RUN. It is defined in the DATA DIVISION after the WORKING-STORAGE SECTION. |
|
| 5. |
What Is The Difference Between Perform With Test After And Perform With Test Before? |
|
Answer» If TEST BEFORE is specified, the condition is tested at the BEGINNING of each repeated execution of the specified PERFORM range. If TEST AFTER is specified, the condition is tested at the END of each repeated execution of the PERFORM range. The range is executed at LEAST once in TEST AFTER. If TEST BEFORE is specified, the condition is tested at the beginning of each repeated execution of the specified PERFORM range. If TEST AFTER is specified, the condition is tested at the end of each repeated execution of the PERFORM range. The range is executed at least once in TEST AFTER. |
|
| 6. |
Where Does The File-control Paragraph Appear? |
|
Answer» It APPEARS in the Input-Ouput SECTION in the ENVIRONMENT DIVISION. It appears in the Input-Ouput Section in the Environment Division. |
|
| 7. |
Where Does Area B In Cobol Start From? |
|
Answer» AREA B starts from 12 to 72 column. Area B starts from 12 to 72 column. |
|
| 8. |
What Divisions, Sections And Paragraphs Are Mandatory In A Cobol Program? |
|
Answer» Identification DIVISION and PROGRAM-Id PARAGRAPH are mandatory in a COBOL program. Identification Division and Program-Id paragraph are mandatory in a COBOL program. |
|
| 9. |
How Do You Define The Files Referred To In A Subroutine Program? |
|
Answer» Supply the DD CARDS in JCL just as you WOULD for FILES REFERRED to in the main program. Supply the DD cards in JCL just as you would for files referred to in the main program. |
|
| 10. |
What Is A Compute Statement? |
|
Answer» COMPUTE STATEMENT is used to write ARITHMETIC expressions in COBOL. This is a replacement for ADD, Subtract, Multiply, and Divide. Compute statement is used to write arithmetic expressions in COBOL. This is a replacement for Add, Subtract, Multiply, and Divide. |
|
| 11. |
What Is The Function Of Accept Verb? |
|
Answer» Accept Verb is used to get data such as date, time, and day from operating SYSTEM or DIRECTLY from the user. If a program is accepting data from the user, then it needs to be PASSED through the JCL. Accept Verb is used to get data such as date, time, and day from operating system or directly from the user. If a program is accepting data from the user, then it needs to be passed through the JCL. |
|
| 12. |
What Is Comp-1 And Comp-2? |
|
Answer» COMP-1 is single PRECISION FLOATING point that uses 4 bytes. COMP-2 is DOUBLE precision floating point that uses 8 bytes. COMP-1 is single precision floating point that uses 4 bytes. COMP-2 is double precision floating point that uses 8 bytes. |
|
| 13. |
Can I Redefine An X(10) Field With A Field Of X(20)? |
|
Answer» YES, as Redefines CAUSES both FIELDS to START at the same LOCATION. Yes, as Redefines causes both fields to start at the same location. |
|
| 14. |
What Is The Use Of Evaluate Statement? |
|
Answer» Evaluate is like a CASE STATEMENT and can be used to replace nested Ifs. No break is REQUIRED as the CONTROL COMES out as a soon as match is found. Evaluate is like a case statement and can be used to replace nested Ifs. No break is required as the control comes out as a soon as match is found. |
|
| 15. |
What Is Binary Search? |
|
Answer» COMPARE the item to be SEARCHED with the item at the centre. If it matches fine else repeat the process with the left half or the right half DEPENDING on where the item LIES. Compare the item to be searched with the item at the centre. If it matches fine else repeat the process with the left half or the right half depending on where the item lies. |
|
| 16. |
What Is 77 Level Used For? |
|
Answer» It is an ELEMENTARY LEVEL ITEM which cannot be SUBDIVIDED. It is an elementary level item which cannot be subdivided. |
|
| 17. |
What Is The Difference Between Static Call And Dynamic Call? |
|
Answer» In STATIC call, the called program is a STAND alone program, it is an EXECUTABLE program. During RUN time we can call it in our called program. As about dynamic call, the called program is not an executable program; it can be EXECUTED through the called program only. In static call, the called program is a stand alone program, it is an executable program. During run time we can call it in our called program. As about dynamic call, the called program is not an executable program; it can be executed through the called program only. |
|
| 18. |
What Is The Purpose Of Identification Division? |
|
Answer» IDENTIFICATION DIVISION is USED for DOCUMENTATION PURPOSE. Identification Division is used for documentation purpose. |
|
| 19. |
How Is Sign Stored In A Comp-3 Field? |
|
Answer» It is STORED in the LAST NIBBLE. It is stored in the last nibble. |
|
| 20. |
What Will Happen If You Code Go Back Instead Of Stop Run In A Stand Alone Cobol Program? |
|
Answer» The PROGRAM will GO in an INFINITE LOOP. The program will go in an infinite loop. |
|
| 21. |
What Is A Linkage Section? |
|
Answer» The linkage section is a PART of a called program that 'links' or maps to DATA items in the CALLING program's working STORAGE. The linkage section is a part of a called program that 'links' or maps to data items in the calling program's working storage. |
|
| 22. |
What Is The Difference Between Call By Content And Call By Reference? |
|
Answer» The parameters PASSED in a CALL By CONTENT are protected from modification by the called program. In Call By REFERENCE, parameters can be MODIFIED by the called program. The parameters passed in a Call By Content are protected from modification by the called program. In Call By Reference, parameters can be modified by the called program. |
|
| 23. |
What Is The Mode In Which You Will Open A File For Writing? |
|
Answer» To WRITE into a file, the file has to be opened in either OUTPUT or EXTEND MODE. To write into a file, the file has to be opened in either OUTPUT or EXTEND mode. |
|
| 24. |
Why We Can Not Define Occurs Clause At 01 Level? |
|
Answer» 01 is of the record level. We REPEAT the FIELDS within a record, not the record itself. So an Occurs CLAUSE can not be USED at 01 level. 01 is of the record level. We repeat the fields within a record, not the record itself. So an Occurs clause can not be used at 01 level. |
|
| 25. |
What Is The Difference Between Continue And Next Sentence? |
|
Answer» CONTINUE transfers the control to the NEXT statement after the scope TERMINATOR. NEXT SENTENCE transfers the control to the statement after the FIRST PERIOD encountered. CONTINUE transfers the control to the next statement after the scope terminator. NEXT SENTENCE transfers the control to the statement after the first period encountered. |
|
| 26. |
What Is The Maximum Size Of A Numeric Field We Can Define In Cobol? |
|
Answer» The maximum SIZE of a NUMERIC field is PIC 9(18). The maximum size of a numeric field is PIC 9(18). |
|
| 27. |
What Are The File Opening Modes In Cobol? |
|
Answer» FILE OPENING modes in COBOL include: INPUT, OUTPUT, I-O, and EXTEND. File opening modes in COBOL include: INPUT, OUTPUT, I-O, and EXTEND. |
|
| 28. |
What Is A Scope Terminator? |
|
Answer» Scope terminator is USED to MARK the END of a VERB. EXAMPLE: IF and END-IF. Scope terminator is used to mark the end of a verb. Example: IF and END-IF. |
|
| 29. |
What Is The Difference Between Performing A Section And A Paragraph? |
|
Answer» PERFORMING a SECTION will cause all the paragraphs that are a PART of the section to be performed. Performing a PARAGRAPH will cause only a paragraph to be performed. Performing a SECTION will cause all the paragraphs that are a part of the section to be performed. Performing a PARAGRAPH will cause only a paragraph to be performed. |
|
| 30. |
What Is The Difference Between Search And Search All? |
|
Answer» SEARCH is a serial search, WHEREAS SEARCH ALL is a BINARY search. A table must be in SORTED ORDER before using SEARCH ALL. SEARCH is a serial search, whereas SEARCH ALL is a binary search. A table must be in sorted order before using SEARCH ALL. |
|
| 31. |
What Is The Difference Between Subscript And Index? |
|
Answer» SUBSCRIPT is the occurrence in an ARRAY. Index is the displacement from the BEGINNING of an array. Subscript is the occurrence in an array. Index is the displacement from the beginning of an array. |
|
| 32. |
What Are 66 And 88 Level Used For? |
|
Answer» LEVEL 66 is used for RENAMES CLAUSE and Level 88 is used for condition NAMES. Level 66 is used for RENAMES clause and Level 88 is used for condition names. |
|
| 33. |
What Is 'is Numeric' Clause? |
|
Answer» IS NUMERIC clause is USED to check if any ITEM is numeric or not. It RETURNS TRUE when the item against which it is used contains only numbers(0 to 9). The item can be positive or negative. IS NUMERIC clause is used to check if any item is numeric or not. It returns TRUE when the item against which it is used contains only numbers(0 to 9). The item can be positive or negative. |
|
| 34. |
What Are The Different Data Types Available In Cobol? |
|
Answer» Alpha-NUMERIC (X), ALPHABETIC (A), and Numeric (9). Alpha-numeric (X), Alphabetic (A), and Numeric (9). |
|
| 35. |
Name The Divisions In A Cobol Program. |
|
Answer» IDENTIFICATION DIVISION, ENVIRONMENT Division, DATA Division, and PROCEDURE Division. Identification Division, Environment Division, Data Division, and Procedure Division. |
|
| 36. |
List Some Features Of Cobol ? |
|
Answer» COBOL is a standard language that can be compiled and executed on various machines. It is ideally suited for business-oriented applications as it can HANDLE huge volumes of DATA. It PROVIDES numerous debugging and testing tools. COBOL is a structured language; it has DIFFERENT divisions, so it is easy to debug. COBOL is a standard language that can be compiled and executed on various machines. It is ideally suited for business-oriented applications as it can handle huge volumes of data. It provides numerous debugging and testing tools. COBOL is a structured language; it has different divisions, so it is easy to debug. |
|
| 37. |
What Do You Know About Cobol? |
|
Answer» COBOL stands for COMMON Business ORIENTED Language. The US Department of Defense, in a CONFERENCE, formed CODASYL (Conference on Data Systems Language) to develop a language for MEETING business data processing needs which is now known as COBOL. COBOL stands for Common Business Oriented Language. The US Department of Defense, in a conference, formed CODASYL (Conference on Data Systems Language) to develop a language for meeting business data processing needs which is now known as COBOL. |
|
| 38. |
Why Do We Need Integrated Cics Translator? |
Answer»
|
|
| 39. |
What Is Bms? |
|
Answer» BMS stands for BASIC Map SUPPORT. It allows you to code ASSEMBLER LEVEL programs to define screens. BMS stands for Basic Map Support. It allows you to code assembler level programs to define screens. |
|
| 40. |
What Is The Meaning And Use Of The Eibaid Field? |
|
Answer» EIBAID is a key FIELD in the execute interface block; it indicates which attention key the user PRESSED to INITIATE the task. EIBAID is a key field in the execute interface block; it indicates which attention key the user pressed to initiate the task. |
|
| 41. |
What Is The Common Work Area? |
|
Answer» The common WORK AREA is a storage area that can be accessed by any TASK in a CICS SYSTEM. The common work area is a storage area that can be accessed by any task in a CICS system. |
|
| 42. |
What Is Meant By Program Reentrance? |
|
Answer» A program is considered REENTRANT if more than ONE TASK can execute the code WITHOUT INTERFERING with the other tasks execution. A program is considered reentrant if more than one task can execute the code without interfering with the other tasks execution. |
|
| 43. |
Explain The Term Multi Region Operation ? |
|
Answer» MRO is the mechanism by which DIFFERENT CICS ADDRESS spaces with in the same CPU can communicate and share resources. MRO is the mechanism by which different CICS address spaces with in the same CPU can communicate and share resources. |
|
| 44. |
What Is The Function Of The Terminal Control Table? |
|
Answer» The TCT DEFINES the characteristics of each TERMINAL with which CICS can COMMUNICATE. The TCT defines the characteristics of each terminal with which CICS can communicate. |
|
| 45. |
What Is The Difference Between Getting The System Time With Eibtime And Asktime Command? |
|
Answer» The ASKTIME COMMAND is used to request the current DATE and time. WHEREAS, the EIBTIME field ha the value at the TASK INITIATION time. The ASKTIME command is used to request the current date and time. Whereas, the EIBTIME field ha the value at the task initiation time. |
|
| 46. |
What Is The Function Of Dfhmdf Bms Macro? |
|
Answer» The DFHMDF MACRO defines fields, literal, and characteristics of a FIELD. The DFHMDF macro defines fields, literal, and characteristics of a field. |
|
| 47. |
What Is The Difference Between The Into And The Set Option In The Exec Cics Receive Map Command? |
|
Answer» The INTO option moves the information in the TIOA into the reserved specified AREA, while the SET option simply returns the ADDRESS of the TIOA to the specified BLL cell or “address-of” a linkage SECTION. The INTO option moves the information in the TIOA into the reserved specified area, while the SET option simply returns the address of the TIOA to the specified BLL cell or “address-of” a linkage section. |
|
| 48. |
What Is The Function Of The Exec Cics Handle Condition Command? |
|
Answer» To specify the paragraph or program LABEL to which the control is to be passed if the “handle CONDITION” OCCURS. To specify the paragraph or program label to which the control is to be passed if the “handle condition” occurs. |
|
| 49. |
What Is The Effect Of Including The Transid In The Exec Cics Return Command? |
|
Answer» The NEXT TIME the end-user presses an attention key, CICS will start the TRANSACTION SPECIFIED in the TRANSID option. The next time the end-user presses an attention key, CICS will start the transaction specified in the TRANSID option. |
|
| 50. |
What Information Can Be Obtained From The Eibrcode? |
|
Answer» The EIBRCODE TELLS the APPLICATION program if the LAST CICS command was executed successfully or not. The EIBRCODE tells the application program if the last CICS command was executed successfully or not. |
|