Загрузка...

COBOL Interview questions | Mainframe interview questions | Capgemini mainframe interview

COBOL Interview questions | Mainframe interview questions | Capgemini mainframe interview

COBOL Basic Interview questions &Answers

Mandatory division, section and paragraph name in COBOL
Answer :- Identification division and program-ID

Is linkage section mandatory in program
Answer :- No we only require it in subprogram

How to check whether the variable having numeric value or not?
Answer :- Is numeric clause will be used for that

What is 77 level used for?
Answer :- It is an elementary level item which cannot be subdivided. Only 88 level can be coded under 77 level item. generally used to describe flags.

Difference between redefine and rename clause?
Redefine

define a storage with different data description
In File Section, do not use a redefines clause with 01 level number

It should be described at the same level

Do not use VALUE clause with a redefining item.

Rename

used to give different names to existing data items

Do not use Renames with 01, 77
Can only be described with 66 level

Renaming is possible at same level only
Stop run and goback
Answer- if stoprun is used in the program then the program terminates and free all the resources held by the program and control goes back to the OS
IF we use goback in the program then the program will expect the control back to the main program.
If we have used stop run in subprogram then the control will not go back to the main module
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 is encountered.

How the value will get stored in COMP-3
Answer- the value will get stored in hexadecimal format

How sign will get stored in comp-3
Answer- sign will get stored in the last nibble
+sign will get stored like C
-sign will get stored like D
If unsigned then it will get stored like F
Why we are using COMP-3?
Answer- For saving the space
Example-
s9(3) = 3 bytes
If s9(3) comp-3 = 2 bytes

Видео COBOL Interview questions | Mainframe interview questions | Capgemini mainframe interview канала Interview Island
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять