Tag: programming languages

Questions Related to programming languages

  1. a) TRUE

  2. b) FALSE

  3. c) no matter

  4. d) none of the above


Correct Option: B
  1. a) Add printer and queues

  2. b) Add modem & flash drive

  3. c) Add printer alone

  4. d) Invalid command


Correct Option: A
  1. a) By using the insert="false" and update="false" attributes.

  2. b) By using the isinsert="false" and isupdate="false" attributes.

  3. c) By using the isinsert="no" and isupdate="no" attributes

  4. d) None


Correct Option: A
  1. a) Use sigsend()

  2. b) use kill()

  3. c) use signal()

  4. d) Only init can send signals


Correct Option: B
  1. a) A Session will not obtain a JDBC Connection (or a Datasource) unless it is needed

  2. b) A Session will obtain a JDBC Connection (or a Datasource) on object create

  3. c) A Session has no relation with JDBC Connection (or a Datasource)

  4. d) none of the above


Correct Option: A
  1. a) hibernate.cache.query_cache true

  2. b) hibernate.cache.use_query_cache true

  3. c) hibernate.cache.query_cache yes

  4. d) none


Correct Option: B
  1. a) Session.load();

  2. b) Session.get();

  3. c) Session.fetch();

  4. d) None of the above


Correct Option: B
  1. a) bag has index column

  2. b) bag permits duplicate element values

  3. c) bag does not permits duplicate element values

  4. d) None


Correct Option: B
Explanation:

To solve this question, the user needs to have knowledge about the concept of a bag data structure. A bag is a collection of unordered elements that may contain duplicates.

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

a) bag has index column: This statement is incorrect. A bag is an unordered collection, which means it does not have an index column. Items in a bag are stored in any order.

b) bag permits duplicate element values: This statement is correct. A bag allows duplicate elements to be added to it. For example, a bag can contain two or more items with the same value.

c) bag does not permit duplicate element values: This statement is incorrect. A bag permits duplicate elements to be added to it. Therefore, this statement is false.

d) None: This option is incorrect because option B is correct.

The Answer is: B