01 a pic 9(9v99)

01 b pic 9(9.99)

wht will be the stored vales in both cases

Answers were Sorted based on User's Feedback



01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases..

Answer / sudhir

r u new to cobol? i have never seen pic 9(9v99).

i dont know how Chandrakant Sinha answered it and how there are 5 votes saying his answer is correct

Is This Answer Correct ?    6 Yes 0 No

01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases..

Answer / garry

IL-logical question.

Is This Answer Correct ?    0 Yes 0 No

01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases..

Answer / vinith

@SUDHIR


CHNADRAKANTH SINHA HAS SAID THAT IT WUD USE 3 NYTES AND 4
BYTES OF STORAGE ASSUMING THAT (V) DOESNT TAKE SPACE WHILE
(.) DOES.........AND THAT IS RIGHT

BUT AS U SAID I HAVE NEVER SEEN CODE WITH PIC 9(9V99).THTAS
WRONG

Is This Answer Correct ?    0 Yes 0 No

01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases..

Answer / venkat

i think question is 01 a pic 9(9)v99 --it's occupy memory space is -11bites
&01 b pic 9(9).99--it's occupy memory space is -12bites

Is This Answer Correct ?    1 Yes 1 No

01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases..

Answer / chandrakant sinha

3 and 4

Is This Answer Correct ?    6 Yes 7 No

01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases..

Answer / praveen

I also not seen such declation in COBOL.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am not closing the cursor used in the Sub-program? Please advise..

3 Answers   iGate,


What is Control Break processing ?

1 Answers   iGate,


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

0 Answers  


I have one column say 'X' defined as VARCHAR Can anyone tell me What are the different ways to update this column thru COBOL-DB2 program?

5 Answers  


What is wrong with the following data declaration? 01 W-DATE PIC X(6). 05 DD PIC 99. 05 MM PIC 99. 05 YY PIC 99. (a) Nothing is wrong. (b) Under W-DATE all level 05 items are having a PIC 99 but level 01 has PIC X(6). (c) PIC can't be specified for a group item. (d) DD, MM, and YY are invalid datanames.

6 Answers   Mphasis, TCS,






what is linkcard in cobol?

1 Answers   TCS,


What is the difference between a binary search and a sequential search?

10 Answers  


wht is the difference between goto and perform stmts

7 Answers   DELL,


what is the coding difference between COBOL and CICS.

8 Answers   Cap Gemini,


What is the difference between SEARCH and SEARCH ALL?

6 Answers   Cognizant,


Explain the configuration section of a cobol program with examples of syntax.

0 Answers  


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

0 Answers  


Categories