Alien head

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

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


  1. True

  2. False

Correct Option: A

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

What are the benefits of ORM and Hibernate?

  1. Productivity

  2. Maintainability

  3. Vendor dependence

  4. Performance

Correct Option: A,B,D

Which of the following is not a Session method?

  1. Session.saveorupdate()

  2. Session.remove()

  3. Session.load()

  4. Session.save()

Correct Option: B

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 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

There are core interfaces are used in just about every Hibernate application. Using these interfaces, you can store and retrieve persistent objects and control transactions. Select all the interfaces that you see

  1. Configuration interface

  2. Session interface

  3. Query and Criteria interfaces

  4. User interface

Correct Option: A,B,C

Which of the following are tags of hibernate.cfg.xml? Select all that apply

  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 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

Which of the following are most common configuration methods of Hibernate Configuation

  1. Mapping files

  2. http.conf

  3. XML Configuration hibernate.cfg.xml

  4. web.config

Correct Option: A,C

Can multiple catch blocks be executed for single try statement?

  1. True

  2. False

Correct Option: B

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

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

The default type of enum is integer and has a default value 1

  1. True

  2. False

Correct Option: B

If a method is marked as protected internal who can access it?

  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

The following code will generate a comiler error. Which of the following statement inserted as the last line of the function ,would solve the problem?

  1. continue;

  2. break;

  3. return "Infant";

  4. return 0;

  5. return;

Correct Option: C

What is the default access specifier for a top-level Class, which are not nested into other classes?

  1. Public

  2. Private

  3. Protected

  4. Internal

Correct Option: D

The statement that is used to replace multiple if statement is called

  1. The switch & case statement

  2. ?:(ternary operator)

  3. The nestedif statement

  4. The #endif Statement

Correct Option: A

Which of the following is not a C# Keyword?

  1. Implements

  2. public

  3. delegate

  4. if

Correct Option: A
+ View questions