Mainframe COBOL Programming Fundamentals

Test your knowledge of COBOL programming concepts including data types, file handling, control structures, and mainframe system technologies

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What does CICS stand for

  1. Customer Interface Control System
  2. Central Information Control System
  3. Customer Information Control System
  4. Computing Instructions Control System
Question 2 Multiple Choice (Single Answer)

What does DASD stand for

  1. Data Systems Authorization Directory
  2. Direct Access Storage Device
  3. Data Systems Storage Device
  4. Digital's Attempted Storage Domination
Question 3 Multiple Choice (Single Answer)

What does RACF stand for

  1. Resource Allocation Control Facility
  2. Really Alarming Computing Fact
  3. Remote Access Computing Facility
  4. Resource Access Control Facility
Question 4 Multiple Choice (Single Answer)

What does MVS stand for

  1. Mainframe Virtual System
  2. Multiple Virtualization System
  3. Multiple Virtual Storage
  4. Mainframe Virtualization System
Question 5 Multiple Choice (Single Answer)

What does Rexx stand for

  1. Reactived Extendable Exchange language
  2. Restructured Extended Executor language
  3. Reactive Enforcement Execution Exchange language
  4. None of the above
Question 6 Multiple Choice (Single Answer)

What is the maximum value of the variable declared as PIC S9(9) ?

  1. 9
  2. 99999999
  3. 999999999
  4. None of above
Question 7 Multiple Choice (Single Answer)

Which file open mode option throws error?

  1. EXTEND
  2. OUTPUT
  3. I-O
  4. INPUT
  5. None of the above
Question 8 Multiple Choice (Single Answer)

One of the below option is not a COBOL intrinsic function

  1. CHAR
  2. ORD
  3. REM
  4. REVERSE
  5. ANNUITY
  6. None
Question 9 Multiple Choice (Single Answer)

What is the default recording mode for QSAM file?

  1. Recording mode - F
  2. Recording mode - V
  3. Recording mode - U
  4. Recording mode - S
  5. No default mode for QSAM
Question 10 Multiple Choice (Single Answer)

Which one of following section does not belong to Data division ?

  1. FILE SECTION
  2. REPORT-SECTION
  3. SCREEN-SECTION
  4. STORAGE-SECTION
Question 11 Multiple Choice (Single Answer)

What is the representation of COMP variable ?

  1. Binary storage
  2. Packed Decimal
  3. Hexa decimal
  4. Decimal
Question 12 Multiple Choice (Single Answer)

77 COUNT-VAR PIC 9 VALUE ZERO. 01 DATA-VAR PIC X(12). . . . INSPECT DATA-VAR TALLYING COUNT-VAR FOR LEADING “R” REPLACING FIRST “A” BY “2” AFTER INITIAL “Q” Refer to code above , If DATA-2 = RRAQADRRYRBB What are values for COUNT-VAR & DATA-VAR after the execution of INSPECT Statement ?

  1. 3 , RRAQ2DRRYRBB
  2. 0 , RR2Q2DRRYRBB
  3. 2 , RRAQ2DRRYRBB
  4. 2 , RR2QADRRYRBB
Question 13 Multiple Choice (Single Answer)

If I redefine X(7) field with X(10) ,

  1. Compilation Error
  2. Executes successfully
  3. Run time Error
  4. Logical Error
Question 14 Multiple Choice (Single Answer)

Merging two sequential files with single statement can done using ____ Option ?

  1. MER
  2. MERGE
  3. COMBINE
  4. JOIN
Question 15 Multiple Choice (Single Answer)

SEARCH ALL is a _______ type of Search ?

  1. Serial Search on sorted table
  2. Binary Search on sorted table
  3. Serial Search on Non sorted table
  4. Binary Search on Non sorted table
Question 16 Multiple Choice (Single Answer)

The COBOL perform loop is the equivalent of which of the following structures found in other languages, such as Java or C++

  1. For loop
  2. Do-While loop
  3. Method
  4. None of the Above
Question 17 Multiple Choice (Single Answer)

How many comparisons can a single COBOL if statement make?

  1. There is no limit
  2. 1
  3. 2
  4. COBOL if statements are not used to compare variable values
Question 18 Multiple Choice (Single Answer)

Which of the following errors are possible within a COBOL if statement?

  1. Infinite loop
  2. Logical Error
  3. All of the above
  4. None of the abov
Question 19 Multiple Choice (Single Answer)

A = 0, B = 9….. Perform until a > b Add 2 to a End-perform How many additions are performed?

  1. 5
  2. 4
  3. 3
  4. 6
Question 20 Multiple Choice (Single Answer)

Not negative means…

  1. = 0
  2. >=1
  3. <=0
  4. >=0