Q. Which of the following is a characteristic of a weak entity?
A.
It can exist independently of other entities
B.
It has a primary key of its own
C.
It relies on a strong entity for its identification
D.
It cannot have attributes
Show solution
Solution
A weak entity relies on a strong entity for its identification and does not have a primary key of its own.
Correct Answer:
C
— It relies on a strong entity for its identification
Learn More →
Q. Which of the following is a characteristic of a well-designed database?
A.
High data redundancy
B.
Low data integrity
C.
Minimal data anomalies
D.
Complex relationships
Show solution
Solution
A well-designed database should have minimal data anomalies, ensuring data integrity and consistency.
Correct Answer:
C
— Minimal data anomalies
Learn More →
Q. Which of the following is a common architecture for distributed databases?
A.
Client-server architecture
B.
Peer-to-peer architecture
C.
Three-tier architecture
D.
All of the above
Show solution
Solution
All of the above architectures can be used in distributed databases, depending on the specific requirements and design.
Correct Answer:
D
— All of the above
Learn More →
Q. Which of the following is a common concurrency control mechanism?
A.
Two-Phase Locking
B.
Single-Phase Locking
C.
Optimistic Locking
D.
Pessimistic Locking
Show solution
Solution
Two-Phase Locking is a widely used concurrency control mechanism that ensures serializability.
Correct Answer:
A
— Two-Phase Locking
Learn More →
Q. Which of the following is a common method for achieving data consistency in distributed databases?
A.
Two-phase commit protocol
B.
Single-phase commit protocol
C.
Data normalization
D.
Indexing
Show solution
Solution
The two-phase commit protocol is a common method used to achieve data consistency in distributed databases by ensuring all nodes agree on a transaction before it is committed.
Correct Answer:
A
— Two-phase commit protocol
Learn More →
Q. Which of the following is a common method for ensuring data consistency in a data warehouse?
A.
Data replication
B.
Data normalization
C.
Data denormalization
D.
Data partitioning
Show solution
Solution
Data replication is a common method used to ensure data consistency across different systems in a data warehouse.
Correct Answer:
A
— Data replication
Learn More →
Q. Which of the following is a common method for implementing concurrency control?
A.
Two-phase locking
B.
Data replication
C.
Partitioning
D.
Sharding
Show solution
Solution
Two-phase locking is a common method for implementing concurrency control to prevent conflicts between transactions.
Correct Answer:
A
— Two-phase locking
Learn More →
Q. Which of the following is a common query language for Object-Oriented Databases?
A.
SQL
B.
OQL
C.
PL/SQL
D.
T-SQL
Show solution
Solution
OQL (Object Query Language) is specifically designed for querying Object-Oriented Databases.
Correct Answer:
B
— OQL
Learn More →
Q. Which of the following is a common use case for Object-Oriented Databases?
A.
Storing simple text data
B.
Managing complex data with relationships
C.
Handling large volumes of transactions
D.
Creating flat file databases
Show solution
Solution
Object-Oriented Databases are commonly used for managing complex data with intricate relationships.
Correct Answer:
B
— Managing complex data with relationships
Learn More →
Q. Which of the following is a component of DBMS architecture?
A.
User Interface
B.
Database Engine
C.
Data Storage
D.
All of the above
Show solution
Solution
All of the above are components of DBMS architecture, including user interface, database engine, and data storage.
Correct Answer:
D
— All of the above
Learn More →
Q. Which of the following is a concurrency control mechanism?
A.
Two-phase locking
B.
Data normalization
C.
Indexing
D.
Entity-relationship modeling
Show solution
Solution
Two-phase locking is a concurrency control mechanism that ensures transactions are executed in a way that prevents conflicts.
Correct Answer:
A
— Two-phase locking
Learn More →
Q. Which of the following is a disadvantage of normalization?
A.
Increased data redundancy
B.
Complex queries
C.
Improved data integrity
D.
Reduced data anomalies
Show solution
Solution
Normalization can lead to complex queries because data is spread across multiple tables, requiring more joins to retrieve related data.
Correct Answer:
B
— Complex queries
Learn More →
Q. Which of the following is a feature of ADO.NET?
A.
Disconnected data architecture
B.
Direct database connection only
C.
No support for XML
D.
Single-threaded access
Show solution
Solution
ADO.NET supports a disconnected data architecture, allowing for data manipulation without a constant connection to the database.
Correct Answer:
A
— Disconnected data architecture
Learn More →
Q. Which of the following is a feature of ASP.NET compared to classic ASP?
A.
Supports server-side scripting only
B.
Uses a compiled model for better performance
C.
Does not support web forms
D.
Is limited to Microsoft SQL Server
Show solution
Solution
ASP.NET uses a compiled model, which provides better performance compared to classic ASP, which is interpreted.
Correct Answer:
B
— Uses a compiled model for better performance
Learn More →
Q. Which of the following is a feature of MySQL?
A.
Supports only SQL queries
B.
Is a NoSQL database
C.
Is open-source
D.
Does not support transactions
Show solution
Solution
MySQL is an open-source relational database management system that supports SQL queries and transactions.
Correct Answer:
C
— Is open-source
Learn More →
Q. Which of the following is a key feature of ADO.NET?
A.
Supports only SQL Server
B.
Uses disconnected data architecture
C.
Requires a constant connection to the database
D.
Does not support XML data
Show solution
Solution
ADO.NET uses a disconnected data architecture, allowing applications to work with data without a constant connection to the database.
Correct Answer:
B
— Uses disconnected data architecture
Learn More →
Q. Which of the following is a method for concurrency control in distributed databases?
A.
Two-phase locking
B.
Data sharding
C.
Indexing
D.
Data warehousing
Show solution
Solution
Two-phase locking is a method for concurrency control in distributed databases that helps prevent conflicts when multiple transactions access the same data.
Correct Answer:
A
— Two-phase locking
Learn More →
Q. Which of the following is a method to load XML data into a DataSet?
A.
ReadXml
B.
LoadXml
C.
ImportXml
D.
ParseXml
Show solution
Solution
The ReadXml method is used to load XML data into a DataSet in ADO.NET.
Correct Answer:
A
— ReadXml
Learn More →
Q. Which of the following is a potential problem that normalization aims to solve?
A.
Data redundancy
B.
Data encryption
C.
Data visualization
D.
Data migration
Show solution
Solution
Normalization aims to solve data redundancy by organizing data into separate tables to minimize duplication.
Correct Answer:
A
— Data redundancy
Learn More →
Q. Which of the following is a primary purpose of OLE DB?
A.
To provide a uniform interface for accessing data from different sources
B.
To manage database transactions
C.
To perform data normalization
D.
To create ER diagrams
Show solution
Solution
OLE DB is designed to provide a uniform interface for accessing data from various sources, including relational and non-relational databases.
Correct Answer:
A
— To provide a uniform interface for accessing data from different sources
Learn More →
Q. Which of the following is a type of indexing in databases?
A.
B-tree indexing
B.
C-tree indexing
C.
D-tree indexing
D.
E-tree indexing
Show solution
Solution
B-tree indexing is a common type of indexing used in databases to improve the speed of data retrieval.
Correct Answer:
A
— B-tree indexing
Learn More →
Q. Which of the following is a type of indexing?
A.
Clustered Index
B.
Non-Clustered Index
C.
Full-Text Index
D.
All of the above
Show solution
Solution
All of the above options are types of indexing used to improve the speed of data retrieval operations in a database.
Correct Answer:
D
— All of the above
Learn More →
Q. Which of the following is a type of JOIN in SQL?
A.
INNER JOIN
B.
OUTER JOIN
C.
CROSS JOIN
D.
All of the above
Show solution
Solution
All of the above options are types of JOINs in SQL, used to combine rows from two or more tables.
Correct Answer:
D
— All of the above
Learn More →
Q. Which of the following is a type of SQL join?
A.
INNER JOIN
B.
OUTER JOIN
C.
CROSS JOIN
D.
All of the above
Show solution
Solution
INNER JOIN, OUTER JOIN, and CROSS JOIN are all types of SQL joins used to combine rows from two or more tables.
Correct Answer:
D
— All of the above
Learn More →
Q. Which of the following is a valid data type in SQL Server 2000?
A.
VARCHAR
B.
STRING
C.
TEXT
D.
CHARACTER
Show solution
Solution
VARCHAR is a valid data type in SQL Server 2000, used for variable-length strings.
Correct Answer:
A
— VARCHAR
Learn More →
Q. Which of the following is a valid JDBC URL format for MySQL?
A.
jdbc:mysql://localhost:3306/mydb
B.
mysql://localhost:3306/mydb
C.
jdbc:mySQL://localhost:3306/mydb
D.
jdbc:mysql:localhost:3306/mydb
Show solution
Solution
The valid JDBC URL format for MySQL is 'jdbc:mysql://localhost:3306/mydb'.
Correct Answer:
A
— jdbc:mysql://localhost:3306/mydb
Learn More →
Q. Which of the following is a valid SQL statement to retrieve all records from a table named 'users'?
A.
SELECT * FROM users;
B.
GET ALL FROM users;
C.
FETCH ALL FROM users;
D.
RETRIEVE * FROM users;
Show solution
Solution
The correct SQL statement to retrieve all records from a table is 'SELECT * FROM users;'.
Correct Answer:
A
— SELECT * FROM users;
Learn More →
Q. Which of the following is a valid transaction control command in SQL Server 2000?
A.
BEGIN TRANSACTION
B.
START TRANSACTION
C.
COMMIT WORK
D.
ROLLBACK WORK
Show solution
Solution
The valid transaction control command in SQL Server 2000 is 'BEGIN TRANSACTION'.
Correct Answer:
A
— BEGIN TRANSACTION
Learn More →
Q. Which of the following is an example of a weak entity?
A.
A customer with a unique ID
B.
An order that depends on a customer
C.
A product with a SKU
D.
A department with a manager
Show solution
Solution
An order that depends on a customer is an example of a weak entity, as it cannot exist without the customer.
Correct Answer:
B
— An order that depends on a customer
Learn More →
Q. Which of the following is an example of an attribute in an ER model?
A.
Customer
B.
Orders
C.
OrderID
D.
Many-to-Many
Show solution
Solution
OrderID is an example of an attribute in an ER model.
Correct Answer:
C
— OrderID
Learn More →
Showing 271 to 300 of 340 (12 Pages)