COBOL INTERVIEW QUESTIONSÂ
- A data name must at least be 8 digits in COBOL
A)Â Â Â True
B)Â Â Â False
- A sentence in COBOL consists of one or more than statements terminated by a period?
A)Â Â Â True
B)Â Â Â False
- A level 77 can start in any of AREA A or AREA B?
A)Â Â Â True
B)Â Â Â False
- RENAME in COBOL is not used to regroup elementary items in a group?
A)Â Â Â True
B)Â Â Â False
- Find which one of the following is not correct
A)Â Â Â The environment division is the most machine dependent division among all the divisionsB)Â Â Â In Most compilers the environment division must contain the configuration section.
C)Â Â Â Environment division has all the rules to solve any problem.
D)Â Â Â All the peripheral devices required by a cobol program are mentioned in the environment division
- 77-level entries are permitted in _________________.
A)Â Â Â Any part of the file sectionB)Â Â Â Any part of the working-storage sectionC)Â Â Â Before all 01-level entries in the working-storage section
D)Â Â Â Any part of the data division
- Each of the following combinations of edit char can appear in the same picture clause except for
A)Â Â Â -$*B)Â Â Â $CRC)Â Â Â $Z9
D)Â Â Â -$CR
- A record can be described using which of these level numbers
A)Â Â Â 01 to 49 (both inclusive) and 77
B)Â Â Â 01 to 49 (both inclusive)C)Â Â Â all odd numbers from 01 to 49D)Â Â Â all even numbers from 01 to 49
- Indicate which one of the following is an invalid paragraph name
; ; ; ;A)Â Â Â 10020
B)Â Â Â CCC+100
C)Â Â Â ZZE99
D)Â Â Â CCC-100
- Which one of the following is incorrect?
A)Â Â Â SUBTRACT A B C FROM D E FB)Â Â Â SUBTRACT A B C FROM D E GIVING F G
C)Â Â Â SUBTRACT A FROM D, B FROM E, C FROM F
D)Â Â Â SUBTRACT A FROM B GIVING D E F
- Which one of the following is incorrect
A)Â Â Â DIVIDE A INTO B
B)Â Â Â DIVIDE A BY BC)Â Â Â DIVIDE A INTO B GIVING CD)Â Â Â DIVIDE A BY B GIVING C
- A data item Var1 described with PIC S9(4) requires 3 bytes of storage if its usage clause is
A)Â Â Â CompB)Â Â Â Comp-IC)Â Â Â Display
D)Â Â Â Comp-3
- Which one of the following is not a valid statement?
A)Â Â Â MULTIPLY CORRESPONDING RECORD1 BY RECORD2B)Â Â Â ADD CORRESPONDING RECORD1 TO RECORD2C)Â Â Â MOVE CORRESPONDING RECORD1 TO RECORD2D)Â Â Â SUBTRACT CORRESPONDING RECORD1 FROM RECORD2
- Which one is incorrect in the following?
A)Â Â Â IF A IS GREATER THAN B GO TO PARA-AB)Â Â Â IF C IS NOT POSITIVE GO TO PARA-C
C)Â Â Â IF D IS NOT ALPHANUMERIC GO TO PARA-D
D)Â Â Â IF E = 3 OR 4Â GO TO PARA-VALID
- Which one of the following is false about the SET verb?
A)Â Â Â The SET verb can be used to set one or more indexes to a particular valueB)Â Â Â The SET verb can be used to move the current value of an index to one or more identifiers
C)Â Â Â The verb can be used to increment one or more identifiers by a positive integral value
D)Â Â Â The verb can be used to decrement one or more indexes by a positive integral value
- Which of the following statements are false?
A)Â Â Â A more efficient code is generated if indexing rather than subscripting is usedB)Â Â Â Indexing is a must, if search verb is to be used on a tableC)Â Â Â Relative indexing is allowed but relative subscripting is not allowed
D)Â Â Â A perform statement with varying option can manipulate a subscript but it cannot manipulate an index
- Which of the following may not take place when a file on Tape is opened in INPUT mode?
A)Â Â Â It positions the tape at the first record
B)Â Â Â It checks whether the retention period for the file has expired or not and if period is expired then prints an error message
C)Â Â Â It allocates buffers to the file to store user records
D)Â Â Â It checks the title of the file to ensure the opening of the correct file
- Which of the following does not provide options to set up special procedures for handling input-output errors or exceptions in COBOL?
A)Â Â Â Invalid key
B)Â Â Â Close statement with lock optionC)Â Â Â At end clauseD)Â Â Â Use procedure
- Which of the following is false about the block contains clause
A)Â Â Â It reduces the space required to store a file on tape or diskB)Â Â Â It reduces the time required to process a sequential fileC)Â Â Â It reduces the number of physical records in a file
D)Â Â Â It reduces the number of logical records in a file
- Which of the following is false when procedures are used with the sort verb?
A)Â Â Â The input and output procedures may share any section or any part between themB)Â Â Â Procedures must not contain any sort/merge statementC)Â Â Â Control must not be passed to any part of these procedures from elsewhere in the programD)Â Â Â An explicit transfer of control from the procedures to the outside is not allowed