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
Explanation:

To solve this question, the user needs to know about how to restart an abnormally terminated job.

Option A: Specify RESTART = STEPNAME in the JOB step.

This option is partially correct. In order to restart an abnormally terminated job, the RESTART parameter must be specified in the JOB statement. However, the value for RESTART should be the name of the step where the job should resume, not "STEPNAME".

Option B: Specify RESTART = Y in the JOB step.

This option is incorrect. There is no value of "Y" for the RESTART parameter. The valid values are the step name where the job should restart or "RESTART=NO" to prevent a job from being restarted.

Option C: Specify RESTART = N in the JOB step.

This option is incorrect. "N" is not a valid value for the RESTART parameter. The valid values are the step name where the job should restart or "RESTART=NO" to prevent a job from being restarted.

Option D: None of the above.

This option is incorrect. Option A is partially correct, but the other options are incorrect.

Option E: All of the above.

This option is incorrect. Option A is partially correct, but the other options are incorrect.

Therefore, the correct answer is:

The Answer is: A. Specify RESTART = STEPNAME in the JOB step.

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
Explanation:

To answer this question, the user needs to know about DD statements and their purpose. DD (Dataset Definition) statements are used to define and allocate datasets in JCL (Job Control Language) for use by a job step.

The correct answer is option B.

Explanation:

The DD statement used to supply the name of a dataset is the Dsname parameter. This parameter specifies the name of the dataset being allocated or accessed by a job step.

Option A (Name) is not a valid parameter in a DD statement.

Option C (Label) is used to specify a label for a dataset.

Option D (File) is also not a valid parameter in a DD statement.

Option E (None of the above) is incorrect because option B (Dsname) is the correct answer.

Therefore, the answer is: 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
  1. IEFBR14

  2. IEBCOPY

  3. IEBGENER

  4. IEBCOMPR

  5. None of the above


Correct Option: C

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
Explanation:

To solve this question, the user needs to know about JCL (Job Control Language) and the different parameters that can be used to customize a job step.

The JOBLIB and STEPLIB parameters are used to specify the location of program libraries that contain the executable programs required for a job. The PGM parameter is used to specify the name of the program to be executed for a particular job step.

Option A - JOBLIB: The JOBLIB parameter is used to specify the location of program libraries that contain the executable programs required for the entire job. This parameter is not specific to a particular job step.

Option B - STEPLIB: The STEPLIB parameter is used to specify the location of program libraries that contain the executable programs required for a particular job step. This option is correct as it provides a way to specify the location of the program specific to a job step.

Option C - Any of the above: This option is incorrect as the JOBLIB parameter cannot be used to specify the location of the program for a specific job step.

Option D - PGM: The PGM parameter is used to specify the name of the program to be executed for a particular job step. This parameter does not specify the location of the program.

Therefore, the correct answer is:

The Answer is: B. STEPLIB

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
Explanation:

To answer this question, the user needs to know about the SPACE parameter used in JCL and its sub-parameters.

Now, let's go through each option and explain why it is right or wrong:

A. Specifies storage space for recording of name and location of partitioned datasets: This option is incorrect. The SECONDARY sub-parameter specifies the amount of additional space required if the originally specified space is insufficient. It does not relate to the recording of name and location of partitioned datasets.

B. Specifies additional storage space if the originally specified space is insufficient: This option is correct. The SECONDARY sub-parameter specifies the amount of additional space required if the originally specified space is insufficient.

C. Specifies storage space at the time the dataset is created: This option is incorrect. The SPACE parameter specifies the primary space allocation required for a dataset at the time of creation. The SECONDARY sub-parameter specifies the amount of additional space required if the originally specified space is insufficient.

D. Specifies the space required in cylinder: This option is incorrect. The SPACE parameter specifies the primary space allocation in terms of tracks, cylinders, or blocks for a dataset. The SECONDARY sub-parameter specifies the amount of additional space required if the originally specified space is insufficient.

Therefore, the correct answer is:

The Answer is: 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
Explanation:

To solve this question, the user needs to know about JCL (Job Control Language) and the concept of procedures.

The correct answer is:

A. Procedure or PROC

Explanation:

In JCL, a procedure is a set of JCL statements that are grouped together and given a name. This name is called a PROC and it can be used throughout the JCL code instead of writing the same block of code multiple times. Procedures can be defined either within the JCL job itself or in a separate member of a partitioned dataset called a procedure library.

Cataloged Procedures (option B) are a specific type of procedure that are stored in a system library and can be invoked from any job in the system. In-stream Procedure (option C) is a term used to refer to a procedure that is defined within the JCL job itself, rather than in a separate member of a partitioned dataset.

Option D is incorrect as option A is the correct answer.

Therefore, the answer is: A. Procedure or PROC

- Hide questions