DBMS2
DBMS2
C) Procedural DML is used only for adding data operations, while Declarative DML is used solely for
querying data.
D) Declarative DML requires specific algorithms to process data in the database, while Procedural
DML does not require any algorithms.
B) A system with many core shared memory, shared disk, or shared nothing architectures.
D) A system that typically has one to a few cores and shared memory used to manage the
database.
B) Query Processor
Which of the following pairs should be placed where there is a "?" sign?
6- Which of the following options best defines the ACID principles in database
systems?
A) Allocation, Consistency, Isolation, Durability - essential for resource management.
8-
Using the given instructor and teaches tables, which relational algebra expression would you use to
find all instructors from the "Comp. Sci." department who taught in the Fall 2017 semester?
9- To combine the course offerings from two different years into a single list,
which relational algebra operator would you use, assuming the tables have
identical columns for course details?
A) Select (σ)
B) Project (Π)
d) A foreign key constraint requires that the value in one relation must be different from the values in
another relation.
b) Network schema
c) Hierarchical schema
d) All of the mentioned
12 -The logical design, and the snapshot of the data at a given instant in time
is known as?
a) Instance & Relation
B. setConnection()
C. getConnection()
D. Connect()
c. More than 2
d) None
b) Employee
c) “Comp Sci”
d) From
18. Which SQL table creation query contains an error?
A) CREATE TABLE department (
building VARCHAR(15),
budget DECIMAL(12, 2)
);
ID VARCHAR(5),
name VARCHAR(20),
dept_name VARCHAR(20),
);
ID VARCHAR(5),
course_id VARCHAR(8),
);
19.The ________ clause is used to list the attributes desired in the result of a
query.
a) Where
b) Select
c) From
d) Distinct
B) SELECT name
FROM employee
WHERE salary <= 90000 AND salary>=100000;
c) SELECT name
FROM employee
WHERE salary BETWEEN 90000 AND 100000;
d) SELECT name
FROM instructor
WHERE salary BETWEEN 100000 AND 90000;
23. Which of the following should be used to find all the courses taught in the
Fall 2009 semester but not in the Spring 2010 semester .
a) SELECT DISTINCT course id
FROM SECTION
WHERE semester = ’Fall’ AND YEAR= 2009 AND
course id NOT IN (SELECT course id
FROM SECTION
WHERE semester = ’Spring’ AND YEAR= 2010);
c) (SELECT course id
FROM SECTION
WHERE semester = ’Spring’ AND YEAR= 2010)
d) SELECT COUNT (DISTINCT ID)
FROM takes
WHERE (course id, sec id, semester, YEAR) IN (SELECT course id, sec id, semester, YEAR
FROM teaches
WHERE teaches.ID= 10101);
29. The union operation automatically __________ unlike the select clause.
a) Adds tuples
b) Eliminates unique tuples
c) Adds common tuples
d) Eliminates duplicate
30. __________ is a special kind of a store procedure that executes in
response to certain action on the table like insertion, deletion or updation of
data.
a) Procedures
b) Triggers
c) Functions
d) None of the mentioned
31. The __________ function that does not create gaps in the ordering.
a) Intense_rank()
b) Continue_rank()
c) Default_rank()
d) Dense_rank()
Chapter 6:
32.What is the primary goal of the database design process?
A. To optimize data retrieval speed.
B. To minimize storage space usage.
C. To organize data in a way that meets the information needs of the organization.
D. To ensure the scalability of the database system.
Chapter 8:
44. What is table inheritance in an object-relational database?
A)Creating tables that have a many-to-many relationship with other tables
45. Which data model's requirement of atomic data types may be considered
an overkill for storing complex data?
A. Hierarchical model
B. Relational model
C. Object-oriented model
D. Network model
B) Query optimization
Chapter 9:
53.Which component acts as the user interface in a database system,
providing forms, graphical user interfaces, and often web-based interfaces?
A) Backend
B) Middle layer
C) Front-end
D) Query language
54.What technology has become the de-facto standard user interface for
databases, allowing large numbers of users to access databases from
anywhere without the need for downloading/installing specialized code?
A)Web browsers
B) Flash
C) Java
D) Python
55.What mechanism is commonly used to address the connectionless nature
of the HTTP protocol, allowing servers to retain user authentication and other
information across multiple requests within a session?
A) Sessions
B) Tokens
C) Encryption
D) Cookies
56. What is a cookie in the context of web communication, and what purpose
does it serve in maintaining user-related information between a server and a
browser?
A) A small piece of cake exchanged between the server and the browser for user satisfaction.
B) A small piece of text containing identifying information exchanged between the server
and the browser.
C) A security feature to prevent unauthorized access.
57. What does the Java Servlet specification define, and how does it facilitate
communication between the Web/application server and the application
program?
A) It defines methods for cooking and baking in a server environment.
B) It defines an API for communication between the server and a servlet, allowing handling of HTTP
requests and responses.
B) It requires users to manually input code/SQL queries in the HTML document for database
connection.
D) It interfaces between the business logic layer and the underlying database.
60. Which layer in the application architecture provides the mapping from the
object model of the business logic layer to the relational model of the
database?
A) Presentation or user interface layer
B) Business-logic layer
D) Model-view-controller layer