0

programming languages Online Quiz - 337

Description: programming languages Online Quiz - 337
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. a) sed 's/[ ][^ ]*$//' test2

  2. b) sed 's/[ ][ ]*$//' test2

  3. c) sed 's/[ ][ ]*$/' test2

  4. d) sed 's/[ ][ $]*$//' test2


Correct Option: A
  1. a) duplicate()

  2. b) dup()

  3. c) cp()

  4. d) mknod()


Correct Option: B

18.) What is the difference between at & cron?

  1. a) Both are Unix scheduling utilities

  2. b) at is restricted one and crontab is not restricted

  3. c) No difference

  4. d) at takes input from user while cron takes from a confiuration file


Correct Option: D

20.) If inet service is restarted, all the open sockets gets closed

  1. a) True

  2. b) False

  3. c)

  4. d)


Correct Option: B

21.) The difference between telnet & rsh?

  1. a) telnet works only with terminals where rsh works for all

  2. b) telnet is unix product while rsh is a TCP product

  3. c) telnet uses byte protocol while rsh uses stream protocol

  4. d) No difference. They can be used interchangably


Correct Option: C

What does session.evict() method do ?

  1. a) remove the object and its collections from the first level cache

  2. b) remove the object and its collections from the second level cache

  3. c) remove the object and its collections from the data base

  4. d) None of the above


Correct Option: A

Is the Session threadsafe in Hibernate ?

  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

How to enable query cache in hibernate

  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

If you are not certain that a matching row exists in the database then which method is the best ?

  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

It is possible to re-load an object and all its collections at any time, using the xxxx() method. This is useful when database triggers are used to initialize some of the properties of the object.What is the xxxx() method ?

  1. a) refresh();

  2. b) flush();

  3. c) fetch();

  4. d) load()


Correct Option: A

What is the root level element in a hibernate mapping file?

  1. a)

  2. b)

  3. c)

  4. d) None


Correct Option: C
- Hide questions