Tag: programming languages

Questions Related to programming languages

  1. tagname

  2. name

  3. tag

  4. prefix


Correct Option: B
Explanation:

To solve this question, the user needs to know about JSP and the syntax for defining custom tags in JSP using a tag library descriptor file. Specifically, the user should be familiar with the elements used in the tag library descriptor file.

In this case, the JSP file is using a custom tag defined in a tag library descriptor file. The myTag element in the JSP file should be defined in the tag library descriptor file using the "name" attribute in the "tag" element.

Now, let's go through each option and determine which one is correct:

A. tagname: This is not a valid option for defining a custom tag in a tag library descriptor file.

B. name: This is the correct answer. The "name" attribute in the "tag" element is used to define the name of the custom tag being defined in the tag library descriptor file.

C. tag: The "tag" element is used to define a custom tag in the tag library descriptor file, but it does not specify the name of the tag.

D. prefix: The "prefix" attribute in the "taglib" element is used to specify the prefix used for the custom tag library in the JSP file, but it does not define the custom tag itself.

Therefore, the correct answer is:

The Answer is: B. name

  1. tlib-version

  2. short-name

  3. uri

  4. display-name


Correct Option: A,B
Explanation:

To solve this question, the user needs to know the structure of the taglib descriptor file (also known as the TLD file) used in JavaServer Pages (JSP) applications.

The taglib element is used to define a tag library and contains several optional and required sub-elements. The question asks which of these sub-elements are required.

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

A. tlib-version: This sub-element specifies the version of the tag library descriptor file. It is an optional sub-element, not required.

B. short-name: This sub-element specifies a short name for the tag library. It is a required sub-element.

C. uri: This sub-element specifies the URI of the tag library and is used to identify the tag library in JSP pages. It is a required sub-element.

D. display-name: This sub-element specifies a display name for the tag library. It is an optional sub-element, not required.

Therefore, the correct answers are:

  • B. short-name
  • C. uri

The Answer is: B and C

  1. Use sigsend()

  2. use kill()

  3. use signal()

  4. Only init can send signals


Correct Option: B

Linux supports multi-threading

  1. True

  2. False


Correct Option: B
  1. A dummy device to represent memory

  2. A dummy device to represent the processor

  3. A dummy device to provide infinite number of zeros

  4. None


Correct Option: C
  1. A device file to represent that the current file system is full

  2. A device file to test scenarios of testing a /dev/full

  3. Invalid device

  4. None


Correct Option: B
  1. A dummy device to represent swap

  2. A dummy device to represent any device

  3. A dummy device to provide infinite number of randon numbers

  4. Invalid device


Correct Option: C