Google News
logo
HSQLDB - Quiz(MCQ)

HSQLDB : HSQLDB (HyperSQL DataBase) is the leading SQL relational database system written in Java. It offers a small, fast multithreaded and transactional database engine with in-memory and disk-based tables and supports embedded and server modes. It includes a powerful command line SQL tool and simple GUI query tools.

HSQLDB supports the widest range of SQL Standard features seen in any open source database engine: SQL:2016 core language features and an extensive list of SQL:2016 optional features. It supports full Advanced ANSI-92 SQL with only two exceptions..

A)
C
B)
C++
C)
Java
D)
Python

Correct Answer :   Java


Explanation : HSQLDB (HyperSQL DataBase) is the leading SQL relational database system written in Java

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   Yes


Explanation : HSQLDB is open-source.

A)
END
B)
SHUT
C)
CLOSE
D)
SHUTDOWN

Correct Answer :   SHUTDOWN


Explanation : All databases running in different modes can be closed with the SHUTDOWN command, issued as an SQL statement.

A)
MySQL
B)
Oracle
C)
PostgreSQL
D)
All of the above

Correct Answer :   All of the above


Explanation : Following are the alternatives of HSQLB :

* Oracle
* MySQL
* PostgreSQL

A)
VARCHAR
B)
CLOB
C)
LONGVARCHAR
D)
None of the above

Correct Answer :   CLOB


Explanation : CLOB is used to store large text values, also BLOB.

A)
2
B)
3
C)
4
D)
5

Correct Answer :   3


Explanation : Depending on how the data is kept, there are three sorts of catalog :

* Mem
* File
* res

A)
Table
B)
Collection
C)
Catalog
D)
Directory

Correct Answer :   Catalog


Explanation : Each HSQL database is referred to as a catalog.

A)
Testing of database application
B)
Deployment of database application
C)
Development of database application
D)
All of the above

Correct Answer :   All of the above


Explanation : HSQLDB is used for the development, testing, and deployment of database applications.

A)
Deleted
B)
Rolled back
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Rolled back


Explanation : All ongoing transactions are rolled back when SHUTDOWN is ordered.

A)
IBM
B)
JASPERSOFT
C)
OPENBRAVO
D)
All of the above

Correct Answer :   All of the above


Explanation : Companies like IBM, JASPERSOFT, and OPENBRAVO are using HSQLDB.

A)
RIGHT JOIN
B)
LEFT JOIN
C)
INNER JOIN
D)
All of the above

Correct Answer :   RIGHT JOIN


Explanation : RIGHT JOIN returns all rows from the right table even if no matches are found in the left table.

A)
RIGHT JOIN
B)
LEFT JOIN
C)
INNER JOIN
D)
All of the above

Correct Answer :   LEFT JOIN


Explanation : LEFT JOIN returns all rows from the left table even if no matches are found in the right table.

A)
IPv4
B)
IPv6
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Both (A) and (B)


Explanation : The HyperSQL listeners support both ipv4 and ipv6 network addressing.

A)
Only one
B)
Multiple
C)
More than One
D)
None of the above

Correct Answer :   Only one


Explanation : The Servlet mode can only serve one database.

A)
3
B)
4
C)
5
D)
6

Correct Answer :   3


Explanation : The three modes are :

* HSQLserver
* HSQL HTTP SERVER
* HSQL HTTP SERVLET

A)
COMMIT
B)
ROLLBACK
C)
SAVEPOINT
D)
SAVEPOINT command creates a point inside the collection of transactions from which to rollback.

Correct Answer :   SAVEPOINT

17 .
If the transaction fails, the ____ command should be used to restore the prior state of all tables referenced in the transaction?
A)
COMMIT
B)
ROLLBACK
C)
SAVEPOINT
D)
None of the above

Correct Answer :   ROLLBACK


Explaination : If the transaction fails, the ROLLBACK command should be used to restore the prior state of all tables referenced in the transaction.

