1.
For how long a job can be executed continuously in a mainframe
Correct Answer
A. 248 days
Explanation
The correct answer is 248 days. This suggests that a job can be executed continuously for a maximum of 248 days on a mainframe system.
2.
Which parameter denotes exclusive control of the dataset
Correct Answer
A. DISP=OLD
Explanation
The parameter DISP=OLD denotes exclusive control of the dataset. This means that only one program or user can access the dataset at a time, preventing any other program or user from accessing or modifying it concurrently.
3.
What are the kinds of job control statements
Correct Answer
D. ALL the above
Explanation
The correct answer is "ALL the above" because all of the mentioned options (JOB, EXEC, DD) are types of job control statements. A job control statement is a command or instruction used in a job control language (JCL) to define the various aspects of a job, such as the program to be executed (EXEC), the data sets to be used (DD), and the overall job control information (JOB). Therefore, all three options are valid types of job control statements.
4.
Can you code Instream data in procedure
Correct Answer
B. False
Explanation
Instream data cannot be coded in a procedure. Instream data is data that is read directly from the input source during program execution, usually from a file or the user's input. It is not part of the procedure itself, but rather the data that is processed by the procedure. Therefore, instream data cannot be coded within a procedure.
5.
How do you access a file that had a disposition of KEEP
Correct Answer
A. By volume serial Number
Explanation
To access a file that had a disposition of KEEP, you can do so by using the volume serial number. The volume serial number uniquely identifies a particular volume or storage device, allowing you to locate and access the desired file. This method is commonly used in systems where files are stored and managed based on their respective volume serial numbers.
6.
Directory blocks are ________ Bytes each
Correct Answer
A. 256
Explanation
Directory blocks are a data structure used in file systems to store information about files and directories. The size of directory blocks can vary depending on the file system, but in this case, the correct answer is 256 bytes. This means that each directory block can hold a certain amount of data, such as file names, file sizes, and pointers to the actual data blocks where the files are stored. Having larger directory blocks allows for more efficient storage and retrieval of file information.
7.
How do you skip a particular step in procedure or job
Correct Answer
A. COND
Explanation
The correct answer is COND. This is because "COND" stands for "conditional", and it allows you to skip a particular step in a procedure or job based on a certain condition. By using a conditional statement, you can specify when a step should be skipped, based on the evaluation of a condition or set of conditions. This allows for more flexibility and control in executing procedures or jobs.
8.
What are the types of procedures
Correct Answer
D. Both a and b
Explanation
The correct answer is "Both a and b." This means that the types of procedures can be both INSTREAM and CATALOGED. The option "Both a and c" is incorrect because there is no mention of OUTSTREAM in the question. INSTREAM procedures are executed within the same job step, while CATALOGED procedures are stored in a separate library and can be called from any job step. Therefore, the correct answer includes both types of procedures.
9.
Dummy is a Keyword parameter
Correct Answer
B. False
Explanation
The statement "Dummy is a Keyword parameter" is false. A keyword parameter is a parameter that can be passed to a function by specifying its name along with its value. However, "Dummy" is not a keyword parameter in Python. It is not a reserved keyword and does not have any special meaning or functionality in the language. Therefore, the correct answer is False.
10.
Concatenation has meaning only for sequential processing
Correct Answer
A. True
Explanation
Concatenation refers to the process of combining two or more strings or sequences together. In sequential processing, the operations are performed one after the other in a specific order. Therefore, concatenation makes sense only in sequential processing, as it allows us to join strings or sequences in a specific order. In other types of processing, such as parallel processing, the order of operations may not be defined, making concatenation irrelevant. Hence, the statement that "concatenation has meaning only for sequential processing" is true.
11.
* and DATA are positional parameter that follow DD Statement
Correct Answer
A. True
Explanation
The statement is true because in JCL (Job Control Language), the * and DATA are indeed positional parameters that follow the DD (Data Definition) statement. These parameters are used to specify the input and output data sets for a job step. The * parameter is used to indicate that the data set is not to be used in the job step, while the DATA parameter is used to specify the data set that is to be used. Therefore, the given answer is correct.
12.
What is the default time for time parameter if it is not coded on Exec statement.
Correct Answer
D. 30 Min
Explanation
If the time parameter is not coded on the Exec statement, the default time is set to 30 minutes.
13.
The Utility used to delete dataset, find databset, cataloged & uncataloged dataset
Correct Answer
C. IEFBR14
Explanation
IEFBR14 is a utility program used in mainframe systems to create empty datasets, delete datasets, and list datasets. It does not have the capability to find or catalog/uncatalog datasets. Therefore, IEFBR14 is the correct answer because it is the utility used to delete datasets, but not to find or catalog/uncatalog datasets.
14.
How many instream procedures can be coded in single job
Correct Answer
B. 15
Explanation
The correct answer is 15 because in a single job, a maximum of 15 instream procedures can be coded. Instream procedures are used to provide input data to a program during execution. Each instream procedure is identified by a sequential number starting from 1. Therefore, the maximum number of instream procedures that can be coded in a single job is 15.
15.
Maximum number of DD statements in a job
Correct Answer
B. 3273
Explanation
The maximum number of DD statements in a job is 3273. DD statements are used in JCL (Job Control Language) to define the input and output datasets for a job. Each DD statement represents a dataset and specifies its attributes such as name, location, and organization. In this case, the correct answer is 3273, which means that a job can have a maximum of 3273 DD statements to define its datasets.
16.
MSG LEVEL = (1,1) means print
Correct Answer
A. All JCL statement will be printed including allocation message
Explanation
The correct answer is "All JCL statement will be printed including allocation message". This is because when MSG LEVEL = (1,1), it means that all JCL statements will be printed, including the allocation message.
17.
Maximum number of steps in a JOB are
Correct Answer
A. 255
Explanation
The maximum number of steps in a JOB is 255. This means that a JOB can consist of up to 255 individual steps or tasks.
18.
Which is not a keyword parameter
Correct Answer
B. PGM
Explanation
The keyword parameter that is not listed in the given options is "PGM".
19.
IEFBR14 use to check the syntax of JCL without affecting any dataset
Correct Answer
A. True
Explanation
IEFBR14 is a utility program used in JCL (Job Control Language) to check the syntax of JCL without affecting any dataset. It is a dummy program that does nothing but returns control to the operating system. By executing IEFBR14, the JCL syntax errors can be identified without causing any changes or impact on the actual datasets. Therefore, the given statement is true.
20.
SCRATCH specifies entry of dataset should not physically deleted from the volume
Correct Answer
B. False
Explanation
The statement is false because SCRATCH actually specifies that the entry of a dataset should be physically deleted from the volume. When a dataset is scratched, it means that it is no longer needed and can be removed from the volume to free up space. Therefore, the correct answer is False.