Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

U2. Embedded DB & Console Access

Total questions: 15

Worksheet time: 10mins

Name
Class
Date
1.

What is a primary characteristic of embedded databases?

a)

They require a dedicated server to run.

b)

They are stored in local files and run inside the application.

c)

They can only be accessed through a graphical user interface.

d)

They are not suitable for single-user applications.

2.

Which of the following is not an example of an embedded database?

a)

SQLite

b)

Oracle

c)

HSQLDB

d)

Apache Derby

3.

What command is used in SQLite to check if foreign key enforcement is enabled?

a)

SELECT foreign_keys;

b)

PRAGMA foreign_keys;

c)

CHECK FOREIGN KEYS;

d)

SHOW KEYS;

4.

In relational databases, what is the purpose of a foreign key?

a)

To uniquely identify each row in a table.

b)

To create a relationship between tables.

c)

To prevent duplicate values in a column.

d)

To index a table for faster searching.

5.

What does the following SQL command do in SQLite?

INSERT INTO departamentos VALUES (1, 'SOFTWARE', 'VALENCIA');

a)

Creates a new table called departamentos.

b)

Adds a new record to the departamentos table.

c)

Updates the departamentos table with new columns.

d)

Deletes a record from the departamentos table.

6.

Which of the following is a disadvantage of embedded databases?

a)

High resource consumption.

b)

Limited portability across systems.

c)

Limited or single-user access.

d)

Incompatibility with SQL-92 standards.

7.

Which command in the SQLite console opens an existing database file?

a)

.connect <path>

b)

.use <db_name>

c)

.open <path>

d)

.load <db_name>

8.

Which tool integrates JDBC to manage databases and supports SQLite, PostgreSQL, and others?

a)

MySQL Workbench

b)

DBeaver

c)

Oracle SQL Developer

d)

SQLite3 CLI

9.

Which SQL keyword is used to enforce changes to the database in HSQLDB?

a)

SAVE;

b)

COMMIT;

c)

FINALIZE;

d)

APPLY;

10.

What is the correct syntax to create a table in SQLite with a primary key?

a)

CREATE TABLE employees (id INT PRIMARY KEY, name TEXT);

b)

CREATE TABLE employees PRIMARY KEY (id, name TEXT);

c)

CREATE employees (id INT PRIMARY KEY, name TEXT);

d)

TABLE CREATE employees (id INT PRIMARY KEY, name TEXT);

11.

What is one of the advantages of SQLite?

a)

It supports multi-threaded applications natively.

b)

It is open-source and self-contained with no configuration required.

c)

It is faster than all other relational databases.

d)

It only works with Java-based applications.

12.

What is the role of a database management system (DBMS) in a relational model?

a)

To ensure referential integrity and manage constraints.

b)

To connect non-relational data sources.

c)

To create embedded databases only.

d)

To store data exclusively in XML format.

13.

Which type of database access does not require a running server?

a)

Remote server-based access.

b)

Embedded database access.

c)

Graphical user interface access.

d)

Console-based database access.

14.

What do you think is the most important concept of the content covered in this unit?
You can only use 1-2 words.

2 lines
15.

From 1 to 5, how confident do you feel with the topic covered in this unit?

a)

1 - not confident at all

b)


2 - slightly confident

c)


3 - moderately confident

d)


4 - very confident

e)


5 - extremely confident