| Other COBOL Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| If A>B
next sentence
end-if
display 1
display 2.
display 3.
If a>b, it will display only 3.(the next sentence,
ie., after fullstop/period)
____________________________________
if a>b
continue
end-if
display 1
display 2.
display 3.
If a>b, it Will display 1 2 3 (the next statement)
____________________________________
if a>b
continue
display 1
end-if
display 2
display 3.
display 4.
If a>b, Will it display 2 3 4 (or) 1 2 3 4 ? | UST | 6 |
| How to display string in the reverse order using occurs
clause? | | 4 |
| The hierarchy of the execution of logical operators is
(a) NOT AND OR
(b) AND OR NOT
(c) OR AND NOT
(d) OR NOT AND
| TCS | 8 |
| Difference between next and continue clause | Kanbay | 3 |
| What will happen if we move SPACES to numeric field and
ZEROES to alphabetic field? | T-systems | 7 |
| Minimum how many Number of Paragraphs are there in ID-
Divison? | IBM | 6 |
| The following entries appear in the WORKING-STORAGE SECTION:
01 DATE-TODAY.
05 YY PIC XX VALUE "90".
05 MM PIC XX VALUE "12".
05 DD PIC XX VALUE :31".
01 DATE-EDIT PIC XX/XX/XX.
MOVE DATE-TODAY TO DATE-EDIT.
(a) 901231
(b) 90/12/31
(c) 31/12/90
(d) 311290
| TCS | 3 |
| How to declare if emp-name = AAAAA""BBB in working-storage
section. After display emp-name should print like AAAAA""BB | Polaris | 6 |
| what is jcl approach for programming? | IBM | 3 |
| is it possible to rename 01 level? | | 4 |
| I have a seq file with different fields one field is address
with pic x(50) as input in a cobol program. In address there is
'PUNE' at any different positions in the address field ( form 1
t0 50) . My requirement is select the fields with address 'PUNE'
by using cobol. Please suggest | IBM | 1 |
| What is Static,Dynamic linking ? | | 1 |
| What is the linkage section? | | 3 |
| How do u find the programs calling the given module,
without having doing 3.13 on loadlib/source library? | | 1 |
| i want to learn mainframes. i completed MCA ,whats the
future of mainframes | | 3 |
| What are VS COBOL 11 special features? | | 1 |
| What is the Importance of GLOBAL clause According to new
standards of COBOL? | | 1 |
| How do we get current date from system with century? | | 2 |
| consider the following piece of code
01 GROSS-PAY
05 BASIC-PAY PIC 9(5)
05 ALLOWENCES PIC 9(3)
if BASIC-PAY has a value 1000 and ALLOWENCES has a value
of 250,what will be
displayed by the statement
DISPLAY GROSS-PAY
a.1250
b.01000250
c.01250
d.1.250
| TCS | 3 |
| What will happen if a variable is declared as below..
Explain with an example? Working storage section:-
01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'.
01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'.
What will happen I am going to Display the WS-VARX and WS-
VARN? | | 6 |
| |
| For more COBOL Interview Questions Click Here |