0% found this document useful (0 votes)
89 views16 pages

50 MCQ Database Questions

Practice questions

Uploaded by

Aisha Emad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views16 pages

50 MCQ Database Questions

Practice questions

Uploaded by

Aisha Emad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16

MCQ Questions For Database

Here are 50 multiple-choice questions related to SQL Server shortcuts, database


concepts, terms, and management:

1. What shortcut is used to enter NULL in a column in SQL Server?


a) Ctrl+N
b) Ctrl+0
c) Ctrl+Z
d) Ctrl+1
**Answer: b) Ctrl+0**

2. Which shortcut is used to refresh the object list in SQL Server?


a) F4
b) F5
c) F8
d) F12
**Answer: b) F5**

3. What is the shortcut to view query plan in Query Analyzer in SQL Server?
a) Ctrl+Q
b) Ctrl+P
c) Ctrl+L
d) Ctrl+T
**Answer: c) Ctrl+L**

4. Which font is recommended for query result readability on LCD screens in SQL
Server?
a) Times New Roman
b) Arial
c) Verdana
d) Calibri
**Answer: c) Verdana**

5. How can query results be stored in SQL Server?


a) As PDF
b) As HTML
c) As tab-delimited or comma-separated
d) As XML
**Answer: c) As tab-delimited or comma-separated**

6. What does Shift+F1 do in SQL Server?


a) Opens a new query window
b) Provides sensitive help information
c) Executes the current query
d) Opens Object Explorer
**Answer: b) Provides sensitive help information**

7. Which shortcut is used to execute SQL code in SQL Server?


a) F4
b) F5
c) F8
d) F12
**Answer: b) F5**

8. What does F8 do in SQL Server?


a) Opens a new query window
b) Provides sensitive help information
c) Opens Object Explorer
d) Executes the current query
**Answer: c) Opens Object Explorer**

9. What is a primary key (PK) in a database?


a) Field used to define a relationship between tables
b) Field allowing specified values to be entered instead of NULL values
c) Field uniquely defining each record in a table
d) Field referring to the key field of a related table
**Answer: c) Field uniquely defining each record in a table**

10. What is a foreign key (FK) in a database?


a) Field uniquely defining each record in a table
b) Field referring to the key field of a related table
c) Field allowing specified values to be entered instead of NULL values
d) Field used to define a relationship between tables
**Answer: b) Field referring to the key field of a related table**

11. Which of the following is a characteristic of a view in a database?


a) It stores data itself
b) It allows for custom representations of data from multiple tables
c) It executes SQL code for performing operations within the database
d) It is a field or group of fields used to uniquely define each record in a table
**Answer: b) It allows for custom representations of data from multiple
tables**

12. What is a stored procedure (SP) in a database?


a) It stores data itself
b) It allows for custom representations of data from multiple tables
c) It executes SQL code for performing operations within the database
d) It is a field or group of fields used to uniquely define each record in a table
**Answer: c) It executes SQL code for performing operations within the
database**

13. What is a trigger in a database?


a) It stores data itself
b) It allows for custom representations of data from multiple tables
c) It executes SQL code for performing operations within the database
d) It contains action codes automatically activated after specific actions in the
database
**Answer: d) It contains action codes automatically activated after specific
actions in the database**

14. What does SQL stand for?


a) Standard Query Language
b) Structured Query Language
c) Special Query Language
d) Systematic Query Language
**Answer: b) Structured Query Language**

15. What does ERD stand for in database modeling?


a) Entity-Relationship Data
b) Entity-Relation Diagram
c) Extended Relational Database
d) Enhanced Relationship Design
**Answer: b) Entity-Relation Diagram**

16. What is a dataset in a database?


a) Collection of records including entire tables
b) Collection of records including selected fields from multiple tables
c) Collection of tables including entire records
d) Collection of records including entire tables and selected fields from multiple
tables
**Answer: d) Collection of records including entire tables and selected fields
from multiple tables**
17. What is metadata in the context of databases?
a) Information about the database and its objects
b) Data stored within the database
c) Indexes for faster access to records
d) Views representing customized data
**Answer: a) Information about the database and its objects**

18. What is normalization in database design?


a) Process of organizing data into a relational database model
b) Process of integrating distributed data regardless of its source format
c) Process of organizing tables to minimize data redundancy and dependency
d) Process of optimizing performance by systematically organizing recurring
data
**Answer: c) Process of organizing tables to minimize data redundancy and
dependency**

19. Which of the following is NOT a cause of database corruptions?


