0

mainframe Online Quiz - 33

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

Which of the following IMS Processing mode can be used in Both Online and Batch Processing.

  1. Batch DL/I Mode

  2. BMP Mode

  3. BOP Mode

  4. MPP Mode


Correct Option: B

Which PROCOPT should be used to INSERT or REPLACE a IMS Database?

  1. L

  2. IR

  3. I

  4. LS


Correct Option: D

WHICH OF THE FOLLOWING SECTIONS DOES NOT PRESENT IN EASYTRIEVE?

  1. ENVIRONMENT SECTION

  2. LIBRARY SECTION

  3. ACTIVITY SECTION

  4. FILE SECTION


Correct Option: D

AI Explanation

To answer this question, we need to understand the different sections in Easytrieve and identify which section is not present.

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

Option A) ENVIRONMENT SECTION - This option is incorrect. The ENVIRONMENT SECTION is a valid section in Easytrieve. It is used to define the environment variables and settings for the program.

Option B) LIBRARY SECTION - This option is incorrect. The LIBRARY SECTION is a valid section in Easytrieve. It is used to include external libraries or modules that are required by the program.

Option C) ACTIVITY SECTION - This option is incorrect. The ACTIVITY SECTION is a valid section in Easytrieve. It is used to define the processing logic and actions to be performed by the program.

Option D) FILE SECTION - This option is correct. The FILE SECTION is not present in Easytrieve. Unlike other programming languages, Easytrieve does not have a dedicated FILE SECTION for defining file structures. Instead, file definitions are done within the DATA SECTION.

The correct answer is D) FILE SECTION. This option is correct because the FILE SECTION is not present in Easytrieve.

WHICH OF THE FOLLOWING ACTIVITIES ARE DEFINED IN ACTIVITY SECTION?

  1. JOB AND SORT

  2. JOB AND DEFINE

  3. SORT AND DEFINE

  4. FILE AND JOB


Correct Option: A

WHAT IS THE MAXIMUM NUMBER OF FIELDS ACCEPTED FOR EACH FILE IN EASYTRIEVE?

  1. 256

  2. 64

  3. UNLIMITED

  4. 12


Correct Option: C

AI Explanation

To answer this question, let's go through each option:

Option A) 256 - This option is incorrect because Easytrieve does not have a maximum limit of 256 fields per file.

Option B) 64 - This option is incorrect because Easytrieve does not have a maximum limit of 64 fields per file.

Option C) UNLIMITED - This option is correct. Easytrieve does not have a maximum limit on the number of fields per file. You can define as many fields as you need in a file.

Option D) 12 - This option is incorrect because Easytrieve does not have a maximum limit of 12 fields per file.

Therefore, the correct answer is C) UNLIMITED. Easytrieve does not have a maximum limit on the number of fields accepted for each file.

WHICH OF THE FOLLOWING RESTORES THE FIELD TO ITS INITIAL VALUE WHENEVER JOB OR SORT IS EXECUTED

  1. DEFINE

  2. RESET

  3. VALUE

  4. SET


Correct Option: B

AI Explanation

To answer this question, you need to understand the purpose of each option and how they affect the field value. Let's go through each option to understand why it is correct or incorrect:

Option A) DEFINE - This option is incorrect because the DEFINE statement is used to define a new field or variable with an initial value. It does not restore the field to its initial value whenever a job or sort is executed.

Option B) RESET - This option is correct because the RESET statement is used to restore the field to its initial value whenever a job or sort is executed. It allows you to reset the value of a field to its initial value, regardless of any modifications made to it during the execution of a job or sort.

Option C) VALUE - This option is incorrect because the VALUE statement is used to assign a specific value to a field or variable. It does not restore the field to its initial value whenever a job or sort is executed.

Option D) SET - This option is incorrect because the SET statement is used to assign a value to a field or variable. It does not specifically restore the field to its initial value whenever a job or sort is executed.

The correct answer is B) RESET. This option is correct because the RESET statement is used to restore the field to its initial value whenever a job or sort is executed.

WHICH OF THE FOLLWING IS A VALID JOB STATEMENT?

  1. JOB INPUT NULL

  2. JOB INPUT FILENAME

  3. JOB INPUT SQL

  4. ALL THE ABOVE


Correct Option: D

WHICH OF THE FOLLWING STATEMENT IS USED FOR THE SKIP SEQUENTIAL FILE PROCESSING?

  1. SELECT

  2. POINT

  3. READ

  4. GET


Correct Option: B

WHICH OF THE FOLLOWING INHIBITS PRINTING THE DATE IN POSITIONS ONE THROUGH EIGHT OF THE FIRST TITLE LINE

  1. ADJUST

  2. DATEADJUST

  3. NODATE

  4. NOPAGE


Correct Option: C

