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
what are the differences between temporary storage queue (tsq) and transient data quene (tdq)?
which cics service transaction is used to gain accessibility to cics control tables? Mention the one that has the highest priority.?
Can a CICS code be a part of a copybook? If so, then what are the outcomes after compilation?
What is the term conversational programs means?
What is meant by MDT? Furthermore, comment on FRSET and FSET ?
Is length = 0 sufficient to ascertain that the field has been modified?
What is the kcp in the cics?
Mention the content that is present inside a PPT ?
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?
What does the 'cedf:cics' transactions do?
Particular area has been affected in cics screen, what is the process to find?
Can you explain enq and deq used in cics?
What are the terms cics generally means?
For protecting a transaction using the transaction security function, the two things that must be done are?
How to get the cursor position when we receive a map?