a) Power outage
b) Network errors
c) Proper shutdown of the operating system
d) Faulty codes in DBMS and operating system software
**Answer: c) Proper shutdown of the operating system**

20. What is a Database Management System (DBMS)?


a) Software that manages databases, providing access, security, and control
b) Computer hardware for storing and processing data
c) A collection of records containing relevant data for a specific subject
d) A system comprising database files, DBMS software, and personnel
organizing them
**Answer: a) Software that manages databases, providing access, security, and
control**

21. What is the primary goal of Data Warehouses (DW)?


a) To facilitate tracking, sorting, selecting, and updating events
b) To integrate distributed data, regardless of its source format
c) To analyze large databases to uncover hidden patterns and relationships
d) To provide decision-makers with an analytical view of data
**Answer: d) To provide decision-makers with an analytical view of data**

22. What is data mining?


a) Process of organizing data into a relational database model
b) Process of integrating distributed data regardless of its source format
c) Process of analyzing large databases to uncover hidden patterns and
relationships
d) Process of optimizing performance by systematically organizing recurring
data
**Answer: c) Process of analyzing large databases to uncover hidden patterns
and relationships**

23. What are the basic elements of Data Warehouses?


a) Calculation, dimensions, attributes, hierarchies
b) Tables, views, indexes, triggers
c) Measures/facts, dimensions, attributes, hierarchies
d) Records, fields, tables, indexes
**Answer: c) Measures/facts, dimensions, attributes, hierarchies**

24. Which of the following is NOT a feature of XML databases?


a) Standardized display of data
b) Clear separation between data structure, content, and presentation
c) Control over the coding structure through programs
d) Relational structure similar to traditional databases
**Answer: d) Relational structure similar to traditional databases**

25. What are the characteristics of Big Data?


a) High volume, low velocity, low variety, low veracity
b) Low volume, high velocity, high variety, high veracity
c) High volume, high velocity, high variety, low veracity
d) Low volume, low velocity, low variety, high veracity
**Answer: c) High volume, high velocity, high variety, low veracity**

26. What are NoSQL databases optimized for?


a) Managing small volumes of structured data
b) Managing large volumes of structured data
c) Managing small volumes of unstructured data
d) Managing large volumes of unstructured data
**Answer: d) Managing large volumes of unstructured data**

27. What are the key features of relational databases according to Codd?
a) Two-dimensional tables, unique records, irrelevant order, logical column
names
b) Three-dimensional tables, unique records, relevant order, logical column
names
c) Two-dimensional tables, unique records, relevant order, logical column names
d) Three-dimensional tables, unique records, irrelevant order, logical column
names
**Answer: a) Two-dimensional tables, unique records, irrelevant order, logical
column names**

28. What is the purpose of normalization in database design?


a) To minimize data redundancy and dependency
b) To integrate distributed data regardless of its source format
c) To analyze large databases to uncover hidden patterns and relationships
d) To provide decision-makers with an analytical view of data
**Answer: a) To minimize data redundancy and dependency**

29. What is the first step in the relational database design process?
a) Conceptual modeling
b) Logical modeling
c) Physical modeling
d) Requirement analysis
**Answer: a) Conceptual modeling**

30. What does the implementation phase of the database design process involve?
a) Developing the conceptual model
b) Creating the physical model
c) Transitioning to the relational database model
d) Creating forms and reports
**Answer: b) Creating the physical model**

31. Which of the following is NOT a consideration in database design?


a) User support
b) Data modeling
c) Installation cost
d) Employee-used forms and reports
**Answer: c) Installation cost**

32. What is a denormalization in database design?


a) Process of organizing tables to minimize data redundancy and dependency
b) Process of integrating distributed data regardless of its source format
c) Process of optimizing performance by systematically organizing recurring data
d) Process of adding redundancy to improve performance
**Answer: d) Process of adding redundancy to improve performance**

33. Which of the following is a requirement analysis phase activity?


a) Defining the physical model
b) Determining the functionality of the system to be developed
c) Transitioning to the relational database model
d) Testing the designed system
**Answer: b) Determining the functionality of the system to be developed**

34. What is a physical design consideration in database design?


a) Determining the tables
b) Defining attributes for each table
c) Establishing security settings
d) Assigning unique names to relations
**Answer: c) Establishing security settings**

35. Which of the following is NOT a normal form in database normalization?


a) First Normal Form (1NF)
b) Second Normal Form (2NF)
c) Third Normal Form (3NF)
d) Fourth Normal Form (4NF)
**Answer: d) Fourth Normal Form (4NF)**

