0

programming languages Online Quiz - 246

Description: programming languages Online Quiz - 246
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

How can an in-stream dataset be terminated?

  1. //

  2. //*

  3. /*

  4. //**

  5. none of the above


Correct Option: C

AI Explanation

To answer this question, you need to understand how to terminate an in-stream dataset in programming.

Option A) // - This option is incorrect because the double forward slash (//) is typically used for single-line comments and does not terminate an in-stream dataset.

Option B) //* - This option is incorrect because the combination of double forward slash followed by an asterisk (//*) is also used for commenting out multiple lines of code and does not terminate an in-stream dataset.

Option C) /* - This option is correct because the forward slash followed by an asterisk (/*) is typically used to begin a comment block and can also be used to terminate an in-stream dataset.

Option D) //** - This option is incorrect because the combination of double forward slash followed by two asterisks (//**) is not a standard way to terminate an in-stream dataset.

Option E) none of the above - This option is incorrect because option C, /*, is the correct answer as it is a commonly used way to terminate an in-stream dataset.

Therefore, the correct answer is option C. This option is correct because using /* is the standard way to terminate an in-stream dataset in programming.

All elements need not have a closing tag

  1. True

  2. False


Correct Option: B

SYSUT2 used in JCLs identifies the ----- to UTILITY PROGRAMS

  1. Input file

  2. Output file

  3. Temp file

  4. None of the above


Correct Option: B

AI Explanation

To answer this question, you need to understand the purpose of the SYSUT2 parameter in JCLs.

In JCLs, the SYSUT2 parameter is used to specify the output file for utility programs. Utility programs are used for various tasks such as sorting, copying, and formatting data.

Option A) Input file - This option is incorrect because the SYSUT2 parameter is used to specify the output file, not the input file.

Option B) Output file - This option is correct because the SYSUT2 parameter is used to identify the output file for utility programs.

Option C) Temp file - This option is incorrect because the SYSUT2 parameter is used for the output file, not a temporary file.

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

Therefore, the correct answer is B) Output file. This option is correct because the SYSUT2 parameter in JCLs identifies the output file for utility programs.

Which of the following Utilities is the syntax of the SORT command?

  1. SORT FIELDS = (start-location, end-location, sort sequence, format)

  2. SORT FIELDS = (start-location, length, format, sort sequence)

  3. SORT FIELDS = (start-location, end-location, sort sequence, length)

  4. SORT FIELDS = (start-location, end-location, length, format)


Correct Option: B

AI Explanation

To answer this question, we need to understand the syntax of the SORT command. Let's go through each option to determine which one is correct:

Option A) SORT FIELDS = (start-location, end-location, sort sequence, format) - This option is incorrect because the correct syntax for the SORT command does not include a "format" parameter.

Option B) SORT FIELDS = (start-location, length, format, sort sequence) - This option is the correct syntax for the SORT command. The parameters are listed in the correct order: start-location, length, format, and sort sequence.

Option C) SORT FIELDS = (start-location, end-location, sort sequence, length) - This option is incorrect because the "end-location" parameter is not part of the correct syntax for the SORT command.

Option D) SORT FIELDS = (start-location, end-location, length, format) - This option is incorrect because the "end-location" parameter is not part of the correct syntax for the SORT command.

The correct answer is Option B. This option is correct because it follows the correct syntax for the SORT command, including the parameters in the correct order: start-location, length, format, and sort sequence.

XML tags are not case sensitive

  1. True

  2. False


Correct Option: B

What is the format of comment statement?

  1. //

  2. //*

  3. /*

  4. None of the above


Correct Option: B

XML elements must follow some naming rules

  1. True

  2. False


Correct Option: A

This tag is correct

  1. True

  2. False


Correct Option: B

attributes can contain multiple values

  1. True

  2. False


Correct Option: B

How can an abnormally terminated job be started again?

  1. Specify RESTART = STEPNAME in the JOB step.

  2. Specify RESTART = Y in the JOB step.

  3. Specify RESTART = N in the JOB step.

  4. None of the above

  5. All of the above


Correct Option: A

XML validated against a DTD is "Well Formed" XML

  1. True

  2. False


Correct Option: B

Errors in XML documents will not stop your XML applications

  1. True

  2. False


Correct Option: B

With CSS (Cascading Style Sheets) you can add display information to an XML document

  1. True

  2. False


Correct Option: A

What DD statement is used to supply the name of a dataset?

  1. Name

  2. Dsname

  3. Label

  4. File

  5. None of the above


Correct Option: B

How can a job send a status message to a TSO user at the completion of a job?

  1. STATUS

  2. NOTIFY

  3. ENDMSG

  4. USER

  5. None of the above


Correct Option: B

Which of the following is TRUE about Symbolic parameters?

  1. They can be used to override parameters on the DD statement.

  2. They are used in cataloged and In-stream procedures.

  3. They are used to assign values to commonly used JCL parameters.

  4. None of the above

  5. All of the above


Correct Option: E

Which of the following is used to copy sequential files

  1. IEFBR14

  2. IEBCOPY

  3. IEBGENER

  4. IEBCOMPR

  5. None of the above


Correct Option: C

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) IEFBR14 - This option is incorrect. IEFBR14 is a utility program used to create dummy or empty datasets. It does not have the capability to copy sequential files.

Option B) IEBCOPY - This option is incorrect. IEBCOPY is a utility program used to copy or manipulate partitioned datasets (PDS) and partitioned dataset extended (PDSE) files. It is not used to copy sequential files.

Option C) IEBGENER - This option is correct. IEBGENER is a utility program used to copy or generate sequential files. It can be used to copy sequential files from one location to another.

Option D) IEBCOMPR - This option is incorrect. IEBCOMPR is a utility program used to compare two datasets to identify differences. It is not used to copy sequential files.

Option E) None of the above - This option is incorrect. The correct answer is option C) IEBGENER.

The correct answer is C) IEBGENER. This option is correct because IEBGENER is used to copy sequential files.

If the location of the program is to be specific to a job step, then the location can be specified in the following JCL parameter

  1. JOBLIB

  2. PGM

  3. STEPLIB

  4. Any of the above


Correct Option: C

Which of the following is true about the SECONDARY Sub parameter used in the SPACE parameter?

  1. Specifies storage space for recording of name and location of partitioned datasets

  2. Specifies additional storage space if the originally specified space is insufficient

  3. Specifies storage space at the time the dataset is created

  4. Specifies the space required in cylinder


Correct Option: B

What is the term used when JCL statements are grouped together and given a name?

  1. Procedure or PROC

  2. Cataloged Procedures

  3. In-stream Procedure

  4. None of the above


Correct Option: A
- Hide questions