how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?

Answers were Sorted based on User's Feedback



how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?..

Answer / rana

COMP1 and COMP2 are the Single precision (Full word - 4
bytes) and Double precision (Double word - 8 bytes)
respectively.
They don't contain the Picture Clause.

COMP-3 will contain 8 Bytes.

Is This Answer Correct ?    30 Yes 4 No

how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?..

Answer / shiva

COMP1-IT OCCUPIES 4 BYTES TO STORE UP TO 18 CHARACTERS
COMP2-IT OCCUPIES 8 BYTE TO STORE UP TO 18 CHARACTERS
COMP3-IT OCCUPIES HALF BYTE FOR EACH CHARACTER AND HALF BYTE
FOR SIGN...FOR ODD DATA LENGTH SO IT OCCUPIES
(15/2=7.5)+(1/2)=7.5+0.5=8 BYTES.

Is This Answer Correct ?    21 Yes 1 No

how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?..

Answer / srinivasa yadav

COMP1 : IT TAKES 4 BYTES OF MEMORY.
COMP2 : IT TAKES 8 BYTES OF MEMORY.
COMP3 : IT TAKES 8 BYTES OF MEMORY.

Is This Answer Correct ?    18 Yes 2 No

how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?..

Answer / raghunathareddy

3bytes

Is This Answer Correct ?    3 Yes 28 No

Post New Answer

More COBOL Interview Questions

In EBCDIC, how would the number 1234 be stored?

2 Answers   TCS,


what are the control characters used in reports

1 Answers  


Can anyone please give the example of Inline Perform.

6 Answers   TCS,


Whtz the specialty of 77 level number ?

2 Answers   Infosys,


i need a program by giving input as a abcd in any randem order but i need a output as 1234 related to abcd. i.e,. a for 1,b=2,c.....etc..

5 Answers   IBM,






i want all ERRORS codes in COBOL ,JCL,VSAM ,DB2,CICS

4 Answers   Infosys,


what is the minimum number of lines a Cobol program should have to successfully compile and run

11 Answers   ABC, Societe Generale,


What is Pic 9v99 Indicates in COBOL?

0 Answers   SwanSoft Technologies,


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

0 Answers  


wht is the diff b/w if and evaluate stmts ?

2 Answers   DELL,


wht is load module and object module ?

2 Answers   DELL, TCS,


which is faster either static call or dynamic call ? and specify the reasons for it ? reply fast

1 Answers  


Categories