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

what are the differences between temporary storage queue (tsq) and transient data quene (tdq)?

1227


which cics service transaction is used to gain accessibility to cics control tables? Mention the one that has the highest priority.?

1184


Can a CICS code be a part of a copybook? If so, then what are the outcomes after compilation?

1121


What is the term conversational programs means?

1016


What is meant by MDT? Furthermore, comment on FRSET and FSET ?

1136


Is length = 0 sufficient to ascertain that the field has been modified?

1077


What is the kcp in the cics?

1168


Mention the content that is present inside a PPT ?

993


when you compile a cics program, the (pre) compiler puts an extra chunk of code. Where does it get included and that is it called? What is its length?

1108


What does the 'cedf:cics' transactions do?

1065


Particular area has been affected in cics screen, what is the process to find?

9890


Can you explain enq and deq used in cics?

1070


What are the terms cics generally means?

1009


For protecting a transaction using the transaction security function, the two things that must be done are?

2341


How to get the cursor position when we receive a map?

1080