0

mainframe Online Quiz - 16

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

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

  1. True

  2. False


Correct Option: B

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


Correct Option: C

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

  1. True

  2. False


Correct Option: A

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

  1. 256

  2. 253

  3. 255

  4. None of the above


Correct Option: B

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


Correct Option: B

Index is only used by

  1. SET

  2. SEARCH

  3. PERFORM

  4. All the above


Correct Option: D

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


Correct Option: C

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


Correct Option: B

SQL can

  1. Create Database

  2. Update Table

  3. Drop Views

  4. Reverse Table


Correct Option: A,B,C

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


Correct Option: A
  1. SELECT FirstName FROM Persons

  2. SELECT Persons.FirstName

  3. EXTRACT FirstName FROM Persons

  4. EXTRACT Persons.FirstName


Correct Option: A

Which SQL statement is used to return only different values?

  1. SELECT DISTINCT

  2. SELECT DIFFERENT

  3. SELECT UNIQUE

  4. SELECT SAME


Correct Option: A

AI Explanation

To answer this question, you need to understand the purpose of the DISTINCT keyword in SQL.

Option A) SELECT DISTINCT - This option is correct because the DISTINCT keyword is used in a SELECT statement to return only unique/distinct values from a column or set of columns. It eliminates duplicate rows from the result set.

Option B) SELECT DIFFERENT - This option is incorrect because there is no SQL keyword called "DIFFERENT". It is not a valid SQL statement.

Option C) SELECT UNIQUE - This option is incorrect because there is no SQL keyword called "UNIQUE" that is used to return only different values. The UNIQUE keyword is used to specify that a column or set of columns must contain unique values.

Option D) SELECT SAME - This option is incorrect because there is no SQL keyword called "SAME" that is used to return only different values. It is not a valid SQL statement.

The correct answer is Option A) SELECT DISTINCT. This option is correct because the DISTINCT keyword is used to return only unique/distinct values from a column or set of columns.

What are the different types of JOINS?

  1. LEFT JOIN

  2. RIGHT JOIN

  3. FULL JOIN

  4. SELF JOIN


Correct Option: A,B,C,D
  1. Alternate Key

  2. Foreign Key

  3. Unique Key

  4. Alias Key


Correct Option: B

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

  1. COUNT()

  2. GROUP BY()

  3. SUM()

  4. MAX()


Correct Option: C
  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


Correct Option: B
- Hide questions