consider two data items

77 W-A PIC 9(3)V99 VALUE 23.75
77 W-B PIC ZZ9V99 VLAUE 123.45
after the statement
MOVE W-A TO W-B
what will be W-B's value?
a.123.75
b.b23.75 (where b indicates space)
c.023.75
d.invalid move

Answers were Sorted based on User's Feedback



consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 1..

Answer / ram g

ANS B is correct...

Is This Answer Correct ?    15 Yes 0 No

consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 1..

Answer / rama krishna

b. Z replaces the value zero with blank spaces....

Is This Answer Correct ?    14 Yes 3 No

consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 1..

Answer / brajesh

2375 is the correct answer

Is This Answer Correct ?    0 Yes 0 No

consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 1..

Answer / satish

z is numeric edited value so can.t initialize the value
so the question is wrong

pls check it pratically

Is This Answer Correct ?    0 Yes 4 No

consider two data items 77 W-A PIC 9(3)V99 VALUE 23.75 77 W-B PIC ZZ9V99 VLAUE 1..

Answer / abinand shetty

a) 123.75

Is This Answer Correct ?    1 Yes 9 No

Post New Answer

More COBOL Interview Questions

What is Static,Dynamic linking ?

2 Answers  


Explain about Redefines cluse?

3 Answers   iGate,


01 b pic +9(4) How many bytes it will take for storage???

2 Answers  


I encountered an error when I move spaces to a numeric field?What should I do to move spaces on that field?help please.

9 Answers  


SSRange is used to do a range check on which of the Following. SUBSCRIPT,INDEX,REFERENCE MODIFICATION,Run-time option.

3 Answers   Lehman Brothers,






Why occurs cannot be used in 01 level in COBOL?

0 Answers   Arigo Infotech,


how can count the number of character in feild ?? suppose for instance i have a feild with value ' rajesh sarkar' then how can v count the number of characters whitout spaces...........

4 Answers   Wipro,


How to use the same COBOL program in Batch and CICS on lines? explain with an example

0 Answers   IBM,


I HAVE FOLLOWING DECLARATION. 02. A PIC X(10) VALUE 'XXXXXXXXXX'. 02. B REDEFINES A. 05. C PIC X(3). 05. D PIC X(3). 05. E PIC 9(3). IN MY PROG, I HAVE MOVE 1 TO E. DISPLAY A. WHAT WILL BE DISPLAYED AS A RESULT OF THIS? PLEASE EXPLAIN THE ANSWER. THANKS.

7 Answers   Amdocs,


I've one string with spaces ( I N D I A ). My question is I want remove the spaces & combine in to single string without space (INDIA).How we can write the cobol program & wich options we need to use. Please let me know.

10 Answers   Mascon,


how to crack cts interview apps? NOVEMBER 21 2010

2 Answers   CTS,


in cobol perform stmt whether it first checks the condition or not

9 Answers  


Categories