WHICH OF THE FOLLOWING IN EASYTRIEVE IS SIMILAR TO COMP-3 IN COBOL

  1. ALPHANUMERIC

  2. NUMERIC

  3. PACKED

  4. BINARY


Correct Option: C

WHICH OF THE FOLLOWING IS USED TO DEFINE ALL INPUT, OUTPUT AND WORKING STORAGE FIELDS USED IN THE PROGRAM

  1. ENVIRONMENT SECTION

  2. ACTIVITY SETCION

  3. LIBRARY SECTION

  4. NONE OF THE ABOVE


Correct Option: C

AI Explanation

To answer this question, you need to understand the different sections of a programming language that are used to define various components of a program.

Option A) ENVIRONMENT SECTION - This option is incorrect because the ENVIRONMENT SECTION is used to define the characteristics of the computing environment in which the program will run, such as hardware and operating system requirements.

Option B) ACTIVITY SECTION - This option is incorrect because the ACTIVITY SECTION (also known as the PROCEDURE DIVISION) is used to define the logic and sequence of the program's operations, including the execution of instructions.

Option C) LIBRARY SECTION - This option is correct because the LIBRARY SECTION (also known as the DATA DIVISION) is used to define all input, output, and working storage fields used in the program. It is where you define variables, data structures, and records that will be used in the program.

Option D) NONE OF THE ABOVE - This option is incorrect because the correct answer is Option C, the LIBRARY SECTION.

WHICH OF THE FOLLOWING INDICATES THAT THE STATEMENT CONTINUES WITH THE FIRST NON-BLANK CHARACTER IN THE NEXT STATEMENT AREA.

  1. +

  2. *

  3. -

  4. &


Correct Option: A
  1. CALL STATEMENT

  2. ADD STATEMENT

  3. LEVEL NUMBERS

  4. IF STATEMENT


Correct Option: C
  1. FILE INFILE FB(80 800)

  2. FILE INFILE VS

  3. FILE INFILE VB(100 504)

  4. NONE OF THE ABOVE


Correct Option: B
Explanation:

To solve this question, the user needs to have knowledge of VSAM files and how they are defined in JCL.

Option A: FILE INFILE FB(80 800) This option represents a flat file. The FB indicates that the file is fixed blocked, and the numbers in the parentheses specify the record length (80) and the block size (800). This is not a VSAM file.

Option B: FILE INFILE VS This option represents a VSAM file. The "VS" indicates that it is a VSAM file. However, this option is incomplete since it does not specify the file organization (KSDS, ESDS, or RRDS) and the access method (ESDS or RRDS).

Option C: FILE INFILE VB(100 504) This option represents a variable blocked file. The VB indicates that the file is variable blocked, and the numbers in the parentheses specify the maximum record length (100) and the block size (504). This is not a VSAM file.

Therefore, the correct answer is:

The Answer is: B

FILE FILE-NAME FB(150 0) HERE FB(150 0) REPRESNTS

  1. FILE IS A FIXED BLOCK FILE WITH RECORD LENGTH 150 AND BLOCK SIZE 0

  2. FILE IS A FIXED BLOCK FILE WITH RECORD LENGTH 0 AND BLOCK SIZE 150

  3. FILE IS A VSAM FILE WITH RECORD LENGTH 150 AND BLOCK SIZE 0

  4. FILE IS A VARIABLE BLOCK FILE WITH RECORD LENGTH 150 AND BLOCK SIZE 0


Correct Option: A

THE FOLLOWING IS AN EXAMPLE OF JOB INPUT (FILEN KEY(KEYNB, KEYNA) + FILE1 KEY(KEY1B, KEY1A) + FILE2 KEY(KEY2B, KEY2A))

  1. SKIPSEQUENTIAL FILE PROCESSING

  2. RANDOM FILE PROCESSING

  3. SYNCHRONIZED FILE PROCESSING

  4. NONE OF THE ABOVE


Correct Option: C

THE SEARCH STATEMENT PROVIDES ACCESS TO

  1. TABLE INFORMATION

  2. INDEX

  3. FILE INFORMATION

  4. NONE OF THE ABOVE


Correct Option: A

WHICH OF THE FOLLOWING STATEMENT IS USED TO WRITE THE RECORD TO THE OUTPUT FILE

  1. READ

  2. GET

  3. PUT

  4. WRITE


Correct Option: C

WHICH OF THE FOLLOWING IS USED IN EASYTRIEVE INSTEAD OF EVALUATE IN COBOL

  1. SELECT

  2. CASE

  3. ESTIMATE

  4. SEARCH


Correct Option: B

WHICH OF THE FOLLOWING IS NOT ASSOCIATED WITH WRITE STATEMENT

  1. ADD

  2. UPDATE

  3. MOVE

  4. DELETE


Correct Option: C
- Hide questions