Web Technologies and Backend Frameworks
Quiz covering web technologies including ASP.NET/IIS configuration, AJAX, web services, and Hibernate ORM for database operations in web applications
Questions
Is the Session threadsafe in Hibernate ?
- TRUE
- FALSE
- No matter
- None of the above
How can you make a property be read from the database but not modified in anyway
- By using the insert="false" and update="false" attributes.
- By using the isinsert="false" and isupdate="false" attributes
- By using the isinsert="no" and isupdate="no" attributes
- None
Which statement is correct ?
- A Session will not obtain a JDBC Connection (or a Datasource) unless it is needed
- A Session will obtain a JDBC Connection (or a Datasource) on object create
- A Session has no relation with JDBC Connection (or a Datasource)
- none of the above
How to enable query cache in hibernate
- hibernate.cache.query_cache true
- hibernate.cache.use_query_cache true
- hibernate.cache.query_cache yes
- none
If you are not certain that a matching row exists in the database then which method is the best ?
- Session.load();
- Session.get();
- Session.fetch();
- None of the above
Which statement is correct?
- bag has index column
- bag permits duplicate element values
- bag does not permits duplicate element values
- None
What does session.createQuery("Query").scroll() return ?
- ListResultSet
- ResultSet
- ScrollableResultSet
- ScrollableResult
How can the mapping files be configured in Hibernate?
- Mapping files can be added to Configuration in the application code
- They can be configured in hibernate.cfg.xml using the <mapping> elements
- both a and b
- none of the above
It is possible to re-load an object and all its collections at any time, using the xxxx() method. This is useful when database triggers are used to initialize some of the properties of the object.What is the xxxx() method ?
- refresh();
- flush();
- fetch();
- load()
For every webservice developed, the corresponding ___________ document is distributed to the clients.
- WSDL
- SOAP
- UDDI
- HTTP
AJAX stands for?
- Aysnchronous Javascript and XML
- Application Javascript and XML
- Asynchronous JDK and XML
- Application JDK and XML
What is the size of a .Net object ?
- 4 bytes
- 2 bytes
- 6 bytes
- 1 byte
_______________ Involves writing the executable code for an application in such a way that makes it culture-neutral and language-neutral.
- Localization
- Globalization
- Translate
- Nationalize
______________ Assemblies are resource-only assemblies that contain only culture-specific resources?
- Public
- Satellite
- Private
- None
___________ Error is returned to any browser attempting to directly request a configuration file.
- HttpAccess 404
- HttpAccess 405
- HttpAccess 403
- HttpAccess 406
Web.config files are __________. The Machine.config file is ________.
- Required, required
- Required, Optional
- Optional, Optional
- Optional, Required
Whenever the "&&" operator is used, such as in: exp1 && exp2 where exp1 and exp2 are boolean expressions, both the boolean expressions are not always evaluated
- True
- False
An array in the Java programming language has the ability to store many different types of values.
- True
- False
Consider the following code: int x, y, z; y = 1; z = 5; x = 0 - (++y) + z++; After execution of this, what will be the values of x, y and z?
- x = 4, y = 1, z = 5
- x = -7, y = 1, z = 5
- x = 4, y = 2, z = 6
- x = 3, y = 2, z = 6