mainframe Online Quiz - 16

Quiz covering mainframe programming concepts including SQL, COBOL, REXX, JCL, and VSAM

20 Questions Published

Questions

Question 1 True/False

A program can be cancelled by itself or subroutines called by it.

  1. True
  2. False
Question 2 Multiple Choice (Single Answer)

A group containing alphabetic fields can be redefined only by

  1. Group containing alphabetic fields
  2. Group containing numeric fields
  3. Group containing alphabetic and numeric fields
  4. None of the above
Question 3 True/False

Group moves are always considered alphanumeric moves regardless of the elementary items in it.

  1. True
  2. False
Question 4 Multiple Choice (Single Answer)

How many alternative indexes can be specified maximum for a base cluster?

  1. 256
  2. 253
  3. 255
  4. None of the above
Question 5 Multiple Choice (Single Answer)

Which keyword allows the same copy to be used more than once in the same code by changing the replace value?

  1. REDEFINES
  2. REPLACING
  3. REUSE
  4. REORG
Question 6 Multiple Choice (Single Answer)

What is the key word which is used to pass value from COBOL code to JCL?

  1. DD NAME
  2. SYSIN Parameter
  3. PARAM
  4. RETURN CODE
Question 7 Multiple Choice (Single Answer)

Index is only used by

  1. SET
  2. SEARCH
  3. PERFORM
  4. All the above
Question 8 Multiple Choice (Single Answer)

A path is a logical relation established between ______ and _______ in VSAM catalog

  1. Unique index and base clusters
  2. Primary index and base clusters
  3. Alternate index and base clusters
  4. Secondary index and base clusters
Question 9 Multiple Choice (Single Answer)

The keyword OPTIONAL in select clause is used only for

  1. Output files
  2. Input files
  3. Both the files
  4. All the above is correct
Question 10 Multiple Choice (Multiple Answers)

SQL can

  1. Create Database
  2. Update Table
  3. Drop Views
  4. Reverse Table
Question 11 Multiple Choice (Single Answer)

With SQL, how can you return the number of records in the "Persons" table?

  1. SELECT COUNT(*) FROM Persons
  2. SELECT COLUMNS() FROM Persons
  3. SELECT COLUMNS(*) FROM Persons
  4. SELECT COUNT() FROM Persons
Question 12 Multiple Choice (Single Answer)

Which SQL statement is used to extract data from a database?

  1. SELECT
  2. OPEN
  3. GET
  4. EXTRACT
Question 13 Multiple Choice (Single Answer)

With SQL, how do you select a column named "FirstName" from a table named "Persons"?

  1. SELECT FirstName FROM Persons
  2. SELECT Persons.FirstName
  3. EXTRACT FirstName FROM Persons
  4. EXTRACT Persons.FirstName
Question 14 Multiple Choice (Single Answer)

Which SQL statement is used to return only different values?

  1. SELECT DISTINCT
  2. SELECT DIFFERENT
  3. SELECT UNIQUE
  4. SELECT SAME
Question 15 Multiple Choice (Multiple Answers)

What are the different types of JOINS?

  1. LEFT JOIN
  2. RIGHT JOIN
  3. FULL JOIN
  4. SELF JOIN
Question 16 True/False

UNION selects only distinct value by default.

  1. True
  2. False
Question 17 True/False

CONSTRAINTS can be specified only on Creation of a table.

  1. True
  2. False
Question 18 Multiple Choice (Single Answer)

What do we call the PRIMARY KEY of a reference table?

  1. Alternate Key
  2. Foreign Key
  3. Unique Key
  4. Alias Key
Question 19 Multiple Choice (Single Answer)

Which funtion is used to return the total of a numeric field?

  1. COUNT()
  2. GROUP BY()
  3. SUM()
  4. MAX()
Question 20 Multiple Choice (Single Answer)

Indicate what is not correct in a REXX program.

  1. A REXX clause can be coded in uppercase, lowercase or mixed case.
  2. Multiple instructions can be coded on 1 line, as long as they are separated by a ','
  3. A REXX program should start with a comment clause /* REXX */
  4. Continuation of REXX instructions is achieved by using a ',' as a continuation indicator