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...

I was asked in HSBC interview following questions:

1. A string was given " techincal seminar on cobol language"
Interviewer asked me to calculate the number of vowels in
this string.

Answer Posted / ameen

here is an example for counting vowles in apple word..
apply the same code for your required string....
01 str pic a(5) value 'apple'.
77 cnt pic 9(1) value 0.
01 i pic 9(1) value 1.
procedure division.
perform varying i from 1 by 1 until i>5.
if str(i:1)="A" or "a".......write all vowels.
add+1 to cnt.
display cnt.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you define aica abend?

1084


What is the common work area?

921


What is the procedure to solve an ASRA ABEND?

979


How can you use dynamic calls in cics?

1000


What are some of the cics commands associated with interval control?

985


In the EIB block of CICS, highlight the names of few of the important fields?

970


Can you define commarea?

922


What is the syncpoint command?

1112


What is the tcp in the cisc?

1031


Explain how do you intitiate another transaction?

1011


Define floating maps with illustration?

949


What are the classifications of the cics program?

1184


Explain how do you access the records randomly in tsq?

1040


what is the differences between getting the system time with eibtime and asktime command?

1063


How ENQ and DEQ used in CICS?

1377