Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Consider the following COBOL entries:
05 X PIC 99 VALUE 10.
SUBTRACT 20 FROM X.
The resultant value of X wil be

Answers were Sorted based on User's Feedback



Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resulta..

Answer / sayan

since no sign clause is mentioned, the minus sign is
ignored and the resultant value of X will be 10.

Is This Answer Correct ?    16 Yes 1 No

Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resulta..

Answer / sweta

Answer will be 10.

Is This Answer Correct ?    12 Yes 0 No

Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resulta..

Answer / rajiv gupta

Answeer would be 10. as 20 -10 should be -10 but X is not
declared as signed variable as S9(2)so answer is 10.

Is This Answer Correct ?    5 Yes 1 No

Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resulta..

Answer / swappy

Answer #3 is correct. Since there is no sign clause it will
just ignore the -ve sign and resultant will be 10.
Also Prabhu, there is no problem with the level no. There
will not be any error due to the level no.

Is This Answer Correct ?    4 Yes 1 No

Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resulta..

Answer / madhu

x=x-20 will be -10

Since there is a -ve sign in the beginning it'll be stored
on top of the last digit. So -0 = }.

Then ans will be 1}

Is This Answer Correct ?    4 Yes 4 No

Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resulta..

Answer / guest

x= x -20 it will give error

Is This Answer Correct ?    2 Yes 4 No

Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resulta..

Answer / prabhu shankar

If u see the level number itself u can able to say that it
will show error. Because PIC will have the level number 77
and not like 01,02,03.


So it show the error only.Wll not exucute.

I think so. If any wrong plz apologise me.

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More COBOL Interview Questions

using redefine can you redefine lower variable size to higher variable size?

3 Answers   Patni,


i have n records in one file and in this file there is some fields and i want to count that how many sharma in my file so plz give the coding that how we read sharma ?

2 Answers  


What is the maximum data length for Numeric DataType ?

3 Answers   Cap Gemini,


What is a subscript ?

3 Answers  


whn do i get soc7 abend while moving alphanumeric to numeric or while moving numeric to aplhanumeric please reply ASAP?

9 Answers  


I know my query will return more than one row but I don't want cursor what should I do?

1 Answers  


how will u code parm parameter and where pls ?

3 Answers   DELL,


how you will define variables length in cobol.

3 Answers   Temenos,


How you can read the file from bottom?

0 Answers  


hi dudes.....can any one help me..... what is SET TO TRUE all about,anyway?

1 Answers  


I am getting S00F abend when i try to compare two variable of different pic class,one variable is of 9(09) and another is S9(09) comp-3. First i moved the data from S9(09) comp-3 to 9(09), but no luck. So i tried to move the data from S9(09) comp-3 to X (09) and move to 9(09). I am getting same error message, Please help me to find solution for this ptoblem. ERROR MESSAGE - "The system or user abend S00F R=NULL was issued."

1 Answers  


can we use go to statement inline-perform?

7 Answers   IBM,


Categories