GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  TCS  >  COBOL

 Print  |  
Question:  Consider the following COBOL entries
05 X PIC 99 VALUE 10.
ADD 40 X TO X.
COMPUTE X = 3 * X - 40.
The result in X is
(a) 10
(b) 40
(c) Compile or Run time error
(d) none of these




September 09, 2007 08:49:12 #2
 NAGARAJ   Member Since: Visitor    Total Comments: N/A 

RE: Consider the following COBOL entries 05 X PIC...
 
ans: (c) compile or run time error
05 level numbe is a group variable,it cant be used as a elementary variable
     

 

Back To Question