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
Is length = 0 sufficient to ascertain that the field has been modified?
What is a transid?
Can QSAM files be accessed from CICS?
Give certain situations where NEWCOPY is obligatory?
what is the difference between a return with transid and xctl? For example program. A is issuing return with transid to program b. Program a. Is isssuing xctl to program b?
Define cics interface block?
Can dynamic calls be used in CICS?
Give the definition of COMMAREA ?
specify the requirements for automatic task initiation. (Mention the control table, it is entries and the corresponding procedure division cics command).?
Can you explain dfhmdf bms macro?
Can you define cemt?
What are the types of the dfhmdf present in the cics?
What are the some important fields in the eib block?
What is the kcp in the cics?
which cics service transaction is used to gain accessibility to cics control tables? Mention the one that has the highest priority.?