0

mainframe Online Quiz - 110

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

What does CICS stand for

  1. Customer Interface Control System

  2. Central Information Control System

  3. Customer Information Control System

  4. Computing Instructions Control System


Correct Option: C

What does DASD stand for

  1. Data Systems Authorization Directory

  2. Direct Access Storage Device

  3. Data Systems Storage Device

  4. Digital's Attempted Storage Domination


Correct Option: B

What does RACF stand for

  1. Resource Allocation Control Facility

  2. Really Alarming Computing Fact

  3. Remote Access Computing Facility

  4. Resource Access Control Facility


Correct Option: D

What does MVS stand for

  1. Mainframe Virtual System

  2. Multiple Virtualization System

  3. Multiple Virtual Storage

  4. Mainframe Virtualization System


Correct Option: C

What does Rexx stand for

  1. Reactived Extendable Exchange language

  2. Restructured Extended Executor language

  3. Reactive Enforcement Execution Exchange language

  4. None of the above


Correct Option: B

What is the maximum value of the variable declared as PIC S9(9) ?

  1. 9

  2. 99999999

  3. 999999999

  4. None of above


Correct Option: C

AI Explanation

To answer this question, we need to understand the concept of the "PIC S9(9)" declaration in COBOL.

In COBOL, "PIC" stands for Picture Clause, which is used to define the format and characteristics of a data item. "S9(9)" is a specific format used to declare a signed numeric field with a length of 9 digits.

In the "S9(9)" format, the first digit represents the sign of the number (positive or negative), and the remaining 8 digits represent the magnitude of the number.

The maximum value that can be represented by a 9-digit signed number is 999999999.

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

Option A) 9 - This option is incorrect because it represents a single digit number, while the "PIC S9(9)" declaration represents a 9-digit number.

Option B) 99999999 - This option is incorrect because it represents an 8-digit number, while the "PIC S9(9)" declaration represents a 9-digit number.

Option C) 999999999 - This option is correct because it represents a 9-digit number, which is the maximum value that can be represented by the "PIC S9(9)" declaration.

Option D) None of above - This option is incorrect because option C, 999999999, is the correct answer.

The correct answer is C. 999999999. This option is correct because it represents the maximum value that can be stored in a variable declared as PIC S9(9).

Which file open mode option throws error?

  1. EXTEND

  2. OUTPUT

  3. I-O

  4. INPUT

  5. None of the above


Correct Option: E

One of the below option is not a COBOL intrinsic function

  1. CHAR

  2. ORD

  3. REM

  4. REVERSE

  5. ANNUITY

  6. None


Correct Option: F

What is the default recording mode for QSAM file?

  1. Recording mode - F

  2. Recording mode - V

  3. Recording mode - U

  4. Recording mode - S

  5. No default mode for QSAM


Correct Option: A

Which one of following section does not belong to Data division ?

  1. FILE SECTION

  2. REPORT-SECTION

  3. SCREEN-SECTION

  4. STORAGE-SECTION


Correct Option: D

What is the representation of COMP variable ?

  1. Binary storage

  2. Packed Decimal

  3. Hexa decimal

  4. Decimal


Correct Option: A

77 COUNT-VAR PIC 9 VALUE ZERO. 01 DATA-VAR PIC X(12). . . . INSPECT DATA-VAR TALLYING COUNT-VAR FOR LEADING “R” REPLACING FIRST “A” BY “2” AFTER INITIAL “Q” Refer to code above , If DATA-2 = RRAQADRRYRBB What are values for COUNT-VAR & DATA-VAR after the execution of INSPECT Statement ?

  1. 3 , RRAQ2DRRYRBB

  2. 0 , RR2Q2DRRYRBB

  3. 2 , RRAQ2DRRYRBB

  4. 2 , RR2QADRRYRBB


Correct Option: C

AI Explanation

To answer this question, let's go through the execution of the INSPECT statement step by step:

Given:

  • COUNT-VAR is initialized to 0.
  • DATA-VAR is initialized to "RRAQADRRYRBB".
  • The INSPECT statement is used to perform operations on DATA-VAR.
  1. Tallying COUNT-VAR for Leading "R":

    • This operation counts the number of occurrences of the leading character "R" in DATA-VAR.
    • Since the leading character in DATA-VAR is "R", COUNT-VAR is incremented by 1. COUNT-VAR becomes 1.
  2. Replacing First "A" by "2" After Initial "Q":

    • This operation replaces the first occurrence of "A" after the initial occurrence of "Q" with "2".
    • In DATA-VAR, the first occurrence of "A" after the initial "Q" is at the fourth position.
    • The "A" at the fourth position is replaced by "2". DATA-VAR becomes "RRAQ2DRRYRBB".