A)
COMMIT
B)
ROLLBACK
C)
SAVEPOINT
D)
None of the above

Correct Answer :   COMMIT


Explanation : The successful transaction should always be completed by issuing the COMMIT command.

A)
0
B)
1
C)
2
D)
3

Correct Answer :   3


Explanation : In HSQLDB, three types of tables can be created :

* MEMORY
* CACHED
* TEXT

A)
TEXT
B)
CACHED
C)
MEMORY
D)
None of the above

Correct Answer :   CACHED


Explanation : The type of table that is stored on disk in HSQLDB is called a CACHED table.

A)
True
B)
False
C)
Can Not Say
D)
None of the above

Correct Answer :   True


Explanation : The Servlet Mode cannot be started independently from the servlet engine.

A)
TEXT
B)
CACHED
C)
MEMORY
D)
None of the above

Correct Answer :   MEMORY


Explanation : MEMORY tables are known as a temporary tables, that are stored in memory.

A)
cached
B)
Memory
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Memory


Explanation : A MEMORY table is used for a small amount of data.

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   Yes


Explanation : Yes, a simple index allows duplicate values in a table.

A)
Simple
B)
Creative
C)
Exceptional
D)
Unique

Correct Answer :   Unique


Explanation : A unique index ensures that no two rows have the same index value.

A)
View
B)
Schema
C)
Collection
D)
All of the above

Correct Answer :   View


Explanation : A VIEW is similar to a TABLE but it does not permanently contain rows of data.

27 .
A ____ is a mechanism for arranging character strings in ordered sets as well as determining the equivalence of two character strings.
A)
CONCAT
B)
COLLATION
C)
INTEGRATION
D)
None of the above

Correct Answer :   COLLATION


Explaination : A COLLATION is a mechanism for arranging character strings in ordered sets as well as determining the equivalence of two character strings.

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   Yes


Explanation : Text tables support transactions.

A)
UNIQUE KEY
B)
PRIMARY KEY
C)
FOREIGN KEY
D)
All of the above

Correct Answer :   All of the above


Explanation : HyperSQL supports PRIMARY KEY, UNIQUE, and FOREIGN KEY constraints.

A)
Key
B)
Commands
C)
Constraints
D)
Indexes

Correct Answer :   Indexes


Explanation : Indexes are critical for query performance.

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   Yes


Explanation : HSQL ensures atomicity, both during operations and in the event of a system crash.

A)
Durability
B)
Atomicity
C)
Consistency
D)
Isolation

Correct Answer :   Isolation


Explanation : Isolation means that transactions do not interfere with one another.

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   Yes

A)
Java access monitor
B)
Java application monitor
C)
Java access management
D)
Java application management

Correct Answer :   Java application monitor


Explanation : HyperSQL is supported by the monitoring tool JAMon (Java Application Monitor).

A)
True
B)
False
C)
Can Not Say
D)
None of the above

Correct Answer :   True


Explanation : HSQLDB treats CHAR and VARCHAR strings the same.

A)
CHANGE TABLE SEPARATOR
B)
SET TABLE SEPARATOR SOURCE
C)
SET TABLE SOURCE
D)
All of the above

Correct Answer :   SET TABLE SOURCE


Explanation : SET TABLE SOURCE, the statement can change the field separator.

A)
.
B)
!
C)
|
D)
,

Correct Answer :   ,


Explanation : The default field separator in Text tables is the comma(,).

A)
Yes
B)
No
C)
Can Not Say
D)
None of the above

Correct Answer :   Yes


Explanation : HyperSQL supports log4J and JDK logging.

A)
Role
B)
User
C)
Both (A) and (B)
D)
None of the above

Correct Answer :   Both (A) and (B)


Explanation : Access to schema objects is easily controlled by the ROLE and USER objects.

A)
AFTER
B)
BEFORE
C)
INSTEAD OF
D)
None of the above

Correct Answer :   INSTEAD OF


Explanation : INSTEAD OF triggers are only permitted if the trigger is defined on a VIEW.