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

I have a variable account-number declared as comp-3, s9(10) comp-3 in a file. How do i find a particular account number say 123456 in that file?

3 Answers  


Can 88 level variable be declared in FD section..?

1 Answers   Infosys,


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

9 Answers  


What is comp-1 and comp-2?

0 Answers  


we can use set true for condition names.. similarly can we code set to false in cobol pgm? will it work?

1 Answers  






how can u pass the values into db2 values from cobol ?

3 Answers   CTS,


what is qualification on occurs clause?

2 Answers  


Can anyone tell me how to handle the array beyond the limit. If we have an array or a table which can handle 5000 records but now we have to compensate 20000 records with the same array? how to handle the situation.

2 Answers  


How can I tell if a module is being called DYNAMICALLY or STATICALLY?

3 Answers   CTS,


What is difference between static and dynamic call in cobol?

0 Answers  


What do you do to resolve SOC-7 error?

2 Answers   Sun Life, Wipro,


how do u link sub pgm to main pgm ?

2 Answers   TCS,


Categories