COBOL Programming and Performance
Questions covering COBOL compiler options, file handling, IMS integration, and performance optimization techniques
Questions
Even though the main program does not contain any input or output statements, it can reference the record area of the file
- True
- False
What is the function of EF1OPENO?
- (1) Opens the external file for output and checks the file status code
- (2) The main program, which calls all the subprograms and then verifies the contents of a record area
- (3) Opens the external file for input and checks the file status code
- (4) Reads a record from the external file and checks the file status code
What is the function of EF1READ?
- (1) It reads a record from the internal Record.
- (2) Reads a record from the external file and checks the file status code
- (3) The main program, which calls all the subprograms and then verifies the contents of a record area
- (4) Reads a record from the external file,checks the file status code and writes the same record into the external file.
EFSELECT comes under
- (1) FILE-CONTROL
- (2) FILE SECTION
- (3) WORKING-STORAGE SECTION
- (4) Procedure division
EFFILE comes under
- (1) FILE-CONTROL
- (2) FILE SECTION
- (3) WORKING-STORAGE SECTION
- (4) Procedure division
Which of the following is most efficient access procedure?
- (1) Random access
- (2) Static access
- (3) Dynamic access
- (4) Sequential access
Procedure pointers are data items defined by which of the following clause?
- (1) USING PICTURE Clause
- (2) The USAGE IS FUNCTION-POINTER clause
- (3) The USAGE IS PROCEDURE-POINTER clause
- (4) The USAGE IS FUNCTION-ADDRESS clause
Which one of the following is true about Performance considerations for COMP-5?
- (1) Using 5 to 9 digits is 35% faster than using 1 to 4 digits.
- (2) Using 10 to 18 digits is 2200% slower than using 1 to 4 digits.
- (3) using an odd number of digits is 5% to 20% faster than using an even number of digits
- (4) Using the 16 to 18 digits is up to 140% slower than using 1 to 15 digits
In a COBOL program it is possible to specify another entry point at which a program will begin running by using the ENTRY label in the called program, it is called as?
- (1) Dynamic entry point
- (2) Alternate entry point
- (3) Static entry point
- (4) Normarl enrty Point
In COBOL, IMS message processing programs (MPPs) do not use non-IMS input or output statements such as READ, WRITE, REWRITE, OPEN, and CLOSE
- True
- False
What is the Performance considerations using FASTSRT?
- (1) One program that processed 100,000 records was 35% faster when using FASTSRT compared to using NOFASTSRT
- (2) One program that processed 100,000 records was 35% slower when using FASTSRT Compared to using NOFASTSRT
- (3) One program that processed using FASTSRT and NOFASTSRT are ssame.
- (4) None of the above
Procedure pointers are more efficient than function pointers for ?
- (1) C/C++-to-COBOL programs calls
- (2) COBOL-to-C/C++ programs calls
- (3) COBOL-to-COBOL programs calls
- (4) C/C++-to-C/C++ programs calls
what is the benefit of Using an external file ?
- (1) Even though the main program does not contain any input or output statements, it can reference the record area of the file.
- (2) Each subprogram can control a single input or output function, such as OPEN or READ.
- (3) Each program has access to the file.
- (4) All the above
Why we use NAME Compiler Option?
- (1) Use NAME to generate a link-edit NAME card for each object module.
- (2) You can also use NAME to generate names for each load module when you are doing batch compilations.
- (3) When NAME is specified, a NAME card is appended to each object module that is created
- (4) All the above.
What is the Performance considerations using AWO?
- (1) One program using variable-length files and AWO was 88% slower than NOAWO.
- (2) On the average, AWO was equivalent to NOAWO
- (3) One program using variable-length files and AWO was 88% faster than NOAWO
- (4) All the above
With Enterprise COBOL, we can not invoke IMS facilities using the CBLTDLI call interface
- True
- False
What is mean by EF1OPENI?
- (1) Reads a record from the external file and checks the file status code
- (2) The main program, which calls all the subprograms and then verifies the contents of a record area
- (3) Opens the external file for input and checks the file status code
- (4) Opens the external file for input and checks the file status code
Which one is true in the following statements?
- (1) A smaller CISZ results in faster retrieval for random processing at the expense of inserts
- (2) A larger CISZ is less efficient for sequential processing
- (3) A larger CISZ is less efficient for random processing
- (4) A smaller CISZ results in slower retrieval for sequential processing at the expense of inserts
LINKAGE SECTION of the calling program contains?
- (1) All data-names which have been used in program
- (2) The description of the department code that is passed, using the USING clause of the CALL statement
- (3) Address of the deparment code that is passed ,using the USING clause of the CALL statement
- (4) All the above
ARITH compiler option allows you to :
- (1) Compute the arithmetic operations
- (2) Control the maximum number of digits allowed for decimal numbers
- (3) Control the inappropriate datatype if it is used by mistake
- (4) Identify the sign of the variable being used in the program