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
hi,what is the module? how many modules in mainframe based banking projects
Whenever a cics program goes through a compilation process, there is always some extra code that is added to the program. Where exactly does this new piece of code go to and what is it termed as ?
Mention the content that is present inside a PPT ?
Explain the different ways of initiating transaction in cics?
Define cics interface block?
Explain the difference between tsq and tdq
Explain how do you delete item 3 in a five-item tsq?
How to dsect parameter is used in bms?
specify the requirements for automatic task initiation. (Mention the control table, it is entries and the corresponding procedure division cics command).?
What are the types of processes to create a map in cics?
Can you define bms?
What is the eib parameter?
Which commend used for terminating a browser operation?
define the field with ic in the bms map.
What does a cics translator do?