0

programming languages Online Quiz - 61

Description: programming languages Online Quiz - 61
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. The switch & case statement

  2. ?:(ternary operator)

  3. The nestedif statement

  4. The #endif Statement


Correct Option: A
  1. Access is limited to the current assembly.

  2. Access is limited to the containing class or types derived from the containing class.

  3. Access is limited to the containing type

  4. Access is limited to the current assembly or types derived from the containing class


Correct Option: D

Unboxing of null reference type will return a null

  1. true

  2. false

  3. an exception is thrown

  4. None of these


Correct Option: C

Which of these string definition will prevent escaping on backslashes in C#?

  1. string s= #"Test string";

  2. string s= ."Test string";

  3. string s= @"Test string";

  4. string s= &"Test string";


Correct Option: C

Can multiple catch blocks be executed for single try statement?

  1. True

  2. False


Correct Option: B
  1. Mapping files

  2. http.conf

  3. XML Configuration hibernate.cfg.xml

  4. web.config


Correct Option: A,C

Which of the following is FALSE about Session in hibernate

  1. Session is a light weight non-threadsafe object

  2. You can share the session between threads

  3. Session represents a single unit-of-work with the database

  4. Session is the primary interface for the persistence service

  5. A session loads database connections using lazy-loading


Correct Option: B
  1. DTD

  2. JDBC Connection

  3. SQL Variant to generate

  4. Mapping files

  5. Size of the database


Correct Option: A,B,C,D

Which of the following is NOT a role of the session interface?

  1. Holds a mandatory (first-level) cache of persistent objects, used when navigating the object graph or looking up objects by identifier

  2. Created during application initialization

  3. Wraps a JDBC connection

  4. Act as session Factory


Correct Option: C

Which of the following is NOT a step in the Hibernate communication with RDBMS?

  1. Create HQL Query

  2. Execute query to get list containing Java objects

  3. Load the Hibernate configuration file and create configuration object

  4. Create session from configuration object

  5. Get one session from the session factory


Correct Option: A,B,C,E

Which of the following is not a Session method?

  1. Session.saveorupdate()

  2. Session.remove()

  3. Session.load()

  4. Session.save()


Correct Option: B

What are the benefits of ORM and Hibernate?

  1. Productivity

  2. Maintainability

  3. Vendor dependence

  4. Performance


Correct Option: A,B,D

What is the file extension you use for hibernate mapping file?

  1. filename.hbm.xml

  2. filename.cfg.xml

  3. filename.hmb.xml

  4. filename.cfg.hbm.xml


Correct Option: A

WCF service author Can configure authorization with PrincipalPermissionMode setting in ServiceAuthorization behavior. Please select the invalid for?

  1. UseWindowsGroups

  2. UseAspNetRoles

  3. UseNetworkUser

  4. None


Correct Option: C
- Hide questions