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:

77 A PIC 9(10)
77 B PIC 9(10)
77 C PIC 9(19)

MULTIPLY AB BY B GIVING C

Which of the following is true ?

(a) The execution of the above may result in size error.
(b) The execution of the above will result in size error.
(c) The definition of C is invalid resulting in compilation
error.
(d) No error will be thee and the program would proceed
correctly.

Answers were Sorted based on User's Feedback



Consider the following: 77 A PIC 9(10) 77 B PIC 9(10) 77 C PIC 9(19) MULTIPLY AB BY..

Answer / abinand shetty

re c is the correct one as maximum numerical declaration
can be 9(18) .so above will result in compilation error

Is This Answer Correct ?    13 Yes 0 No

Consider the following: 77 A PIC 9(10) 77 B PIC 9(10) 77 C PIC 9(19) MULTIPLY AB BY..

Answer / anu

c. since maximum digits for numeric data type is 18 only.

Is This Answer Correct ?    10 Yes 0 No

Consider the following: 77 A PIC 9(10) 77 B PIC 9(10) 77 C PIC 9(19) MULTIPLY AB BY..

Answer / prasanna

A and B are two different variables and there is no
variable declared as AB. Do COBOL has enough knowledge to
identify and multiply the vaiable A and the variable B,
then by B giving the result in C. I don't think so.

Kindly correct me if I am wrong..

Is This Answer Correct ?    7 Yes 1 No

Consider the following: 77 A PIC 9(10) 77 B PIC 9(10) 77 C PIC 9(19) MULTIPLY AB BY..

Answer / vel

a

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More COBOL Interview Questions

how to convert vsam table into DB2 table?

1 Answers   IBM, Wipro,


I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns (C,D,E).I want an output file, FILE-3 which has all five columns with duplicates eliminated from column A.

3 Answers  


At the minimum, which division of COBOL is enough to be coded?

3 Answers   CTS,


What are the two search techniques ?

2 Answers   iGate,


I am sending values a and b with pic x(10) and pic x(10) by using call statement. In linkage section, I am receiving values with pic x(10) and pic x(11). Will my program fail? will it be compile error or run time abend?

3 Answers  


How to read the last 100 records from a COBOL file. The file contains N number of records.

11 Answers   IBM,


How to pass return codes from cobol to jcl?

5 Answers  


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

0 Answers  


What is the meaning of 'TALLING' verb in cobol?

5 Answers  


Which division and paragraphs are mandatory for a COBOL program?

0 Answers  


In EBCDIC, how would the number 1234 be stored?

2 Answers   TCS,


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

0 Answers   IBM,


Categories