36. What is the primary goal of a Database Management System (DBMS)?


a) To manage computer hardware
b) To manage databases, providing access, security, and control
c) To facilitate communication among humans and machines
d) To store data in computer memory
**Answer: b) To manage databases, providing access, security, and control**

37. What is a disadvantage of the traditional database approach?


a) Efficiently calls and combines data
b) Facilitates adding new data without altering existing data
c) Risk of data duplication and inconsistency
d) Saves hard drive space by reducing data duplication
**Answer: c) Risk of data duplication and inconsistency**

38. What are the types of relationships in relational databases?


a) One-to-One (1:1), One-to-Many (1:N), Many-to-One (N:1)
b) One-to-One (1:1), One-to-Many (1:N), Many-to-Many (M:N)
c) One-to-Many (1:N), Many-to-One (N:1), Many-to-Many (M:N)
d) One-to-Many (1:N), Many-to-Many (M:N), Many-to-All (M:*)
**Answer: b) One-to-One (1:1), One-to-Many (1:N), Many-to-Many (M:N)**

39. What is a transaction in database management?


a) Integration of existing spreadsheets, text files, or DB reports
b) Creation of databases for newly designed Information System projects
c) Representation of database events and movements
d) Redesigning old databases to align with new requirements
**Answer: c) Representation of database events and movements**
40. What is the purpose of an Entity-Relation Diagram (ERD) in database design?
a) To facilitate tracking, sorting, selecting, and updating events
b) To provide decision-makers with an analytical view of data
c) To model real-world entities, their attributes, and the relationships between
them
d) To uncover hidden patterns and relationships in large databases
**Answer: c) To model real-world entities, their attributes, and the relationships
between them**

41. Which of the following is NOT a feature of XML databases?


a) Standardized display of data
b) Clear separation between data structure, content, and presentation
c) Control over the coding structure through programs
d) Relational structure similar to traditional databases
**Answer: d) Relational structure similar to traditional databases**

42. What is a disadvantage of the traditional database approach?


a) Efficiently calls and combines data
b) Facilitates adding new data without altering existing data
c) Risk of data duplication and inconsistency
d) Saves hard drive space by reducing data duplication
**Answer: c) Risk of data duplication and inconsistency**

43. What is a disadvantage of the database approach?


a) Data can be easily changed
b) Corruption in the database can render all programs inoperable
c) Requires a robust security system
d) Installation and maintenance of the database system are expensive
**Answer: d) Installation and maintenance of the database system are
expensive**

44. Which of the following is NOT a characteristic of Big Data?


a) High volume
b) Low velocity
c) High variety
d) Low veracity
**Answer: b) Low velocity**

45. Which of the following is NOT a characteristic of NoSQL databases?


a) Optimized for managing large volumes of unstructured data
b) Typically read-only
c) Require normalization and complex joins
d) Designed for fast queries and analysis
**Answer: c) Require normalization and complex joins**

46. What is a primary key (PK) in a database?


a) Field referring to the key field of a related table
b) Field used to uniquely define each record in a table
c) Field allowing specified values to be entered instead of NULL values
d) Field or group of fields used to uniquely define each record in the table
**Answer: b) Field used to uniquely define each record in a table**

47. What is a foreign key (FK) in a database?


a) Field used to define a relationship between tables
b) Field uniquely defining each record in a table
c) Field allowing specified values to be entered instead of NULL values
d) Field referring to the key field of a related table
**Answer: d) Field referring to the key field of a related table**

48. What is a stored procedure (SP) in a database?


a) It stores data itself
b) It allows for custom representations of data from multiple tables
c) It executes SQL code for performing operations within the database
d) It is a field or group of fields used to uniquely define each record in a table
**Answer: c) It executes SQL code for performing operations within the
database**

49. What is a trigger in a database?


a) It contains action codes automatically activated after specific actions in the
database
b) It allows for custom representations of data from multiple tables
c) It executes SQL code for performing operations within the database
d) It stores data itself
**Answer: a) It contains action codes automatically activated after specific
actions in the database**

50. What is the primary function of databases?


a) To facilitate communication among humans and machines
b) To provide decision-makers with an analytical view of data
c) To enhance decision-making accuracy by analyzing data fluctuations,
trajectories, and trends
d) To facilitate tracking, sorting, selecting, and updating events
**Answer: d) To facilitate tracking, sorting, selecting, and updating events**

You might also like