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
Can you define aica abend?
What is the common work area?
What is the procedure to solve an ASRA ABEND?
How can you use dynamic calls in cics?
What are some of the cics commands associated with interval control?
In the EIB block of CICS, highlight the names of few of the important fields?
Can you define commarea?
What is the syncpoint command?
What is the tcp in the cisc?
Explain how do you intitiate another transaction?
Define floating maps with illustration?
What are the classifications of the cics program?
Explain how do you access the records randomly in tsq?
what is the differences between getting the system time with eibtime and asktime command?
How ENQ and DEQ used in CICS?