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

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

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
  1. true

  2. false

  3. an exception is thrown

  4. None of these


Correct Option: 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
  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
  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
  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
  1. Session.saveorupdate()

  2. Session.remove()

  3. Session.load()

  4. Session.save()


Correct Option: B
  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

Below Code is TRUE (=Correct)/FALSE (=Wrong)? BEGIN SELECT PROJECT_ID FROM PA_PROJECTS_ALL WHERE PROJECT_ID IN (12345); END;

  1. True

  2. False


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