mainframe Online Quiz - 16
Quiz covering mainframe programming concepts including SQL, COBOL, REXX, JCL, and VSAM
Questions
A program can be cancelled by itself or subroutines called by it.
- True
- False
A group containing alphabetic fields can be redefined only by
- Group containing alphabetic fields
- Group containing numeric fields
- Group containing alphabetic and numeric fields
- None of the above
Group moves are always considered alphanumeric moves regardless of the elementary items in it.
- True
- False
How many alternative indexes can be specified maximum for a base cluster?
- 256
- 253
- 255
- None of the above
Which keyword allows the same copy to be used more than once in the same code by changing the replace value?
- REDEFINES
- REPLACING
- REUSE
- REORG
What is the key word which is used to pass value from COBOL code to JCL?
- DD NAME
- SYSIN Parameter
- PARAM
- RETURN CODE
Index is only used by
- SET
- SEARCH
- PERFORM
- All the above
A path is a logical relation established between ______ and _______ in VSAM catalog
- Unique index and base clusters
- Primary index and base clusters
- Alternate index and base clusters
- Secondary index and base clusters
The keyword OPTIONAL in select clause is used only for
- Output files
- Input files
- Both the files
- All the above is correct
SQL can
- Create Database
- Update Table
- Drop Views
- Reverse Table
With SQL, how can you return the number of records in the "Persons" table?
- SELECT COUNT(*) FROM Persons
- SELECT COLUMNS() FROM Persons
- SELECT COLUMNS(*) FROM Persons
- SELECT COUNT() FROM Persons
Which SQL statement is used to extract data from a database?
- SELECT
- OPEN
- GET
- EXTRACT
With SQL, how do you select a column named "FirstName" from a table named "Persons"?
- SELECT FirstName FROM Persons
- SELECT Persons.FirstName
- EXTRACT FirstName FROM Persons
- EXTRACT Persons.FirstName
Which SQL statement is used to return only different values?
- SELECT DISTINCT
- SELECT DIFFERENT
- SELECT UNIQUE
- SELECT SAME
What are the different types of JOINS?
- LEFT JOIN
- RIGHT JOIN
- FULL JOIN
- SELF JOIN
UNION selects only distinct value by default.
- True
- False
CONSTRAINTS can be specified only on Creation of a table.
- True
- False
What do we call the PRIMARY KEY of a reference table?
- Alternate Key
- Foreign Key
- Unique Key
- Alias Key
Which funtion is used to return the total of a numeric field?
- COUNT()
- GROUP BY()
- SUM()
- MAX()
Indicate what is not correct in a REXX program.
- A REXX clause can be coded in uppercase, lowercase or mixed case.
- Multiple instructions can be coded on 1 line, as long as they are separated by a ','
- A REXX program should start with a comment clause /* REXX */
- Continuation of REXX instructions is achieved by using a ',' as a continuation indicator