soliton is recruiting for this year. engineering students could find this useful
very nice..Full description
Full description
Here are Analogies 20 Questions with Answers. Now prepare your sefl for NTS (National Testing Service) Tests, This is effort of NTSFORUMS.com team members and we will daily add more question…Full description
oracle dba interview questionsFull description
ARAMCO Test Questions-with Answers for Work Permit ReceiverFull description
Verlilog
interview questions
Basic interview questions on system verilogFull description
mcq's on services marketing...with their solution
testing bookFull description
H
Mech Engg
COBOL Questions:
1. Prog Progra ram m name name:: P1. P1. Load library: TRGF99.COBOL.LOADLIB Input File: TRGF99.FILE1 Output File: TRGF99.OUTFILE //JOB1 JOB 124 //STEP01 EXEC PGM=P1 //STEPLIB DD DSN=TRGF99.COBOL.LOADLIB1,DISP=S DSN=TRGF99.COBOL.LOADLIB1,DISP=SHR HR //INFILE DD DSN=TRGF99.FILE1,DISP=S DSN=TRGF99.FILE1,DISP=SHR HR //OUTFILE DD DSN=TRGF99.OUTFILE,DISP= DSN=TRGF99.OUTFILE,DISP=MOD MOD In the above scenario, if we execute the above program which one of the following errors we get? a) S806 b)SE37 c)S0C4 d)S0C7 2. If ‘MAINPG ‘MAINPGM’ M’ is a COBOL COBOL program program that calls calls another another program program ‘LINKPGM ‘LINKPGM’’ and passes a value say, ‘10’, that value will be accepted by another variable in link program. Where that variable is declared? a) Working Storage Section of MAINPGM b) Linkage Section of MAINPGM c) Linkage Section of LINKPGM d) Working Storage Section of LINKPGM e) Both b & d 3. A file attribu attribute te mismatch mismatch was encounte encountered. red. Which Which of the followin following g status status code is related to the above message? a)35 b)39 c)46 d)90 4. Which Which of the follow following ing divis division ionss are mandat mandatory ory i) IDENTIFICATION ii) ENVIRONMENT iii) DATA iv) PROCEDURE a) i only
b) i & ii
c) iv only
d) i & iv
5. 01 WS WS--ABC ABC PIC X. 88 FOUND VALUE ‘Y’. 88 NOT-FOUND VALUE ‘N’. What is the error in the above code? a) PIC clause is missi missing ng in the FOUND FOUND declaration declaration.. b) PIC clause clause is missing missing in the NOT-FOUN NOT-FOUND D declaration. declaration. c) 88 level level varia variables bles are decl declared ared in Area-A Area-A.. d) 01 level level varia variable ble is is declare declared d in AreaArea-A. A.
e) iii & iv
6. Every file entry in the File Control should have a description in the File Section. a) True b) False 7. IF A>B IF A>C DISPLAY ‘A’ NEXT SENTENCE END-IF DISPLAY ‘C’ END-IF. DISPLAY ‘B’. If A=10, B=5, C=7. What is the output? b) A B a) A C B c) B
d) C B
8. What is the statement that is used to stop the execution of the program? a) GOBACK b) EXIT d) EXIT c) STOP RUN 9. MAIN-PARA DISPLAY ‘IN MAIN-PARA’. PERFORM PARA1 THRU PARA2. STOP RUN. PARA1. DISPLAY ‘IN PARA1’. PARA3. DISPLAY ‘IN PARA3’. PARA2. DISPLAY ‘IN PARA2’. Assume that the above code is in the PROCEDURE DIVISION of a COBOL program. If the above program is executed, what is the output? a) IN MAIN-PARA IN PARA1 IN PARA2
b) IN MAIN-PARA c) IN MAIN-PARA IN PARA1 IN PARA1 IN PARA3 IN PARA2 IN PARA3 IN PARA2
d) Compilation Error as Para-names are not declared in a proper order.
10. Can we move a variable containing Alphanumeric value to a variable containing Numeric value? a) Yes
b) No
11. How many bytes are required to store data internally for a variable defined as PIC 9(7)V99 USAGE COMP-3. a) 4
b) 5
c) 6
d) 9
12. Find the number of bytes which will be stored in the variable EMP-RECORD 01 EMP-RECORD. 02 EMP-DATA1. 03 EMP-NAME PIC X(10). 03 EMP-SAL PIC 9(04). 02 EMP-DATA2 REDEFINES EMP-DATA1. 03 EMP-N1 PIC X(12). 03 EMP-N2 PIC 9(02). 02 EMP-DATA3. 03 DEPT1 PIC X(02). 03 DEPT2 PIC X(02). a) 14 b) 16 c) 18
d) 32
13. A PIC 9(2)V9(3) VALUE 10.121 B PIC 9(2) VALUE 12 C PIC 9(2)V99 VALUE 11.23 What will be the value in C after the following statement is executed ADD A, B GIVING C ROUNDED a) 22.121