_________ databases typically use denormalization to optimize read performance.

  • Document
  • Graph
  • Key-value
  • Relational
Relational databases like PostgreSQL or MySQL often denormalize data by duplicating information to reduce the need for joins, thereby improving read performance at the expense of increased storage requirements.

The process of converting plaintext into ciphertext using a secret key is known as ___________.

  • Decryption
  • Encoding
  • Encryption
  • Hashing
Encryption is the process of converting plaintext into ciphertext using an encryption algorithm and a secret key. This ensures that unauthorized parties cannot read the encrypted data without the corresponding decryption key.

What happens when you push an element onto a stack?

  • Element is added to the bottom
  • Element is added to the top
  • Element is removed from the stack
  • Element is searched within the stack
When you push an element onto a stack, it gets added to the top of the stack. This means it becomes the newest element in the stack and is positioned above all existing elements. Stacks follow the Last In, First Out (LIFO) principle, where the last element added is the first one to be removed. This behavior is commonly used in programming for tasks like managing function calls, storing temporary data, and implementing undo operations.

Explain the concept of a kernel-level thread versus a user-level thread.

  • Independent scheduling decisions, kernel involvement in thread management
  • Thread management handled by user-level libraries, fast context switching
  • User-level threads are lightweight, lower overhead
  • User-level threads mapped to kernel threads, high concurrency
Kernel-level threads are managed by the operating system's kernel and are considered heavier since they involve more resources and overhead. They allow for independent scheduling decisions and are generally more suitable for multithreading tasks that require intensive computation or interaction with system resources. On the other hand, user-level threads are managed by user-level libraries without direct kernel involvement. They are lightweight and have faster context switching but may face limitations in terms of concurrency and system resource access.

Explain the difference between "AFTER" and "WHEN COND" job dependencies in JCL.

  • "AFTER" and "WHEN COND" are interchangeable
  • "AFTER" specifies a job to run after the dependent job completes successfully
  • "WHEN COND" is used to specify conditions for job execution
  • Both "AFTER" and "WHEN COND" serve the same purpose
"AFTER" specifies a sequential relationship, while "WHEN COND" allows conditional execution

In JCL, a comment statement is enclosed within _______.

  • (
  • *
  • /*
  • //
Comments in JCL are enclosed within //

You have a JCL job that needs to write output data to a new dataset. How would you define the DD statement to allocate this new dataset with a specific dataset name?

  • //OUTPUT DD DSN=NEW.DATA.SET,DISP=(MOD,CATLG,DELETE),SPACE=(CYL,(5,5),RLSE)
  • //OUTPUT DD DSN=NEW.DATA.SET,DISP=(MOD,CATLG,MOD),SPACE=(CYL,(5,5),RLSE)
  • //OUTPUT DD DSN=NEW.DATA.SET,DISP=(NEW,CATLG,DELETE),SPACE=(CYL,(5,5),RLSE)
  • //OUTPUT DD DSN=NEW.DATA.SET,DISP=(NEW,CATLG,MOD),SPACE=(CYL,(5,5),RLSE)
The correct DD statement allocates a new dataset named NEW.DATA.SET with DISP parameter specifying it as new, cataloged, and deleted if it already exists, with space allocation in cylinders.

In a JCL job, you need to allocate a temporary dataset for sorting. How would you use the DD statement to achieve this, and what attributes would you specify?

  • //SORTIN DD DSN=&&TEMPDS,DISP=(MOD,CATLG,DELETE),SPACE=(CYL,(5,5),RLSE)
  • //SORTIN DD DSN=&&TEMPDS,DISP=(MOD,PASS),SPACE=(CYL,(5,5),RLSE)
  • //SORTIN DD DSN=&&TEMPDS,DISP=(NEW,CATLG,DELETE),SPACE=(CYL,(5,5),RLSE)
  • //SORTIN DD DSN=&&TEMPDS,DISP=(OLD,DELETE),SPACE=(CYL,(5,5),RLSE)
To allocate a temporary dataset for sorting, the DD statement uses a special dataset name (starting with &&) and specifies DISP as MOD to ensure it can be modified between job steps.

You need to use the IEBGENER utility to copy a dataset with specific record format conversions. How would you specify the necessary control statements?

  • //SYSCTL DD *
  • //SYSCTL DD DSN=your_control_statements_dataset
  • //SYSIN DD *
  • //SYSOUT DD *
The control statements for IEBGENER are typically specified in the //SYSIN DD statement. These statements include control statements such as 'COPY' and may also involve specifying record format conversions or other required operations.

In JCL, what is the default execution time if the TIME parameter is not specified?

  • 1 hour
  • 10 minutes
  • 15 minutes
  • 30 minutes
The default execution time is typically 10 minutes if the TIME parameter is not specified