0

programming languages Online Quiz - 237

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

What Does VFS Stand For?

  1. Virtual File Server

  2. Virtual File System

  3. Virtual File Sync

  4. None


Correct Option: B

Why doesn't child process get SIGHUP when its parent dies?

  1. Only child can send and can not receive from parent signals

  2. SIGHUP is a signal sent by terminals and is not designed to propagate

  3. SIGHUP is an invalid signal

  4. None


Correct Option: B
  1. A core file is created when a program terminates unexpectedly, due to a bug,

  2. A core represents the RAM memory (core)

  3. core file contains the entire process information

  4. A text file


Correct Option: A

How To Enable or Disable Core Dumps.

  1. ulimit command

  2. Automatically enabled

  3. Cannot be controlled

  4. Only root can do that using ulimit


Correct Option: A

Does Linux Support X windows?

  1. True

  2. False


Correct Option: B

To delete all the trailing spaces of each line of file test1

  1. sed 's/[ ][^ ]*$//' test2

  2. sed 's/[ ][ ]*$//' test2

  3. sed 's/[ ][ ]*$/' test2

  4. sed 's/[ ][ $]*$//' test2


Correct Option: A

What are pttys?

  1. They are printer terminals

  2. Partial terminals

  3. Pseudo terminals

  4. Hardware cable


Correct Option: C

How to create swap device

  1. swapon /swap

  2. mkswap /swap

  3. mknod /dev/swap

  4. Not possible


Correct Option: B
  1. Not possible thru command

  2. chcolor /dev/tty0

  3. chcolour /dev/tty0

  4. setterm -fore yellow -bold on -back blue -store /dev/tty0


Correct Option: D

How To Determine What Packages Are Installed on a System?

  1. pkglst -a

  2. pkglst -ql

  3. rpm -qa

  4. rpm -i


Correct Option: C
  1. a DLI

  2. a BMP

  3. a DBB

  4. All of the above


Correct Option: D
  1. To reduce free space fragmentation

  2. To copy or move Datasets from one DASD to another

  3. All of the above

  4. None of the above


Correct Option: C
Explanation:

To answer this question, the user needs to know what ADRDSSU Utility is used for.

The ADRDSSU Utility is a tool used for backup, restore, and copying datasets. It can be used to copy or move datasets from one DASD to another, and can also be used to reduce free space fragmentation.

Therefore, the correct answer is:

C. All of the above

Which of the following is not an ADRDSSU control statement

  1. DUMP

  2. COPY

  3. MOVE

  4. CONVERTV


Correct Option: C
Explanation:

To solve this question, the user needs to be familiar with ADRDSSU (ADRDSSU) utility and its control statements.

Now, let's go through each option:

A. DUMP - This is a valid ADRDSSU control statement. It creates a dump of a dataset to an output dataset.

B. COPY - This is a valid ADRDSSU control statement. It copies a dataset or a group of datasets to another dataset or a group of datasets.

C. MOVE - This is not a valid ADRDSSU control statement. Although MOVE is a valid COBOL verb, it is not a control statement used in ADRDSSU.

D. CONVERTV - This is a valid ADRDSSU control statement. It converts a VSAM dataset to a non-VSAM dataset or vice versa.

Therefore, the answer is:

The Answer is: C

Parameters which can be overridden in a VSAM file

  1. File parameters

  2. Performance parameters

  3. Space Parameters

  4. Volume Parameters


Correct Option: A

AI Explanation

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

Option A) File parameters - This option is correct because file parameters in a VSAM file can be overridden. File parameters include attributes such as the record length, key length, key position, data organization, and access mode. These parameters can be specified during file creation and can also be overridden during file allocation or opening.

Option B) Performance parameters - This option is incorrect. Performance parameters in a VSAM file, such as buffer size and buffer control, cannot be overridden.

Option C) Space parameters - This option is incorrect. Space parameters in a VSAM file, such as primary space allocation and secondary space allocation, cannot be overridden.

Option D) Volume parameters - This option is incorrect. Volume parameters in a VSAM file, such as volume serial number and device type, cannot be overridden.

The correct answer is A) File parameters. This option is correct because file parameters in a VSAM file can be overridden during file allocation or opening.

