0

mainframe Online Quiz - 135

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

What is the full form of "COBOL".

  1. COmmon Business Oriented Language

  2. Common OBservation Official Language

  3. COmputer Basic Operating Language

  4. None of the above


Correct Option: A

There are 4 divisions in a cobol program. Which of the following is not one of them?

  1. Identification Division

  2. Linkage Division

  3. Data Division

  4. Procedure Division


Correct Option: B

Cobol is self-documenting.

  1. True

  2. False


Correct Option: A

On a cobol coding form what was the meaning of an asterisk in column 7?

  1. The last line is continued.

  2. None of the items listed.

  3. A data definition follows.

  4. The line is a comment.


Correct Option: D

User defined names must follow which one of the following rules?

  1. Names must be 10 or less characters.

  2. Names must contain at least 1 alpha character in any position.

  3. Names must be lower case.

  4. Multiple word names must be separated with an underscore.


Correct Option: B

Cobol paragraphs contain sentences. A sentence must end in a period and can contain multiple statements.

  1. True

  2. False


Correct Option: A

AI Explanation

To answer this question, you need to understand the structure of COBOL programs.

In COBOL, paragraphs are used to group related statements together. Each paragraph can contain one or more sentences. A sentence in COBOL must end with a period and can contain multiple statements.

Therefore, the statement "Cobol paragraphs contain sentences. A sentence must end in a period and can contain multiple statements" is true.

Option A) True - This option is correct because COBOL paragraphs do contain sentences, and a sentence in COBOL must end with a period and can contain multiple statements. Option B) False - This option is incorrect because the given statement is true.

The correct answer is A) True.

Sentences and statements must start on a new line.

  1. True

  2. False


Correct Option: B

When defining a file layout it is placed in the file section of the data division. Each record begins with an "01", a space, and the record name. Fields within a record traditionally began with 05? If you see a level 10 after the 05 what would this mean?

  1. This is an alternate name for the 05 name.

  2. This is a breakdown of the 05 field.

  3. This is another format for the field.

  4. All of the above


Correct Option: B

Condition names are names associated with a field that take on a true/false status depending on whether their value is equal to the field value. They are indicated by a level number of what?

  1. 05

  2. 66

  3. 77

  4. 88


Correct Option: D

If a field is defined as Pic s9(6)v99 comp-3, it uses 5 bytes of storage.

  1. True

  2. False


Correct Option: A
  1. Infinite loop

  2. Logical Error

  3. Runtime Error

  4. All of the above


Correct Option: D

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

If someone wanted a COBOL perform "loop" to execute once before the condition is checked, which of the following would they do?

  1. Use a standard perform statement

  2. Use an in line perform

  3. Skillful use of the COBOL reserved word "AFTER"

  4. This is not possible in COBOL


Correct Option: C

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

  1. 3

  2. 4

  3. 5

  4. 6


Correct Option: C

If an IF statement is true, what’s the first thing it does?

  1. Exits the statement

  2. Executes the function

  3. Exits the Program

  4. Executes the If statement again


Correct Option: B

Not negative means

  1. Equal to 0

  2. Greater than or equal to 1

  3. Less than or equal to 0

  4. Greater than or equal to 0


Correct Option: D

Which is the correct ASCII collating sequence?

  1. spaces, special characters, 0-9, A-Z, a-z

  2. spaces, a-z, A-Z, 0-9, special characters

  3. a-z, A-Z, 0-9, spaces, special characters

  4. 0-9, special characters, spaces, a-z, A-Z


Correct Option: A

You store date as YYYYMMDD in 8 bytes. What is the COBOL definition of this field?

  1. Pic Y(4)M(2)D(2)

  2. Pic date(yyyymmdd)

  3. Pic date(8)

  4. Pic X(8)


Correct Option: D

What allocates datasets for all the steps before the job is scheduled & What allocates datasets required by a step just before the step executes?

  1. JES 2 & JES 2

  2. JES 2 & JES 3

  3. JES 3 & JES 2

  4. JES 3 & JES 3


Correct Option: C
- Hide questions