COBOL TEST-4 WITH ANSWERS

cobol interview questions

Moderator: Moderator Group

Post Reply
ballaravi@gmail.com
Member
Posts: 16
Joined: Fri Jun 25, 2010 10:50 am

COBOL TEST-4 WITH ANSWERS

Post by ballaravi@gmail.com » Tue Dec 07, 2010 10:53 pm

IF I AM INCORRECT,CORRECT ME.. PLZ..

(1) What are different file OPEN modes available in COBOL?

a) Open for READ, OUTPUT, I-O, EXTEND.
b) Open for INPUT, OUTPUT, I-O, EXTEND.
c) Open for READ, WRITE, I-O, EXTEND.
d) Open for INPUT, OUTPUT, I-O, APPEND


(2) Hierarchy of the execute of logical operators is

a) NOT AND OR
b) AND OR NOT
c) OR NOT AND
d) OR AND NOT


(3) What is File status 02 ?

a) Record Key duplicate
b) End of file
c) Alternate Key Duplicate
d) File open Error


(4) Which of the following is not a procedure division verb?

a) Start
b) Seek
c) Rerun
d) Delete


(5) How many bytes will comp-2 occupy?

a) 8 bytes
b) 4 bytes
c) 16 bytes
d) 24 bytes


(6) What is the result of the following? DIVIDE A INTO B GIVING C

a) C=A/B
b) remainder of B/A is stored in C
c) C=B/A
d) The remainder of A/B is stored in C


(7) ON SIZE ERROR can be used along with sz0

a) All arithmetic verbs
b) Only ADD, COMPUTE and MULTIPLY verbs
c) only COMPUTE verb
d) Only ADD verb


(8) What do you mean by file status 39

a) File opened in wrong mode
b) File attribute mismatch
c) File logically error
d) File opened in write mode


(9) Indicate which one of the following is incorrect

a) SUBTRACT A B C FROM D E F
b) SUBTRACT A B C FROM D E GIVING F G.
c) SUBTRACT A FROM D, B FROM E, C FROM F.
d) SUBTRACT A FROM B GIVING D E F.


(10) How is sign stored in Zoned Decimal fields?

a) Sign is stored as a hex value in the last nibble (4 bits ) of the storage
b) Sign is over punched with numeric value stored in the last bite
c) Sign is stored in hex value in first 4 bits of storage
d) None of the above



(11) C1 C2 C3 are three conditions whose TRUTH values are as follows. C1-TRUE C2-FALSE C3-TRUE A,B,C are defined as given below
A:C1 AND(NOT C2) OR C3
B.(NOT C1) OR (NOT C2 AND NOT C3)
C.(C1 OR C2)AND C3
D.C1 AND C2 OR C3

given the above information which of the following statements are valid?


a) only A,B and C are TRUE
b) only A,C and D are TRUE
c) A,B,C and D are TRUE
d) only C and D are TRUE


(12) 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


(13) What is the linkage section?

a) It is must for called program
b) It is must for calling program
c) used for displaying messages in sub program
d) Temporary storage for called program


(14) What is the compiler option to get 24 digit number?

a) ARITH(EXTEND)
b) TEST
c) RENT
d) ARITH(COMPAT)


sandeepnami
Member
Posts: 1
Joined: Tue Apr 03, 2012 8:17 pm

Post by sandeepnami » Tue Feb 11, 2014 12:34 pm

For second question answer will be
A. NOT AND OR

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others