ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  MainFrame  >>  IBM MainFrame  >>  COBOL
 
 


 

 
 COBOL interview questions  COBOL Interview Questions
 JCL interview questions  JCL Interview Questions
 CICS interview questions  CICS Interview Questions
 DB2 interview questions  DB2 Interview Questions
 IMS interview questions  IMS Interview Questions
 IDMS interview questions  IDMS Interview Questions
 Natural interview questions  Natural Interview Questions
 ADABAS interview questions  ADABAS Interview Questions
 REXX interview questions  REXX Interview Questions
 Assembler interview questions  Assembler Interview Questions
 CLIST interview questions  CLIST Interview Questions
 QMF interview questions  QMF Interview Questions
 MVS interview questions  MVS Interview Questions
 OS390 interview questions  OS390 Interview Questions
 OS 2 interview questions  OS 2 Interview Questions
 VSAM interview questions  VSAM Interview Questions
 QSAM interview questions  QSAM Interview Questions
 Sysplex interview questions  Sysplex Interview Questions
 IBM MainFrame AllOther interview questions  IBM MainFrame AllOther Interview Questions
Question
consider the following piece of code
    
   01 GROSS-PAY
      05  BASIC-PAY  PIC 9(5)
      05  ALLOWENCES PIC 9(3)
   if BASIC-PAY has a value 1000 and ALLOWENCES has a value
of 250,what will be 
   displayed by the statement 
          DISPLAY GROSS-PAY
   a.1250
   b.01000250
   c.01250
   d.1.250
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: consider the following piece of code 01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWENCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWENCES has a value of 250,what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.01250 d.1.250
Answer
# 1
b. since PIC 9(5) = 01000
   and PIC   9(3) = 250

Hence the result is 01000250
 
Is This Answer Correct ?    0 Yes 0 No
Rama Krishna
 
  Re: consider the following piece of code 01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWENCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWENCES has a value of 250,what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.01250 d.1.250
Answer
# 2
(b)
 
Is This Answer Correct ?    0 Yes 0 No
Ajith
 
 
 
  Re: consider the following piece of code 01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWENCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWENCES has a value of 250,what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.01250 d.1.250
Answer
# 3
Since the over all PIC of Gross-Pay is 9(8). The value of 
Gross Pay would be 01000250 i.e. the answer (B) is correct
 
Is This Answer Correct ?    1 Yes 0 No
Tarun Nigam
 

 
 
 
Other COBOL Interview Questions
 
  Question Asked @ Answers
 
Hi all, I have a following requirement to write the cobol program. I have to load the 129 variables from input sequential file which are in excel sheet to the cobol inernal table. and after loading into table i have to compare this data with the business file. here compare means controlling the data whether the format(numeric,alpha) is same in the business file and in the table??? i have the same data in input and business file. could anyone please give me any idea of the logic?// i have all the 129 different variables(129rows,1 column)is there . IBM2
What will happen if we generate GDG (+2) version without generating (+1) version? T-systems2
Which of the following EDITind and PICTURE symbols is to be used if a minus(-) is to appear before the value if the value is -ve and a plus(+) is to appear before the value if the value is +ve? (a) + (b) - (c) + OR (d) It is not possible TCS6
which generation language is cobol Kanbay3
how to submit a jcl by cobol program. clear me with an example. HCL1
When would you use in-line perform?  1
What should be the sorting order for SEARCH ALL?  3
How do you submit JCL via a Cobol program?  3
How to read records which is in sequential file in reverse order ? Exp. 1 2 3 4 5 . i want 5 4 3 2 1?please clear my doubt any one  2
01 b pic +9(4) How many bytes it will take for storage???  1
What are different file OPEN modes available in COBOL? Sun-Life2
How to read records from flat file in reverse order through COBOL program? Polaris4
how will u find out 3rd week's 2nd day using occurs ? L&T3
hai friends ,i have HSBc exam on this sunday,my platform is Mainframe,i have 1 year exp,pls any one send me placement papers of Hsbc and technical questions on mainframe iNautix2
What are the different data types available in COBOL?  1
Identify the invalid dataname from the following: (a) SAVINGS-ACCOUNT (b) ANNUAL-ALLOCATION-FOR-OVERHEAD (c) SAMOUNT250 (d) 12DEMAND TCS2
How many maximum number of procedures can we write in one COBOL program?  3
given the following piece of code: CALL SUB-PGM USING A, B, C. CALL SUB-PGM USING A, C, C. (a) Both CALL statements will always produce same result. (d) Both CALL statements may produce different result. (c) Compile-time error because SUB-PGM is a dataname. (d) Compile-time error because A, B, C are used twice. TCS1
88 level entry is used for (a) data items in WORKING-STORAGE SECTION (b) items with RENAMES clause (c) condition-names (d) None of the above TCS2
What is the file organization clause ?  2
 
For more COBOL Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com