0

programming languages Online Quiz - 82

Description: programming languages Online Quiz - 82
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. cannot be instantiated

  2. can be called from non static

  3. can be instantiated

  4. 1 & 2

  5. 2 & 3


Correct Option: D
  1. Conventional Language Runtime

  2. Clarified Language Runtime

  3. Common Language Runtime

  4. Clear Language Runtime


Correct Option: C
  1. Any changes made to the parameter will be reflected in the variable.

  2. The out parameters is used to return values in the same variables, that you pass an an argument of a method

  3. A variable to be sent as OUT parameter must be initialized

  4. 1 & 2

  5. 2 & 3

  6. 1 & 3


Correct Option: D
  1. Delegates

  2. Structures

  3. Interfaces

  4. Enumerations

  5. All the above

  6. 2 & 3


Correct Option: E
  1. The purpose of constructors is to initialize class members

  2. Constructors can have return values

  3. Constructors always have the same name as the class

  4. None of the above


Correct Option: B

which of the following is/are true about Polymorphism?

  1. Virtual keyword is used before Base class

  2. Override keyword is used before Derived class

  3. overload keyword is used before Derived class

  4. 1 & 2

  5. 1 & 3


Correct Option: D

which of the following is correct?

  1. Structure is a value type and Class is a reference type

  2. Class is a value type and Structure is a reference type

  3. Structs can't have destructors, but classes can have destructors

  4. Class can have implementation inheritance, but Structs cannot have it

  5. Structs can have implementation inheritance, but Class cannot have it


Correct Option: A,C,D
  1. has no implementation

  2. only has definitions

  3. must be implemented by class or struct

  4. All the above

  5. 1 & 2


Correct Option: D
  1. Either code from derived type or code in the same assembly

  2. Only members within the same type

  3. Only derived types or members of the same type.

  4. Only code within the same assembly


Correct Option: A

Which statement is correct ?

  1. Session.contains() method to determine if an instance belongs to the session cache

  2. Session.contains() method to determine if an instance belongs to the data base

  3. Both are correct

  4. None of the above


Correct Option: A
  1. Remove the object and its collections from the first level cache

  2. Remove the object and its collections from the second level cache

  3. Remove the object and its collections from the data base

  4. None of the above


Correct Option: A
  1. True

  2. False

  3. No matter

  4. None of the above


Correct Option: B

How can you make a property be read from the database but not modified in anyway

  1. By using the insert="false" and update="false" attributes.

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

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

  4. None


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

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

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

  4. None of the above


Correct Option: A

How to enable query cache in hibernate

  1. Hibernate.cache.query_cache true

  2. Hibernate.cache.use_query_cache true

  3. Hibernate.cache.query_cache yes

  4. None


Correct Option: B

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

  1. Session.load();

  2. Session.get();

  3. Session.fetch();

  4. None of the above


Correct Option: B
  1. Bag has index column

  2. Bag permits duplicate element values

  3. Bag does not permits duplicate element values

  4. None


Correct Option: B
  1. ListResultSet

  2. ResultSet

  3. ScrollableResultSet

  4. ScrollableResult


Correct Option: D
- Hide questions