Test your COBOL

Generate an image of a computer programmer surrounded by COBOL code and educational materials, vibrant colors, modern office setting

Test Your COBOL Knowledge

Are you ready to dive into the world of COBOL programming? This quiz will challenge your understanding and knowledge of COBOL concepts, ranging from file handling to data types.

Whether you are a seasoned programmer or a student just starting out, this quiz will help you gauge your COBOL skills.

  • 10 engaging multiple-choice questions
  • Instant feedback on your answers
  • Learn while you play!

10 Questions2 MinutesCreated by CodingWizard537
Q1. What is the mode in which you will OPEN a file for writing?
A) OUTPUT
B)EXTEND
C) Either OUTPUT or EXTEND
D) INPUT-OUTPUT
Q2. Which utility is used for compiling COBOL program?
A) IKJEFT01
B) IGYCRCTL
C) IGYCTCRL
D) None of these
Q3. In which division, Input-Output section?
A) Identification Division
B) Environment Division
C) Data Division
D) Procedure Division
Q4. Which level number we should use for RENAMES clause?
A) 77
B) 49
C) 66
D) 88
Q5. What is the output of following program? IDENTIFICATION DIVISION. PROGRAM-ID. HELLO. DATA DIVISION. WORKING-STORAGE SECTION. 01 WS-NUM1 PIC 9(9) VALUE 10 . 01 WS-NUM2 PIC 9(9) VALUE 10. 01 WS-NUM3 PIC 9(9) VALUE 10. 01 WS-NUMA PIC 9(9) VALUE 50. 01 WS-NUMB PIC 9(9) VALUE 10. 01 WS-NUMC PIC 9(3). PROCEDURE DIVISION. COMPUTE WS-NUMC= (WS-NUM1 * WS-NUM2) - (WS-NUMA / WS-NUMB) + WS-NUM3. DISPLAY WS-NUMC STOP RUN.
A) 100
B) 105
C) Compilation error
D) Run time error
Q6. What is the output of following program? IDENTIFICATION DIVISION. PROGRAM-ID. HELLO. DATA DIVISION. WORKING-STORAGE SECTION. 01 WS-CNT PIC 9(2) VALUE 0. 01 WS-STRING PIC X(15) VALUE 'AABCDACDAAEAAAF'. PROCEDURE DIVISION. INSPECT WS-STRING TALLYING WS-CNT FOR ALL 'A'. DISPLAY WS-CNT STOP RUN.
A) 09
B) 06
C) 08
D) 10
Q7. How records are stored & accessed in sequential file organization?
A) Relative address method
B) Sequential access method
C) Direct access method
D) Both B & C
Q8. Dynamic Call occurs when a program is compiled with the DYNAM and NODLL compiler option. A dynamic called program is loaded into storage at runtime. Is this statement true or false?
A) False
B) True
Q9. In which mode you will open the sequential file to append the data in the end.
A) APPEND
B) INPUT
C) OUTPUT
D) EXTEND
Q10. What is the length of PIC S9(7) COMP?
A) 7
B) 6
C) 5
D) 4
{"name":"Test your COBOL", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Are you ready to dive into the world of COBOL programming? This quiz will challenge your understanding and knowledge of COBOL concepts, ranging from file handling to data types.Whether you are a seasoned programmer or a student just starting out, this quiz will help you gauge your COBOL skills. 10 engaging multiple-choice questionsInstant feedback on your answersLearn while you play!","img":"https:/images/course5.png"}
Powered by: Quiz Maker