HIBERNATE MOCK TEST HIBERNATE MOCK TEST IV

Similar documents
HIBERNATE MOCK TEST HIBERNATE MOCK TEST I

DESIGN PATTERNS MOCK TEST DESIGN PATTERNS MOCK TEST III

C# MOCK TEST C# MOCK TEST II

SPRING MOCK TEST SPRING MOCK TEST I

Spring & Hibernate. Knowledge of database. And basic Knowledge of web application development. Module 1: Spring Basics

DB2 MOCK TEST DB2 MOCK TEST I

object/relational persistence What is persistence? 5

HIBERNATE MOCK TEST HIBERNATE MOCK TEST II

JAVA MOCK TEST JAVA MOCK TEST II

The Object-Oriented Paradigm. Employee Application Object. The Reality of DBMS. Employee Database Table. From Database to Application.

Generating A Hibernate Mapping File And Java Classes From The Sql Schema

DESIGN PATTERNS MOCK TEST DESIGN PATTERNS MOCK TEST II

EJB MOCK TEST EJB MOCK TEST IV

JAVA MOCK TEST JAVA MOCK TEST III

JDBC MOCK TEST JDBC MOCK TEST IV

Call: JSP Spring Hibernate Webservice Course Content:35-40hours Course Outline

JAVASCRIPT MOCK TEST JAVASCRIPT MOCK TEST I

Hibernate Interview Questions

Java EE Application Assembly & Deployment Packaging Applications, Java EE modules. Model View Controller (MVC)2 Architecture & Packaging EJB Module

Unit 6 Hibernate. List the advantages of hibernate over JDBC

Index. setmaxresults() method, 169 sorting, 170 SQL DISTINCT query, 171 uniqueresult() method, 169

Java EE 7: Back-End Server Application Development

MAVEN MOCK TEST MAVEN MOCK TEST I

Pro JPA 2. Mastering the Java Persistence API. Apress* Mike Keith and Merrick Schnicariol

foreword to the first edition preface xxi acknowledgments xxiii about this book xxv about the cover illustration

Database Management Systems

Introduction to Web Application Development Using JEE, Frameworks, Web Services and AJAX

JAVA MOCK TEST JAVA MOCK TEST IV

CO Java EE 6: Develop Database Applications with JPA

Type of Classes Nested Classes Inner Classes Local and Anonymous Inner Classes

Lightweight J2EE Framework

com Spring + Spring-MVC + Spring-Boot + Design Pattern + XML + JMS Hibernate + Struts + Web Services = 8000/-

PL/SQL MOCK TEST PL/SQL MOCK TEST IV

Hibernate Overview. By Khader Shaik

HIVE MOCK TEST HIVE MOCK TEST III

COBOL MOCK TEST COBOL MOCK TEST III

Page 1

Lightweight J2EE Framework

PERL MOCK TEST PERL MOCK TEST II

purequery Deep Dive Part 2: Data Access Development Dan Galvin Galvin Consulting, Inc.

POJOs in Action DEVELOPING ENTERPRISE APPLICATIONS WITH LIGHTWEIGHT FRAMEWORKS CHRIS RICHARDSON MANNING. Greenwich (74 w. long.)

CO Java EE 7: Back-End Server Application Development

Supports 1-1, 1-many, and many to many relationships between objects

New Features in Java language

NODE.JS MOCK TEST NODE.JS MOCK TEST I

ANGULARJS - MOCK TEST ANGULARJS MOCK TEST II

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1

The dialog boxes Import Database Schema, Import Hibernate Mappings and Import Entity EJBs are used to create annotated Java classes and persistence.

MAVEN MOCK TEST MAVEN MOCK TEST III

MAVEN MOCK TEST MAVEN MOCK TEST IV

Course Modules for MCSA: SQL Server 2016 Database Development Training & Certification Course:

Struts: Struts 1.x. Introduction. Enterprise Application

Setting Schema Name For Native Queries In. Hibernate >>>CLICK HERE<<<

ADVANCED JAVA TRAINING IN BANGALORE

JAVA. 1. Introduction to JAVA

JSP MOCK TEST JSP MOCK TEST IV

NetBeans IDE Field Guide

Apache OpenJPA 2.1 User's Guide

Apache OpenJPA 2.2 User's Guide

Fast Track to Spring 3 and Spring MVC / Web Flow

Web Application Development Using Spring, Hibernate and JPA

Web Application Development Using Spring, Hibernate and JPA

CICS MOCK TEST CICS MOCK TEST I

The TimeIQ Program. Presented by. Howard Bomze FAME Information Services, Inc.

Erik Dörnenburg JAOO 2003

Querying Data with Transact SQL

Comparative Analysis of EJB3 and Spring Framework

Persistence Designer User s Guide. Version 3.4

Configuring a JDBC Resource for IBM DB2 for z/os in Metadata Manager

Where is Database Management System (DBMS) being Used?

JAVA COURSES. Empowering Innovation. DN InfoTech Pvt. Ltd. H-151, Sector 63, Noida, UP

C# MOCK TEST C# MOCK TEST I

Get Schema Definition In Oracle Database Table Names

From business need to implementation Design the right information solution

DATA ACCESS TECHNOLOGIES FOR JAVA GENERAL STUDY

indx.qxd 11/3/04 3:34 PM Page 339 Index

Web Application Development Using Spring, Hibernate and JPA

Fast Track to EJB 3.0 and the JPA Using JBoss

Remote Health Service System based on Struts2 and Hibernate

Table of Contents. I. Pre-Requisites A. Audience B. Pre-Requisites. II. Introduction A. The Problem B. Overview C. History