Parameters which cannot be overridden in a VSAM file

  1. File parameters

  2. Performance parameters

  3. Space Parameters

  4. Volume Parameters


Correct Option: B

AI Explanation

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

Option A) File parameters - This option is incorrect. File parameters in a VSAM file, such as the file organization, record length, and key length, can be overridden when defining or accessing the file.

Option B) Performance parameters - This option is correct. Performance parameters in a VSAM file, such as the buffer size and caching options, cannot be overridden. These parameters are set at the time of file creation and cannot be changed or overridden later.

Option C) Space parameters - This option is incorrect. Space parameters in a VSAM file, such as the primary and secondary space allocation, can be overridden when defining or accessing the file.

Option D) Volume parameters - This option is incorrect. Volume parameters in a VSAM file, such as the volume serial number and device type, can be overridden when defining or accessing the file.

The correct answer is B) Performance parameters. This option is correct because performance parameters in a VSAM file cannot be overridden.

What are the files that can be created using LIKE Parameter?

  1. VSAM File

  2. Tape File

  3. none of above

  4. Both a and b


Correct Option: A
Explanation:

To answer this question, the user needs to know about the LIKE parameter in mainframe programming.

The LIKE parameter is used to create a new file that has the same record-layout as an existing file. This is useful when you want to create a new file with the same structure as an existing file, but with different data.

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

A. VSAM File: This option is correct. You can use the LIKE parameter to create a new VSAM file that has the same record-layout as an existing VSAM file.

B. Tape File: This option is incorrect. You cannot use the LIKE parameter to create a new tape file. Tape files are typically used for backup and archival purposes, and do not have a record-layout like VSAM files.

C. None of above: This option is incorrect. As explained above, option A is correct.

D. Both a and b: This option is incorrect. Although option A is correct, option B is not.

Therefore, The Answer is: A. VSAM File

The exact syntax for the REFDD Parameter

  1. REFDD=*.ddname

  2. REFDD=*.stepname.ddname

  3. REFDD=*.jobstepname.procstepname

  4. REFDD=*.jobstepname.ddname


Correct Option: A

AI Explanation

To answer this question, we need to understand the syntax for the REFDD parameter in a job control language (JCL) statement.

The correct syntax for the REFDD parameter is:

A. REFDD=*.ddname

This syntax specifies that the data set referenced by the DD statement with the given ddname should be used as input for the current step or job.

Let's go through each option to understand why it is correct or incorrect:

Option A) REFDD=*.ddname - This option is correct because it specifies that the data set referenced by the DD statement with the given ddname should be used as input for the current step or job.

Option B) REFDD=*.stepname.ddname - This option is incorrect because it includes the stepname in the REFDD parameter. The REFDD parameter does not require the stepname; it only requires the ddname.

Option C) REFDD=*.jobstepname.procstepname - This option is incorrect because it includes both the jobstepname and the procstepname in the REFDD parameter. The REFDD parameter does not require these names; it only requires the ddname.

Option D) REFDD=*.jobstepname.ddname - This option is incorrect because it includes the jobstepname in the REFDD parameter. The REFDD parameter does not require the jobstepname; it only requires the ddname.

The correct answer is A) REFDD=*.ddname. This option is correct because it specifies that the data set referenced by the DD statement with the given ddname should be used as input for the current step or job.

  1. ACB

  2. DLI

  3. BMP

  4. MPP


Correct Option: B
Explanation:

To answer the question, the user needs to know the basic concepts of IMS, including the different interfaces used to connect the program to the Database in IMS.

Each option is explained below:

A. MPP: This option stands for Message Processing Program, which is not the correct interface used to connect the program to the Database in IMS.

B. ACB: This option stands for Access Control Block, which is not the correct interface used to connect the program to the Database in IMS.

C. DLI: This option stands for Data Language Interface, which is the correct interface used to connect the program to the Database in IMS. It provides a high-level interface for accessing IMS databases.

D. BMP: This option stands for Batch Message Processing, which is not the correct interface used to connect the program to the Database in IMS.

Therefore, the answer is: C. DLI

Which Parameter is required to access the IMS Database?

  1. PCB

  2. ACB

  3. DLI

  4. PSB


Correct Option: D
- Hide questions