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

What Is a "core" File?

  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

How To Set (Or Reset) Initial Terminal Colors say /dev/tty0?

  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

AI Explanation

To answer this question, you need to understand how to set or reset initial terminal colors using the command line. Let's go through each option to understand why it is correct or incorrect:

Option A) Not possible thru command - This option is incorrect because it is indeed possible to set or reset initial terminal colors through a command.

Option B) chcolor /dev/tty0 - This option is incorrect because the command "chcolor" does not exist in most Unix-like systems. Therefore, it cannot be used to set or reset terminal colors.

Option C) chcolour /dev/tty0 - This option is incorrect because the command "chcolour" does not exist in most Unix-like systems. Therefore, it cannot be used to set or reset terminal colors.

Option D) setterm -fore yellow -bold on -back blue -store /dev/tty0 - This option is correct because the "setterm" command can be used to set or reset terminal colors. The "-fore" option sets the foreground color to yellow, the "-bold" option turns on bold text, the "-back" option sets the background color to blue, and the "-store" option saves these settings to the specified terminal device (/dev/tty0 in this case).

The correct answer is D) setterm -fore yellow -bold on -back blue -store /dev/tty0. This option is correct because it uses the "setterm" command to set or reset terminal colors.

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

What is the parameter that is not copied while copying an existing Dataset to a new Dataset using LIKE or REFDD parameter?

  1. Management Class

  2. Expiration Date

  3. Record Format

  4. Record Length


Correct Option: B

AI Explanation

To answer this question, we need to understand the parameters that are copied when using the LIKE or REFDD parameter to copy an existing dataset to a new dataset.

Option A) Management Class - This option is incorrect. When using the LIKE or REFDD parameter, the Management Class of the original dataset is copied to the new dataset.

Option B) Expiration Date - This option is correct. The Expiration Date of the original dataset is not copied when using the LIKE or REFDD parameter. The Expiration Date of the new dataset will be set based on the expiration rules defined for the new dataset.

Option C) Record Format - This option is incorrect. The Record Format of the original dataset is copied to the new dataset when using the LIKE or REFDD parameter.

Option D) Record Length - This option is incorrect. The Record Length of the original dataset is copied to the new dataset when using the LIKE or REFDD parameter.

Therefore, the correct answer is option B. The Expiration Date is not copied when using the LIKE or REFDD parameter.

An IMS Batch program can be run as

  1. a DLI

  2. a BMP

  3. a DBB

  4. All of the above


Correct Option: D

AI Explanation

To answer this question, we need to understand the different types of programs in IMS (Information Management System).

A. DLI (Data Language Interface) - This is a type of IMS program that interacts with IMS databases using the DL/I (Data Language Interface) calls. It allows the program to read, write, update, and delete data in IMS databases. Therefore, an IMS Batch program can be run as a DLI.

B. BMP (Batch Message Processing) - This is another type of IMS program that processes messages in a batch environment. It can receive messages from IMS online programs or other batch programs, perform processing on the messages, and send responses back. Therefore, an IMS Batch program can be run as a BMP.

C. DBB (Database Batch) - This is a type of IMS program that performs batch database processing. It can read, update, and delete data in IMS databases without using the DL/I calls. Therefore, an IMS Batch program can be run as a DBB.

D. All of the above - This option is correct because an IMS Batch program can be run as a DLI, BMP, or DBB. All three options are valid ways to run an IMS Batch program.

Therefore, the correct answer is D) All of the above.

ADRDSSU Utility is used

  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

  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

  1. File parameters

  2. Performance parameters

  3. Space Parameters

  4. Volume Parameters


Correct Option: A

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.

  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

- Hide questions