0

mainframe Online Quiz - 67

Description: mainframe Online Quiz - 67
Number of Questions: 20
Created by:
Tags: mainframe
Attempted 0/20 Correct 0 Score 0

Like COBOL programs, in COBOL copybooks also, an asterisk at the seventh column will comment out the line.

  1. True

  2. False


Correct Option: A

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.

  1. True

  2. False


Correct Option: A

CONFIGURATION SECTION in COBOL must be present.

  1. True

  2. False


Correct Option: B

Indexes can be used as subscripts while subscripts cannot be used as indexes.

  1. True

  2. False


Correct Option: A

AI Explanation

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[1]. 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

  1. Yes

  2. No

  3. Platform Dependent

  4. Compile but Goes into a LOOP


Correct Option: A

Size occupied by a data item having COMP-1 usage

  1. 1 word

  2. 2 word

  3. depends on value passed

  4. Usage can't be COMP-1


Correct Option: A

AI Explanation

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

  1. 2

  2. 3

  3. 4

  4. 5


Correct Option: B

we can set START position for a SEQUENTIAL file

  1. True

  2. False


Correct Option: B

SORT statement works only with SEQUENTIAL files

  1. True

  2. False


Correct Option: A

using SORT statement, sorting can be done on any no of keys

  1. True

  2. False


Correct Option: A

SEARCH ALL can only be applied to sorted tables??

  1. True

  2. False


Correct Option: A
Explanation:

To answer this question, the user needs to know what the SEARCH ALL operation does and if it requires sorted tables.

The SEARCH ALL operation is used to find a specific record in a table that matches a given key value. It starts searching from the beginning of the table and stops when it finds the first matching record. If the table is not sorted, the search operation will have to check every record in the table, which can be slow and inefficient.

Therefore, the correct answer is:

The Answer is: A. True.

SEARCH ALL can only be applied to sorted tables for efficient search operations.

Select the correct edited value in field with: Picture ZZZ9V99DB VALUEE MOVED IS -152^25 B IN OPTIONS STANDS FOR SPACE

  1. B15225DB

  2. 15225DB

  3. 15225CR

  4. B15225CR


Correct Option: A

EXIT is a no operation statement and when encountered, no action is taken.

  1. True

  2. False


Correct Option: A

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

  1. A

  2. B

  3. C

  4. D


Correct Option: C

What is a physical map? a. Data Structure b. Load Module c. Copybook d. None

  1. A

  2. B

  3. C

  4. D


Correct Option: B

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

  1. A

  2. B

  3. C

  4. D


Correct Option: D

Parameter to generate the symbolic map a. DSECT b. FSET c. MDT d. MDI

  1. A

  2. B

  3. C

  4. D


Correct Option: A

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

  1. A

  2. B

  3. C

  4. D


Correct Option: A

In which table would you make an entry for a BMS map? a. RCT b. PCT c. PPT d. FCT

  1. A

  2. B

  3. C

  4. D


Correct Option: C

Command to create a new copy a. CECI SET b. CEMT SET c. CEDF SET d. none

  1. A

  2. B

  3. C

  4. D


Correct Option: B
- Hide questions