J2EE Technologies. Industrial Training

GO MOCK TEST GO MOCK TEST I

JAVA. Duration: 2 Months

JSP MOCK TEST JSP MOCK TEST III

Java J Course Outline

HTML5 MOCK TEST HTML5 MOCK TEST I

Apache OpenJPA User's Guide

Configuring a JDBC Resource for Sybase IQ in Metadata Manager

Advanced Database Applications. Object Oriented Database Management Chapter 13 10/29/2016. Object DBMSs

International Journal of Advance Research in Engineering, Science & Technology HIBERNATE FRAMEWORK FOR ENTERPRISE APPLICATION

PYTHON MOCK TEST PYTHON MOCK TEST III

/ / JAVA TRAINING

QTP MOCK TEST QTP MOCK TEST II

Object Persistence Design Guidelines

Database System Concepts and Architecture

COURSE DETAILS: CORE AND ADVANCE JAVA Core Java

Logi Ad Hoc Reporting Management Console Overview

Database System Concepts and Architecture

Database Application Architectures

Object-relational mapping EJB and Hibernate

Transcription:

http://www.tutorialspoint.com HIBERNATE MOCK TEST Copyright tutorialspoint.com This section presents you various set of Mock Tests related to Hibernate Framework. You can download these sample mock tests at your local machine and solve offline at your convenience. Every mock test is supplied with a mock test key to let you verify the final score and grade yourself. HIBERNATE MOCK TEST IV Q 1 - When a Read-only concurrency strategy is to be used? A - Use it for reference data only. B - Use this strategy for read-mostly data where it is critical to prevent stale data in concurrent transactions. C - Use this strategy if data hardly ever changes and a small likelihood of stale data is not of critical concern. Q 2 - Which of the following is true with respect to ORM vs JDBC? A - ORM system lets business code access objects rather than DB tables. B - ORM system hides details of SQL queries from OO logic. C - ORM system helps in Transaction management and automatic key generation. D - All of the above. Q 3 - Which of the following is true about hibernate? A - Hibernate does not require an application server to operate. B - Hibernate manipulates Complex associations of objects of your database. C - Hibernate minimize database access with smart fetching strategies. D - All of the above. Q 4 - Which of the following database is not supported by Hibernate? A - Oracle

B - Microsoft SQL Server Database C - FoundationDB D - Informix Dynamic Server Q 5 - Which of the following database is supported by Hibernate? A - DB2/NT B - PostgreSQL C - Sybase SQL Server D - All of the above Q 6 - Which of the following is a core component of Hibernate? A - Transaction B - SessionFactory C - Session D - All of the above Q 7 - Configuration object is used to create SessionFactory object in hibernate. Q 8 - The SessionFactory is heavyweight object. Q 9 - You would need one SessionFactory object per database using a separate configuration file. Q 10 - A Session is used to get a physical connection with a database. Q 11 - The Session object is lightweight.

Q 12 - Persistent objects are saved and retrieved through a Session object. Q 13 - Which of the following is true about hibernate annotations? A - Hibernate Annotations is the powerful way to provide the metadata for the Object and Relational Table mapping. B - All the metadata is clubbed into the POJO java file along with the code this helps the user to understand the table structure and POJO simultaneously during the development. Q 14 - Which of the following is true about @Id annotation? A - Hibernate detects that the @Id annotation is on a field. B - Hibernate assumes that it should access properties on an object directly through fields at runtime. Q 15 - Which of the following is true about @Entity annotation? A - @Entity annotation marks a class as an entity bean. B - Class marked with @Entity annotation must have a no-argument constructor that is visible with at least protected scope. Q 16 - Which of the following is true about @Table annotation? A - The @Table annotation allows to specify the details of the table that will be used to persist the entity in the database. B - The @Table annotation allows to override the name of the table, its catalogue, and its schema, and enforce unique constraints on columns in the table. Q 17 - Which of the following is true about @GeneratedValue annotation?

A - @GeneratedValue annotation takes two parameters strategy and generator. B - @GeneratedValue annotation provides the primary key generation strategy to be used. Q 18 - Which of the following is true about @Column annotation? A - The @Column annotation is used to specify the details of the column to which a field or property will be mapped. B - The @Column annotation is applied on a class. Q 19 - name attribute of @Column annotation permits the name of the column to be explicitly specified. Q 20 - length attribute of @Column annotation permits the size of the column used to map a value particularly for a String value. Q 21 - nullable attribute of @Column annotation permits the column to be marked NOT NULL when the schema is generated. Q 22 - Which of the following is true about HQL? A - Hibernate Query Language HQL is an object-oriented query language. B - Instead of operating on tables and columns, HQL works with persistent objects and their properties. Q 23 - Which of the following is true about HQL? A - HQL queries are translated by Hibernate into conventional SQL queries which in turns perform action on database.

B - The AS clause can be used to assign aliases to the classes in HQL queries. Q 24 - Which of the following is true about HQL? A - Hibernate supports named parameters in its HQL queries. B - HQL supports a range of aggregate methods, similar to SQL. Q 25 - Which of the following is true about INSERT CLAUSE in HQL? A - HQL supports INSERT INTO clause only where records can be inserted from one object to another object. B - HQL supports INSERT INTO clause without any restriction. ANSWER SHEET Question Number Answer Key 1 C 2 D 3 D 4 C 5 D 6 D 7 A 8 B 9 B 10 A 11 B 12 B 13 C 14 C 15 C 16 C

17 C 18 A 19 A 20 B 21 A 22 C 23 C 24 C 25 A Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js