Tag: programming languages

Questions Related to programming languages

  1. (a) linkage editor

  2. (b) dataset name

  3. (c) routing of datasets

  4. (d) binder


Correct Option: C
  1. (a) 1024

  2. (b) 4024

  3. (c) 256

  4. (d) 4096


Correct Option: D
  1. (a) the option specified last

  2. (b) the option specified first

  3. (c) both options takes effect

  4. (d) both options will not takes effect


Correct Option: A
  1. (a) starting characters of the name of the reserved-word table

  2. (b) ending characters of the name of the reserved-word table

  3. (c) alternate characters of the name of the reserved-word table

  4. (d) All of the above


Correct Option: A
Explanation:

To solve this question, the user needs to know the syntax of the WORD function.

The WORD function is used in COBOL programming language to check if a given word is a reserved word or not. The syntax of the WORD function is:

WORD(word-to-be-checked, length-of-word-to-be-checked)

The xxxx in the given syntax WORD(xxxx) specifies the word to be checked for being a reserved word.

Option A, B, and C are incorrect because they do not specify the correct explanation for xxxx in the syntax WORD(xxxx).

Option D is incorrect because only option A is partially correct and option B and C are incorrect.

Therefore, the correct answer is:

The Answer is: A

  1. True

  2. False


Correct Option: A
Explanation:

To solve this question, the user needs to understand what the LANGUAGE compiler option and the NATLANG runtime option do.

The LANGUAGE compiler option specifies the programming language used in the code, while the NATLANG runtime option specifies the natural language used in the input and output of the program.

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

A. True: This option is correct. The LANGUAGE compiler option and the NATLANG runtime option are independent of each other. The compiler only needs to know the language being used to compile the code, while the NATLANG runtime option is used to determine the natural language used in input and output. These two options do not interact with each other and can be used independently.

B. False: This option is incorrect. The LANGUAGE compiler option and the NATLANG runtime option can be used independently of each other. They serve different purposes and do not depend on each other.

The Answer is: A

  1. (a) 8MB

  2. (b) 31MB

  3. (c) 16MB

  4. (d) 20MB


Correct Option: C
Explanation:

To solve this question, the user needs to understand the concept of dynamic data areas and storage allocation in memory.

The DATA option in this context refers to a compiler option that affects where dynamic data areas and other runtime storage are allocated in memory. The option determines whether this storage is obtained from above or below a certain memory boundary called the "line."

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

A. (a) 8MB: This option is incorrect because it specifies a specific amount of memory rather than referring to the memory "line" mentioned in the question.

B. (b) 31MB: This option is incorrect because it specifies a specific amount of memory rather than referring to the memory "line" mentioned in the question.

C. (c) 16MB: This option is correct. The memory "line" referred to in the question is typically located at the 16MB boundary in memory. Therefore, the DATA option affects whether dynamic data areas and other runtime storage are obtained from above or below this 16MB line.

D. (d) 20MB: This option is incorrect because it specifies a specific amount of memory rather than referring to the memory "line" mentioned in the question.

The Answer is: C. (c) 16MB.

  1. (a) database request module

  2. (b) database resourse module

  3. (c) databind request module

  4. (d) databind resourse module


Correct Option: A
  1. (a) Remote mode

  2. (b) Regression mode

  3. (c) Recession mode

  4. (d) Residency mode


Correct Option: D