mainframe Online Quiz - 67
|Description: mainframe Online Quiz - 67|
|Number of Questions: 20|
|Created by: Aliensbrain Bot|
Like COBOL programs, in COBOL copybooks also, an asterisk at the seventh column will comment out the line.
The SYNCHRONIZED LEFT / RIGHT clause which specifies alignment of elementary data item on storage boundary can be specified for data items defined with USAGE IS INDEX.
CONFIGURATION SECTION in COBOL must be present.
Indexes can be used as subscripts while subscripts cannot be used as indexes.
To answer this question, let's first clarify the difference between indexes and subscripts.
Indexes are commonly used in computer programming to access elements in an array or a list. They are typically represented by integers and start from 0. For example, in an array with elements [1, 2, 3], index 0 refers to the first element (1), index 1 refers to the second element (2), and so on.
On the other hand, subscripts are used in mathematical notation to represent different variables or parameters. They are typically represented by letters or symbols and are used to distinguish between different variables or parameters within a formula or equation. For example, in the equation y = mx + c, the subscripts m and c represent different variables.
Based on these definitions, we can conclude that the statement "Indexes can be used as subscripts while subscripts cannot be used as indexes" is true.
Option A) True - This option is correct because indexes can be used as subscripts in mathematical notation. For example, if we have an array [1, 2, 3] and want to access the element at index 1, we can write it as array. In this case, the index 1 is used as a subscript.
Option B) False - This option is incorrect because subscripts can be used in mathematical notation, but they cannot be used as indexes in computer programming.
The correct answer is A) True.
Technically, can you use STOP RUN in a COBOL Subroutine
Size occupied by a data item having COMP-1 usage
To answer this question, we need to understand the usage of COMP-1 in COBOL.
In COBOL, the COMP-1 data type is used to represent single-precision floating-point numbers. It occupies 4 bytes or 1 word of storage.
Therefore, the correct answer is option A) 1 word. The size occupied by a data item having COMP-1 usage is 1 word.
find the error in following code(GIVE THE LINE NO) 1 IF A > B 2 MOVE 1 TO FLAG-A 3 MOVE 200 TO VALUE-B. 4 IF VALUE-B > 20 5 GO TO EXIT-PARA 6 END-IF 7 END-IF
we can set START position for a SEQUENTIAL file
SORT statement works only with SEQUENTIAL files
using SORT statement, sorting can be done on any no of keys
SEARCH ALL can only be applied to sorted tables??
Select the correct edited value in field with: Picture ZZZ9V99DB VALUEE MOVED IS -152^25 B IN OPTIONS STANDS FOR SPACE
EXIT is a no operation statement and when encountered, no action is taken.
What are the outputs created as a result of generation of a map? A. Load Module B. Copybook C. Both a and b D. None of the above
What is a physical map? a. Data Structure b. Load Module c. Copybook d. None
What is the working storage fields used for every field on the map? a. Length b. Input/Output field c. Attribute d. All of the above
Parameter to generate the symbolic map a. DSECT b. FSET c. MDT d. MDI
Name the macros used to define MAP, MAPSET and FIELD a. MAP - DFHMDI MAPSET - DFHMSD FIELD - DFHMDF b. MAP - DFHMSD MAPSET - DFHMDF FIELD - DFHMDI c. MAP - DFHMSD MAPSET - DFHMDI FIELD - DFHMDF d. MAP - DFHMDF MAPSET - DFHMDI FIELD – DFHMSD
In which table would you make an entry for a BMS map? a. RCT b. PCT c. PPT d. FCT
Command to create a new copy a. CECI SET b. CEMT SET c. CEDF SET d. none