IF I AM INCORRECT CORRECT ME...
(1) How should an elementary item subscript be declared to be more efficient?
a) s9(8)comp
b) s9(16)comp
c) S9(4)comp
d) s9(2)comp
(2) A word in the Computer memory is identified by_________
a) word length
b) word size
c) word address
d) None of the above
(3) In an EVALUATE statement, can I give a complex condition on a when clause?
a) Yes
b) No
c) Compilation error
d) Syntax error
(4) What is the other verb for RELEASE and WRITE ?
a) READ and WRITE
b) Rewrite and Read
c) Write and Read
d) Write and Open
(5) How could you write a program in a structured format?
a) Bottom-up approach
b) Each module serving different function
c) Program is divded into many exit point
d) No go to's
(6) Which is more efficient, level 77 OR 01?
a) 77
b) 01
c) Both
d) Neither
(7) Execution of a subordinate module is caused by the use of the COBOL verbs ------------in the superior module
a) Perfrom
b) Search
c) Evaluate
d) None of the above
(8) Which of the following is true about the file which is referenced in a delete statement?
a) Opened in INPUT mode
b) Opened in OUTPUT mode
c) Opened I/O mode
d) None of the above
(9) Can the OCCURS clause be at the 01 level?
a) Yes
b) No
c) only in 77 level number
d) All of the above
(10) The following are Data division entries
01 A PIC 9(2) VALUE IS 50
01 B PIC 9(3) VALUE IS 950
The following is the procedure Division statement
ADD A TO B ON SIZE ERROR DISPLAY 'ON SIZE ERROR'
DISPLAY 'B' B
What is the value of B when it is displayed?
a) 950
b) 1000
c) 100
d) None of the above
(11) How many sections are there in data division?.
a) 6
b) 3
c) 4
d) None of the above
(12) An index can be modified only by a
a) Add
b) Evaluate
c) Perform
d) If
(13) How is sign stored in a COMP field ?
a) in last nibble
b) in Least significant bit
c) In the most significant bit. Bit is ON if -ve, OFF if +ve
d) None of the above
(14) Indicate which one of the following is not true about the SET verb.
a) The verb can be used to set one or more indexes to a particular value
b) The verb can be used to move the current value of an index to one or more identifiers
c) The verb can be used to increment one or more identifiers by a positive integral value.
d) The verb can be used to decrement one or more indexes by a positive integral value.
(15) How many bytes are allocated for a data item PIC S9(10) binary .
a) 5
b) 6
c) 8
d) 10
(16) Consider the below code
01 WS-COUNT PIC 9 VALUE 5.
PROCEDURE DIVISION.
PERFORM NEW-SECTION THRU NEW-SECTION-EXIT WS-COUNT TIMES
STOP RUN.
NEW-SECTION.
-----------------------------
MOVE 10 TO WS-COUNT. -------- --------.
NEW-SECTION-EXIT.
EXIT.
How many times will NEW-SECTION be performed
a) 5 times
b) 10 times
c) 50 times
d) will go in loop
(17)
01 ws-n pic 9(2) value zero.
a-para.
move 5 to ws-n.
perform b-para ws-n times.
b-para.
move 10 to ws-n.
how many will b-para will execute?
a) 10 times
b) 0 times
c) 5 times
d) 50 times
(18) ACCEPT WS-DATE FROM DATE WILL RETURN THE CURRENT DATE
a) IN DDMMYY FORMAT
b) IN YYYYMMDD FORMAT
c) IN YYMMDD FORMAT
d) IN MMDDYY FORMAT
(19) Can you REWRITE a record in an ESDS file? Can you DELETE a record from it?
a) Can rewrite (record length must be same), but not delete.
b) Both rewrite and delete is possible
c) Can delete ,but can not rewrite
d) Can not do both
(20) PERFORM RTN-1 VARYING I FROM 1 by 2 UNTIL I > 2 AFTER J FROM 1 BY 1 UNTIL J > 2 AFTER K FROM 2 BY -1 UNTIL K < 1 .
HOW MANY TIMES RTN-1 WILL BE EXECUTED ?
a) 4 times
b) 5 times
c) 6 times
d) 8 times
COBOL Interview Questions -2
-
- Posts: 15
- Joined: Fri Dec 03, 2010 11:22 am
- Skillset: JCL, VSAM, COBOL, CICS, DB2
- Referer: search
COBOL Interview Questions -2
Thank You
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: COBOL TEST-2 WITH ANSWERS
Your answers to questions 1, 2, 6, and 18 are known to be wrong. I haven't looked closely at all the questions to know which other ones are wrong.
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: COBOL TEST-2 WITH ANSWERS
Hello,
If these questions (and the other set from your other topic) are the actual questions on the test (as opposed to your presentation of the questions) the tests are somewhat worthless. . . If an organization cannot properly ask COBOL related questions, i'm not sure how they can judge/rate the answers. . .
Here is a link to the Table of Contents for the Enterprise COBOL Language Reference manual:
http://publibz.boulder.ibm.com/cgi-bin/ ... 0/CONTENTS
Suggest you spend whatever time is necessary to research the answers to all of the questions.
If you find something in the documentation that is not clear, post what you found and your doubt. Someone will be able to clarify.
If these questions (and the other set from your other topic) are the actual questions on the test (as opposed to your presentation of the questions) the tests are somewhat worthless. . . If an organization cannot properly ask COBOL related questions, i'm not sure how they can judge/rate the answers. . .
Here is a link to the Table of Contents for the Enterprise COBOL Language Reference manual:
http://publibz.boulder.ibm.com/cgi-bin/ ... 0/CONTENTS
Suggest you spend whatever time is necessary to research the answers to all of the questions.
If you find something in the documentation that is not clear, post what you found and your doubt. Someone will be able to clarify.
Hope this helps,
d.sch.
d.sch.
-
- Posts: 15
- Joined: Fri Dec 03, 2010 11:22 am
- Skillset: JCL, VSAM, COBOL, CICS, DB2
- Referer: search
Re: COBOL TEST-2 WITH ANSWERS
ok,
This questions are from my institute,i just want to know the answers..
and i am not sure,the answers i kept correct or not,i joined in this forum to know answers for this and learn,
i think,this type of post will also help students,who are in this forum..
Thank you
This questions are from my institute,i just want to know the answers..
and i am not sure,the answers i kept correct or not,i joined in this forum to know answers for this and learn,
i think,this type of post will also help students,who are in this forum..
Thank you
Thank You
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: COBOL TEST-2 WITH ANSWERS
Hello,
People who actually do want to learn are willing to invest in themself. . . The way to learn what you have asked is to do the research (yes, it will take some tme) and post here when you have a question or problem. The post should include what you found and what is not clear about what you found. Someone here will be able to clarify your doubt.
Providing entire laundry lists of answers to interview questions only lets people who are not qualified get better scores on these tests. . .
We are here to explain "things" or help with problems. We are not here to do the work for people or provide them/others with a shortcut to test answers.
We do not have the resources to "teach" but do help people learn.
i joined in this forum to know answers for this and learn,
i think,this type of post will also help students,who are in this forum..
People who actually do want to learn are willing to invest in themself. . . The way to learn what you have asked is to do the research (yes, it will take some tme) and post here when you have a question or problem. The post should include what you found and what is not clear about what you found. Someone here will be able to clarify your doubt.
Providing entire laundry lists of answers to interview questions only lets people who are not qualified get better scores on these tests. . .
We are here to explain "things" or help with problems. We are not here to do the work for people or provide them/others with a shortcut to test answers.
We do not have the resources to "teach" but do help people learn.
Hope this helps,
d.sch.
d.sch.
- Akatsukami
- Global moderator
- Posts: 1058
- Joined: Sat Oct 16, 2010 2:31 am
- Skillset: Rexx, JCL, DB2/SQL, TSO/ISPF, PL/I
- Referer: ibmmainframes
- Location: Bloomington, IL
- Contact:
Re: COBOL TEST-2 WITH ANSWERS
dick scherrer wrote:Providing entire laundry lists of answers to interview questions only lets people who are not qualified get better scores on these tests. . .
But, as Robert Sample indicates, so many of the answers were wrong that anyone who memorized and regurgitated them in an interview would be most unlikely to get the job, but instead would be dismissed contempuously as an ignoramus.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: COBOL TEST-2 WITH ANSWERS
Hello,
But if we provide all of the correct answers . . .
Who knows, possibly TS has gotten a copy before the interview. . .
d
But if we provide all of the correct answers . . .
Who knows, possibly TS has gotten a copy before the interview. . .