After the execution of the INSPECT statement, the values for COUNT-VAR and DATA-VAR are as follows:

COUNT-VAR: 1 (as it was incremented by 1 during the tallying operation) DATA-VAR: "RRAQ2DRRYRBB" (as the replacement operation was performed)

Therefore, the correct answer is option C) 1, RRAQ2DRRYRBB.

If I redefine X(7) field with X(10) ,

  1. Compilation Error

  2. Executes successfully

  3. Run time Error

  4. Logical Error


Correct Option: B

AI Explanation

To answer this question, let's consider the scenario of redefining the field X(7) with X(10).

In programming, redefining a field typically means changing its size or data type. In this case, you are redefining X(7) with X(10), which means you are changing the size of the field from 7 to 10.

Option A) Compilation Error - This option is incorrect. Redefining a field with a larger size does not typically result in a compilation error. The compiler should be able to handle the change in size without any issues.

Option B) Executes successfully - This option is correct. Redefining X(7) with X(10) should execute successfully without any compilation errors. The updated field X(10) will have a larger size to accommodate more data.

Option C) Run time Error - This option is incorrect. Redefining a field with a larger size does not typically result in a runtime error. As long as the program is designed to handle the larger size, it should execute without any issues.

Option D) Logical Error - This option is incorrect. Redefining a field with a larger size is not a logical error. It may be a deliberate change to accommodate more data or a requirement of the program.

The correct answer is B) Executes successfully. This option is correct because redefining X(7) with X(10) should execute successfully without any compilation errors.

Merging two sequential files with single statement can done using ____ Option ?

  1. MER

  2. MERGE

  3. COMBINE

  4. JOIN


Correct Option: B

SEARCH ALL is a _______ type of Search ?

  1. Serial Search on sorted table

  2. Binary Search on sorted table

  3. Serial Search on Non sorted table

  4. Binary Search on Non sorted table


Correct Option: B

The COBOL perform loop is the equivalent of which of the following structures found in other languages, such as Java or C++

  1. For loop

  2. Do-While loop

  3. Method

  4. None of the Above


Correct Option: B

AI Explanation

To answer this question, you need to understand the COBOL perform loop and its equivalent structure in other programming languages.

The COBOL perform loop is used to repeat a set of statements a certain number of times or until a condition is met. It is similar to the do-while loop found in other languages such as Java or C++.

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

Option A) For loop - The for loop is used to iterate a specific number of times. It has a defined initialization, condition, and increment/decrement, which is different from the COBOL perform loop. Therefore, option A is incorrect.

Option B) Do-While loop - The do-while loop is used to repeat a set of statements until a certain condition becomes false. This is the equivalent structure to the COBOL perform loop, as both allow for repeating a set of statements until a condition is met. Therefore, option B is correct.

Option C) Method - A method is a subprogram or a function that performs a specific task. It is not directly equivalent to the COBOL perform loop. Therefore, option C is incorrect.

Option D) None of the Above - Since the correct answer is option B, which states that the COBOL perform loop is equivalent to the do-while loop, option D is incorrect.

The correct answer is B) Do-While loop. This option is correct because the do-while loop is the equivalent structure to the COBOL perform loop, as both allow for repeating a set of statements until a condition is met.

How many comparisons can a single COBOL if statement make?

  1. There is no limit

  2. 1

  3. 2

  4. COBOL if statements are not used to compare variable values


Correct Option: B

AI Explanation

To answer this question, we need to understand how a COBOL "IF" statement works.

In COBOL, the "IF" statement is used to perform conditional branching based on the evaluation of a condition. The condition can involve one or more comparisons between variable values.

The correct answer is B) 1.

A single COBOL "IF" statement can make one comparison. The condition in the "IF" statement typically consists of a single comparison operator, such as "=", "<>", "", "<=", or ">=". This means that only one comparison can be made in a single "IF" statement.

For example, consider the following COBOL "IF" statement:

IF A &gt; B
    ...
END-IF

In this example, there is one comparison being made, which is "A > B". The "IF" statement will evaluate this comparison and perform the subsequent actions based on the result of the comparison.

Therefore, the correct answer is B) 1.

Which of the following errors are possible within a COBOL if statement?

  1. Infinite loop

  2. Logical Error

  3. All of the above

  4. None of the abov


Correct Option: D

A = 0, B = 9….. Perform until a > b Add 2 to a End-perform How many additions are performed?

  1. 5

  2. 4

  3. 3

  4. 6


Correct Option: A

Not negative means…

  1. = 0

  2. >=1

  3. <=0

  4. >=0


Correct Option: D
- Hide questions