114 Finals

Length attribute of @Column annotation permits the size of the column used to map a value particularly for a String value.
True
False
A Session is used to get a physical connection with a database.
False
True
Is name attribute of @Column annotation permits the name of the column to be explicitly specified.
True
False
Session.createCriteria creates a new Criteria instance, for the given entity class, or a superclass of an entity class
False
True
Is query level caching mandatory in hibernate?
False
True
Configuration object is used to create SessionFactory object in hibernate.
True
False
Is value of lazy loading by default?
True
False
Session.beginTransaction method begins a unit of work and returns the associated Transaction object.
False
True
The SessionFactory is heavyweight object.
True
False
Session.createSQLQuery creates a new instance of Query for the given HQL query string.
True
False
A class that is labeled as @Embedabble must also be reflected or indicated in the hibernate.cfg.xml.
False
True
Struts2 offers integrated profiling to debug and profile the application.
True
False
Struts2 is popular and mature web application framework based on the MVC design pattern.
True
False
Struts uses the DOJO framework for the AJAX tag implementation.
False
True
Combing @Id and @Transient annotations on a particular field attribute in an Entity class is valid.
True
False
For the Hibernate persistent classes, it must have a default no-argument constructor for your persistent classes and there should be getXXX() (i.e accessor/getter) and setXXX( I.e. mutator/setter) methods for all your persistable instance variables.
True
False
The name property is valid attribute of the annotation @Transient.
True
False
The SessionFactory is heavyweight object.
True
False
In which model a Java application talks directly to the data source?
Three-tier Model
Two-tier Model
One-tier Model
Four-tier Model
Struts 2 is based on technologies like ______________.
Based on JDBC and SQL technologies
Based on Java Servlets and JSP technologies.
Based on HQL and Hibernate technologies.
Based on Java MVC.
In Connection interface which method Drops all changes made since the previous commit/rollback?
Close()
Save()
Rollback()
Commit()
Which of the following is first step to create a JDBC application?
Create Connection Object
Execute SQL statements
Connect to the Database
Import the package
Which is the file that we modify that will act as the dispatcher filter?
Web.xml
Hibernate.cfg.xml
Struts.xml
None of the above.
What is the return type of the execute()?
ArrayList
Integer
String
StringArray
The ____________ which called after filters, before action methods, apply common functionalities like validation, conversion etc.
GENERATORS
STATEMENTS
INTERCEPTORS
8. What is the minimum Servlet API version that you will use to implement Struts 2 web framework?
Servlet API 2.4
Servlet API 2.3
Servlet API 2.2
Servlet API 2.5
Struts was invented by _______________
Which statements about JDBC are true?
JDBC Stands for Java Database Connectivity JDBC is an application that connects jsp to java servlets.
JDBC Stands for Java Database Connectivity JDBC is an API to access queries
JDBC Stands for Java Database Connectivity JDBC is an API to access relational databases, spreadsheets and flat files.
How can you retrieve information from a ResultSet?
By invoking the special getter methods on the resultset: getString(); getBoolean(), getClob()
By invoking the special getter methods on the resultset: getStringArray(); getArrayList(), getAttribute()
By invoking the special getter methods on the resultset: getValue(); getInt(), getList()
A JDBC driver is a software component enabling a Java application to interact with a
JSP
Servlet
Java Class
Database
Which type of Statement can execute parameterized queries?
CreateStatement
PreparedStatement
Statement
Which of the following statements is/are false as far as different type of statements is concerned in JDBC?
ConnectionPool
Datababase
Statements
Which of the following methods are needed for loading a database driver in JDBC?
RegisterDriver() method Class.forName()
Driver() method Class.Name()
RegisterDriver() Class.Name()
Which of the following holds data retrieved from a database after you execute an SQL query using Statement objects?
ArrayList
String
ResultSet
Which of the following is/are not a component/class of JDBC API? Interim Statement Which packages contain the JDBC classes?
Hibernate / struts
Java.sql / Javax.sql
Jsp / servlet
Which of the following is correct about the Model Objects?
The current model object is placed after the action on the value stack.
The current model object is placed before the action on the value stack.
Which of the following is not a part of Struts architecture?
Struts.xml
@Entity
MDBs
Which of the following tag generates an iterator based on the val attribute supplied?
Generator Tag
Bean tag
Url tag
Which method is used to remove a persistent instance from the datastore?
Session.delete()
Session.create()
Session.add()
Annotation that defines a class whose instances are stored as an intrinsic part of an owning entity and share the identity of the entity.
@Element
@Embeddable
@Id
How many types of data in the @Temporal type annotation?
2
1
4
3
Which of the following are most common configuration methods of Hibernate Configuration?
XML Config with hibernate.cfg.xml
XML Config with struts.xml
What is the root level element in a hibernate mapping file?
{"name":"114 Finals", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Length attribute of @Column annotation permits the size of the column used to map a value particularly for a String value., A Session is used to get a physical connection with a database., Is name attribute of @Column annotation permits the name of the column to be explicitly specified.","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker