0

mainframe Online Quiz - 124

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

are the two outputs created as a result of generation of a map?

  1. The load module and DBRMLIB

  2. The map load and DBRMLIB

  3. The map copybook and the load module

  4. The MAPLIB and loadlib


Correct Option: C
  1. Define EXTATT=YES and the correct terminal type.

  2. Define EXTDATT=YES and the correct terminal type.

  3. Define EXTATRB=YES and the correct terminal type

  4. Define XTDATRB=YES and the correct terminal type.


Correct Option: A
  1. Customer Interaction Control System

  2. Consumer Information Control System

  3. Customer Information Control System

  4. Consumer Interaction Control System


Correct Option: C

What is the difference between physical map and symbolic map?

  1. The physical map is the load module and the symbolic map is the data structure

  2. The physical map is the data structure and the symbolic map is the load module

  3. Physical map is mapped with addresses and the symbolic map is the logical one.

  4. There is no difference


Correct Option: A

AI Explanation

To answer this question, we need to understand the concepts of physical maps and symbolic maps in the context of computer programming.

Option A) The physical map is the load module, and the symbolic map is the data structure. This option is incorrect. In computer programming, a physical map is not related to load modules, and a symbolic map is not related to data structures.

Option B) The physical map is the data structure, and the symbolic map is the load module. This option is incorrect. The physical map is not a data structure, and the symbolic map is not a load module.

Option C) The physical map is mapped with addresses, and the symbolic map is the logical one. This option is incorrect. The physical map is not necessarily mapped with addresses, and the symbolic map is not just a logical representation.

Option D) There is no difference. This option is incorrect. There is a difference between physical maps and symbolic maps.

The correct answer is A) The physical map is the load module, and the symbolic map is the data structure. In computer programming, a physical map refers to the compiled code or load module of a program. It represents the executable version of the program that can be run on a computer.

On the other hand, a symbolic map is a data structure that provides information about the program's variables, functions, and other symbols. It is used by developers and debuggers to understand the structure and behavior of the program without analyzing the compiled code directly.

Therefore, the correct answer is A) The physical map is the load module, and the symbolic map is the data structure.

  1. Length, attribute and output field

  2. Length, no.of fields and output field

  3. Length, attribute and input/output field

  4. Length, attribute and input field


Correct Option: C

How is sign stored in Packed Decimal fields?

  1. Sign is stored as a hex value in the last nibble of the storage.

  2. Sign is over punched with the numeric value stored in the last nibble.

  3. Sign is stored in the most significant bit.

  4. None of the above


Correct Option: A

How many bytes does a S9(7) COMP-3 field occupy ?

  1. 7 bytes

  2. 6 bytes

  3. 5 bytes

  4. 4 bytes


Correct Option: D

AI Explanation

To answer this question, we need to understand the representation of COMP-3 fields in COBOL.

A COMP-3 field, also known as a packed decimal field, is a type of numeric data storage format in COBOL. It is used to store decimal numbers with a fixed number of digits.

In a COMP-3 field, each digit is represented by a half-byte (4 bits). The sign (positive or negative) is stored in the last half-byte.

The S9(7) notation indicates a signed numeric field with a total of 7 digits.

To calculate the number of bytes occupied by a COMP-3 field, we divide the total number of digits by 2 (since each digit occupies half a byte) and round it up to the nearest whole number.

In this case, the S9(7) field has a total of 7 digits. Dividing 7 by 2 gives us 3.5, which we round up to 4.

Therefore, a S9(7) COMP-3 field occupies 4 bytes.

Let's go through each option to understand why it is correct or incorrect:

Option A) 7 bytes - This option is incorrect because the S9(7) COMP-3 field occupies 4 bytes, not 7. Option B) 6 bytes - This option is incorrect because the S9(7) COMP-3 field occupies 4 bytes, not 6. Option C) 5 bytes - This option is incorrect because the S9(7) COMP-3 field occupies 4 bytes, not 5. Option D) 4 bytes - This option is correct because the S9(7) COMP-3 field occupies 4 bytes.

The correct answer is D.

  1. Subscript refers to the array occurrence while index is the displacement (in no of bytes) from the beginning of the array.

  2. An index can only be modified using PERFORM, SEARCH & SET.

  3. Need to have index for a table in order to use SEARCH, SEARCH ALL.

  4. None of the above


Correct Option: D
  1. Alphabetic, Alphanumeric fields & alphanumeric edited items are set to SPACES

  2. Numeric, Numeric edited items set to ZERO.

  3. FILLER , OCCURS DEPENDING ON items left untouched.

  4. All the Above.


Correct Option: D
  1. For Renames Clause

  2. For Condition Names

  3. Elementary level item. Cannot be subdivisions of other items (cannot be qualified), nor can they be subdivided themselves.

  4. All of the above


Correct Option: A

Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND

  1. INDEXED

  2. RELATIVE

  3. SEQUENTIAL

  4. All of the above


Correct Option: D

How many subscripts or indexes are allowed for an OCCURS clause?

  1. 7

  2. 6

  3. 5

  4. 4


Correct Option: A

What is the code for the error condition "Empty File"?

  1. 10

  2. 35

  3. 23

  4. 28


Correct Option: B

Which variable will have the value returned by a subroutine once it completes?

  1. RC

  2. RETVAL

  3. RESULT

  4. RV


Correct Option: C

Which TSO command is used to read / write a file?

  1. ALLOC

  2. FREE

  3. SUBMIT

  4. EXECIO


Correct Option: D

Which of the following can be used to read and write from a file? Choose all that apply

  1. DATA STACK

  2. QUEUE

  3. COMPOUND VARIABLE

  4. SYMBOLIC VARIABLE


Correct Option: A
- Hide questions