Tag: programming languages

Questions Related to programming languages

  1. Avoid having to bind a large number of DBRM members into a plan

  2. Minimize fallback complexities if changes result in an error

  3. Avoid cost of a large bind

  4. Time consumption is reduced


Correct Option: D
  1. CBLTDLI

  2. PLITDLI

  3. Only a

  4. A or b


Correct Option: D
Explanation:

To answer this question, the user needs to have knowledge of database access methods.

The correct answer is:

D. A or B

Explanation:

CBLTDLI and PLITDLI are both programming interfaces for accessing databases. CBLTDLI is a COBOL interface, and PLITDLI is a PL/I interface. Both interfaces are used to submit commands and retrieve data from databases. Therefore, either option A or option B can be used to access the database. Option C is incorrect because only option A or B can be used to access the database, not just option A.

  1. KSDS

  2. ESDS

  3. RSDS

  4. RRDS


Correct Option: C
Explanation:

To solve this question, the user needs to have knowledge about VSAM files and their types.

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

A. KSDS: This option is a type of VSAM file. KSDS stands for Key Sequenced Data Set and is used to store records in a sequential order based on a primary key.

B. ESDS: This option is a type of VSAM file. ESDS stands for Entry Sequenced Data Set and is used to store records in the order in which they are written to the file.

C. RSDS: This option is not a type of VSAM file. RSDS is not a valid acronym for a VSAM file type.

D. RRDS: This option is a type of VSAM file. RRDS stands for Relative Record Data Set and is used to store records based on relative byte positions within the file.

Therefore, the answer is: C

  1. Caused by invalid Data in a Numeric field

  2. Protection Exception

  3. Timeout

  4. Data protection Exception


Correct Option: B
  1. Assigns value of < to var variable

  2. Assigns value of $< to var variable

  3. Gets input from stdin and assigns that to var variable

  4. Assigns previously returned value to var variable


Correct Option: C
  1. $* returns the number of arguments passed whereas $@ represents the arguments list.

  2. All arguments are double quoted using $* whereas all arguments are individually double quoted when using $@.

  3. $* is used in for loop whereas $@ is used in while loop.

  4. $* and $@ are same


Correct Option: B
  1. Process ID of current process

  2. Process ID of last background process

  3. Process ID of first background process

  4. Process ID of foreground process


Correct Option: B
  1. bash is used to intrepret the script and it does not invoke .bashrc before executing the script

  2. bash is used to intrepret the script and it does invoke .bashrc before executing the script

  3. bash as well as sh are used to intrepret the script

  4. none


Correct Option: A