d
-
- Posts: 15
- Joined: Fri Dec 03, 2010 11:22 am
- Skillset: JCL, VSAM, COBOL, CICS, DB2
- Referer: search
Re: COBOL TEST-2 WITH ANSWERS
yes,Dick as you said is correct only i understand, but this questions is not as you think,
The institute where i learned the Mainframe,they kept tests to improve our knowledge ,but they didn't given the answers and no body explain the doubts we got in that exams.
That's why i choosen this forum to clarify my doudts.....
I hope u understood and you will help me out
Thank You
The institute where i learned the Mainframe,they kept tests to improve our knowledge ,but they didn't given the answers and no body explain the doubts we got in that exams.
That's why i choosen this forum to clarify my doudts.....
I hope u understood and you will help me out
Thank You
Thank You
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: COBOL TEST-2 WITH ANSWERS
That's why i choosen this forum to clarify my doudts.....
I hope u understood and you will help me out
no issue on that, but the questions are so badly posed that every answer is debatable...
for example ...
(2) A word in the Computer memory is identified by_________
a) word length
b) word size
c) word address
d) None of the above
only the person who wrote the questions can tell the real <thing> ...
what is the meaning of .... WORD
what is the subtle difference between length and size
if the questions as described here are in the exact wording asked to You
well...
I suggest to change the training institute

I tend to believe that the interviewer would expect as answer
the address
the size is defined by the ARCHITECTURE
the length, what the heck does that mean ?
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- Posts: 15
- Joined: Fri Dec 03, 2010 11:22 am
- Skillset: JCL, VSAM, COBOL, CICS, DB2
- Referer: search
Re: COBOL TEST-2 WITH ANSWERS
Ok,
I have some questions more,i am posting all right now,
if any body have time,please correct me,
Hi,Dick if you are not interested to correct my answers,please let me know the wrong one,so that i can correct it..
Thank you, very much
I have some questions more,i am posting all right now,
if any body have time,please correct me,
Hi,Dick if you are not interested to correct my answers,please let me know the wrong one,so that i can correct it..
Thank you, very much
Thank You
-
- Similar Topics
- Replies
- Views
- Last post
-
- 0
- 1659
-
by ronglei
View the latest post
Mon Nov 08, 2021 2:39 pm
-
- 5
- 5499
-
by willy jensen
View the latest post
Mon Jul 17, 2023 12:41 pm
-
- 2
- 4505
-
by sergeyken
View the latest post
Sat Nov 11, 2023 3:01 am
-
- 12
- 12819
-
by Robert Sample
View the latest post
Thu Dec 15, 2022 9:28 pm
-
- 1
- 4041
-
by Leixner
View the latest post
Thu Sep 15, 2022 3:33 am