Mainframe COBOL Programming Fundamentals
Test your knowledge of COBOL programming concepts including data types, file handling, control structures, and mainframe system technologies
Questions
What does CICS stand for
- Customer Interface Control System
- Central Information Control System
- Customer Information Control System
- Computing Instructions Control System
What does DASD stand for
- Data Systems Authorization Directory
- Direct Access Storage Device
- Data Systems Storage Device
- Digital's Attempted Storage Domination
What does RACF stand for
- Resource Allocation Control Facility
- Really Alarming Computing Fact
- Remote Access Computing Facility
- Resource Access Control Facility
What does MVS stand for
- Mainframe Virtual System
- Multiple Virtualization System
- Multiple Virtual Storage
- Mainframe Virtualization System
What does Rexx stand for
- Reactived Extendable Exchange language
- Restructured Extended Executor language
- Reactive Enforcement Execution Exchange language
- None of the above
What is the maximum value of the variable declared as PIC S9(9) ?
- 9
- 99999999
- 999999999
- None of above
Which file open mode option throws error?
- EXTEND
- OUTPUT
- I-O
- INPUT
- None of the above
One of the below option is not a COBOL intrinsic function
- CHAR
- ORD
- REM
- REVERSE
- ANNUITY
- None
What is the default recording mode for QSAM file?
- Recording mode - F
- Recording mode - V
- Recording mode - U
- Recording mode - S
- No default mode for QSAM
Which one of following section does not belong to Data division ?
- FILE SECTION
- REPORT-SECTION
- SCREEN-SECTION
- STORAGE-SECTION
What is the representation of COMP variable ?
- Binary storage
- Packed Decimal
- Hexa decimal
- Decimal
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 ?
- 3 , RRAQ2DRRYRBB
- 0 , RR2Q2DRRYRBB
- 2 , RRAQ2DRRYRBB
- 2 , RR2QADRRYRBB
If I redefine X(7) field with X(10) ,
- Compilation Error
- Executes successfully
- Run time Error
- Logical Error
Merging two sequential files with single statement can done using ____ Option ?
- MER
- MERGE
- COMBINE
- JOIN
SEARCH ALL is a _______ type of Search ?
- Serial Search on sorted table
- Binary Search on sorted table
- Serial Search on Non sorted table
- Binary Search on Non sorted table
The COBOL perform loop is the equivalent of which of the following structures found in other languages, such as Java or C++
- For loop
- Do-While loop
- Method
- None of the Above
How many comparisons can a single COBOL if statement make?
- There is no limit
- 1
- 2
- COBOL if statements are not used to compare variable values
Which of the following errors are possible within a COBOL if statement?
- Infinite loop
- Logical Error
- All of the above
- None of the abov
A = 0, B = 9….. Perform until a > b Add 2 to a End-perform How many additions are performed?
- 5
- 4
- 3
- 6
Not negative means…
- = 0
- >=1
- <=0
- >=0