MCQ Questions of "Fundamentals of Database"

Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

MCQ Questions of "Fundamentals of Database"

CHAPTER:01

1. What is a database model?

A. A kind of normalization
B. A special kind of database
C. A blueprint for how data is stored in database
D. A blueprint for how to build a database application
Answer: C

2. Which of the following restrict value in fields?

A. Data type
B. Metadata
C. String
D. Attribute
Answer: A

3. Which of the following application requires frequent update?

A. OLTP application
B. Data warehouse application
Answer: B

4. Which of the following is inverted tree like structure?

A. A .File system
B. Hierarchical database model
C. Network database model
D. Relational database model
Answer: B

5. Which of the flowing model provides a three dimensional structure

A. Hierarchical database model


B. Network database model
C. Relational database model
D. Object database model

Answer: D

6. ERD is

A. Conceptual design
B. Logical design
C. Physical design
D. Manual design
Answer: A

Page 1 of 16
MCQ Questions of "Fundamentals of Database"

CHAPTER: 02

7. A relational database model cannot avoid defining some business rule. Why?

A. Stored procedures are mandatory in database model.


B. We cannot avoid using trigger.
C. Because of the existence of the relationships between tables.
D. All of above
Answer: C

8. Implementing business rules using stored procedure can be used to provide comprehensive
accommodation of business rules; it is recommended to use stored procedure.

A. True
B. False
Answer: B

9. Which of the following statement is/are true about database modeling?

A. Those people who are technically aware are best source of information in workplace.
B. It is beneficial to get balance of levels and skills to help get a better overall picture of the
requirement.
C. The higher up the management scale we get to talk, the more detail picture we get.
D. In large company, executive level people are easily accessible.
Answer: B

10. For a database designer, the entry point who will introduce him to the person who will help best
in database modeling is-

A. The busy executive officer.


B. Any employee who are end-user.
C. Any employee who will not use the system
D. The person who design bill, and who signs the check.
Answer: D

11. Heterogeneous system is a system with

A. Similar parts
B. Dissimilar parts
Answer: B

12. A constraint -

A. Restricts the number of columns in database.


B. Restricts the number of tables in database.
C. Restricts the value in database
D. Controls the Meta data
Answer: C

Page 2 of 16
MCQ Questions of "Fundamentals of Database"

CHAPTER: 03

1. Which of the following place restriction on values of database? (Any two)

A. trigger
B. constraints
C. black box
D. data type
Answer: B, D

2. Which of the following is not a method of preventing data from integrity loss?

A. Entity relationship diagram


B. Computer security
C. Database back up
D. Properly designed interface
Answer: A

3. The idea of a relational database system and normalization is that data in a specific table is not
directly associated with all other items in that same table.

A. True
B. False
Answer: B

4. Which of the following applies structure and definition to a chunk of data within each repeated
record?

A. Table
B. Item
C. Row
D. Field
Answer: D

5. Which of the following statements are true?

A. Complex data types encompass object data types


B. Video is an example of collection of array
C. A pointer provides the advantage of not having to specify too much in advance with respect
to how much bytes the pointer value occupies.
D. User defined data type cannot be created by programmer.
Answer: A, C

CHAPTER: 04

1. If Y = X + 10, which of the following is correct?

A. X is dependent and Y is determinant


B. Y is dependent and X is determinant
C. Z is transitively dependent on X
D. None
Answer: B

Page 3 of 16
MCQ Questions of "Fundamentals of Database"

2. Examine the table; BOOK (ISBN, Title, Author_id, Author_name) is a table, where ISBN is the
primary key. Which one is true?

A. Author_name is full-functionally dependent on ISBN


B. Author_name is transitively dependent on ISBN
C. Author_name is partially dependent on ISBN
D. They have a cyclic dependency
Answer: B

3. _________ and ___________ both attempts to minimize the number of fields in composite keys

A. A.3NF and 4NF


B. B.4NF and 5NF
C. C.2NF and 3NF
D. All
Answer: B

4. __________ eliminates cyclic dependencies.

A. 2nd normal form


B. 3rd normal form
C. 4th normal form
D. 5th normal form
Answer: D

5. In beyond 3nf (easy way) potentially null valued fields are moved into a new table, creating one-
to one or zero relation ship

A. True
B. False
Answer: A

6. 5th normal form happens if?

A. Table is in 4th normal form


B. For multi valued dependencies
C. For cyclic dependencies
D. None of above

Ans: A, C

7. Boyce-codd form happens if?

A. Table is in 3th normal form


B. For multi valued dependencies
C. For cyclic dependencies
Page 4 of 16
MCQ Questions of "Fundamentals of Database"

D. Table can have only one candidate key


E. None of above

Ans: A, D

8. Caused when a record is added to a detail table, with no related record existing in a master table.
What is this?

A. Delete anomaly
B. Insert anomaly
C. Update anomaly
Ans: B

9. If X determines Y and Y determines Z then what types of dependency between X and Z?

A. Functional dependency
B. Cyclic Dependency
C. Transitive Dependency
Ans C

10. 4th normal form happens if?

A. Table is in 3th normal form


B. For multi valued dependencies
C. For cyclic dependencies
D. None of above
Ans: A, B

11. If a field is a comma delimited list or collection of same kind then what of dependency is called?

A. Cyclic dependency
B. Multiple dependency
C. Multi-valued-Dependency
D. Transitive dependency

Ans: BC

12. When Boyce codd Normal form and third normal form are same and one?

A. When there is only one foreign key


B. When there is only one unique key
C. When there is only one candidate key
D. None of above

Ans: C

Page 5 of 16
MCQ Questions of "Fundamentals of Database"

Chapter 05:

1. Which type of join joins a table to itself?


A. Inner join
B. Cartesian join
C. Self join
D. Outer join
Answer: C

2. Which of the following statements are/is true?


A. Filtered query allows summarizing, grouping of records into summarized record set.
B. Aggregated query allows summarizing, grouping of records into summarized record
set.
C. Nested query merges multiple query results together.
D. UNION keyword is used in composite query
Answer: B, D

3. _____________ contains blocks of command, where each successive block is dependent on


the result of previous block.
A. Procedural language
B. Non-procedural language
Answer: A

4. In relational database, ___________ allows to temporarily stores changes.


A. Commit command
B. Rollback command
C. A transaction
D. None
Answer: C

5. For which type of query Order by clause is used?


A. Basic query
B. Filtered query
C. Sorted query
D. Join query
Answer: C

6. Filtering using a negative such as NOT or != forces full table uses index and avoid scanning
full table.
A. True
B. False
Answer: A

7. The LIKE operator is not efficient because it tends to full table scan.
A. True
B. False
Answer: A

8. Which type of join simply joins two tables regardless of any relationship?
A. Self join
B. Cross join
C. Full outer join
D. Nested join
Answer: B

Page 6 of 16
MCQ Questions of "Fundamentals of Database"

9. Which of the following statement(s) is/are true?


A. Composite queries may not have the same data types for each field, all in the same
sequence.
B. Insert column allows addition to tables in database.
C. A single command must be executed within a single transaction.
D. The DISTINCT clause is used to return only the unique records in a set of returned
records.
Answer: C, D
10. 10 The WHERE and HAVING clause are used for same purpose.
A. True
B. False
Answer: A
11. For sorting data, which clause is used?
A. WHERE clause
B. HAVING clause
C. ORDER BY clause
D. GROUP BY Clause

Ans: C

12.A query contain another query is called? Choose two.


A. Basic Query
B. Filter Query
C. Nested Query
D. Aggregate Query
E. Sub Query

Ans: CE

13. Which command are used to change data in tables in a database? Choose two.

A. SELECT
B. UPDATE
C. SUBQUERY
D. DELETE

Ans: B,D

14. Which types of query merge multiple query result together?

A. Basic Query
B. Filter Query
C. Composite Query
D. Nested Query

Ans: C

15. Which commands allow alteration to metadata?

A. DELETE Command
B. ALTER Command
C. SELECT Command
D. UPDATE Command

Ans: B
Page 7 of 16
MCQ Questions of "Fundamentals of Database"

16. A join who merges all records in one table with all records in another tables is called?

A. Self join
B. Outer join
C. Cross join
D. Equi join
Ans: C

Chapter 06&07:

1. Which of the following is true about de-normalization?


A. De-normalization is often the opposite way of normalization.
B. De-normalizing BCNF leads to poor performance.
C. After de-normalizing 4th normal form, the remaining problem with multi-valued field is
solved by collection arrays.
D. None of above is true
Answer: A

2. When does the de-normalization trick of copying field between tables is applied?
A. If there are active and inactive data.
B. If the tables are not directly related to each other.
C. If hot block problem appears
D. None of above.
Answer: B

3. Which of the following is true?


A. An abstract class is a class inhering every thing from parent class, allowing local
overriding changes.
B. A specialized class is a class inhering every thing from parent class, allowing local
overriding changes.
C. A method is equivalent to a relational database stored procedure; it executes on the
data contents of all other objects.
D. All of above is true
Answer: D

4. We can use cluster to


A. Separate active fields
B. To copy fields between to tables
C. To make summery fields in parent table
D. We do no use cluster for de-normalization
Answer: B

5. Which type of database can consume large portion of RAM by transferring data between disk
and memory.
A. OLTP
B. Client server
C. Ware house
Answer: C

6. It is only best to add or remove in a data ware house, because

A. Changing existing data warehouse table records can be extremely inefficient because
of the inefficient size of RAM

Page 8 of 16
MCQ Questions of "Fundamentals of Database"

B. Changing existing data warehouse table records can be extremely inefficient because
of the inefficient size of Hard Disk
C. Changing existing data warehouse table records needs a change in the database
design
D. None of the above statements are true.

Answer: A, B

7. What is true about snowflake schema (choose two)


A. A snowflake schema is a normalized star schema
B. A snowflake schema is a normalized fact table
C. The problem with snowflake schema isn’t too many tables but too many layers
D. The problem with snowflake schema isn’t too many layers but too many tables

Answer: A, C

8. Dimension tables must be built before the fact table


A. True
B. False
Answer: A

9. What kind of use of database requires a precise, accurate and instant picture of data in
database?
A. Data storage use
B. Operational use
C. Decision support use
D. Design use
Answer: B

10. Fact table remains relatively constant in record numbers.


A. True
B. False
Answer: B

Chapter 08:

1. Which of these apply to OLTP databases?


A. Large Transaction
B. High concurrency
C. Frequent servicing opportunities
D. Real-time response to end-users
Answer: B

2. Which of these apply to data warehouse databases?


A. Lots of users
B. High concurrency
C. Very large database
D. High Granularity
Answer: C

3. Which aspect of a query affects performance most profoundly? Select the most
appropriate answer.
A. WHERE clause filtering
B. Sorting with the order by clause
C. Aggregating with the GROUP BY clause
Page 9 of 16
MCQ Questions of "Fundamentals of Database"

D. The number of tables in join queries


E. The number of fields in join queries
Answer: D

4. Assume that there 1000000 records in a table. One record has empno=100. empno as
the primary key. Which is the fastest query?
A. SELECT * from emp where empno!=100;
B. SELECT * from emp where empno=100;
C. SELECT * from emp where empno is NULL;
D. SELECT * from emp where empno>100;
Answer: B

5. Which databases models does Factors Tuning affect?


A. OLTP
B. CLIENT-SERVER
C. DATA WAREHOUSE
D. None
Answer: A, B, C

6. Application caching is where data can be stored in the memory of a client computer.
A. True
B. False
C. None
Answer: A

7. What is true for views?


A. Views are database objects and logical overlays
B. Views are database objects and physical overlays
C. Views hold data
D. A & b
Answer: A

8. When should not be created an index?


A. A table small number of field’s
B. Small static data tables
C. A table large number of field’s
D. a & b
Answer: D

9. Which data are changes all the are called-


A. Static data
B. Dynamic data
C. Transactional data
D. All of the above
Answer: B, C

10. What is unique index?


A. A unique index is allowing only a single value in a table.
B. A unique index is allowing multiple values in a table.
C. A unique index is allowing duplicate value in a table.
D. None
Answer: A

11. An auto counter is a specific database object used to count –


A. Char values
Page 10 of 16
MCQ Questions of "Fundamentals of Database"

B. Date values
C. Integer values
D. Decimal values
Answer: C

12. What are basic rules when attempting to tune SQL code joins?
A. Apply largest filters first
B. Use indexes
C. Nested Subquery semi-joins
D. Only a
Answer: A, B, C

13. The most important factor for performance tuning joins is minimizing the number
A. Of tables
B. of records
C. of rows
D. of fields
Answer: A

14. What are true about joins?


A. An inner join is an intersection between two tables.
B. A self-join is a special type of intersection where records on multiple heretical levels,
stored in a single table.
C. A cross join is Cartesian product
D. None
Answer: A, B, C

15. The where clause can be used to-


A. Include wanted records
B. Exclude unwanted records
C. Filter records
D. None of above
Answer: A, B, C

Chapter 09:

1. The very beginning of database model design is


A. Doing the code with the programmers
B. Drawing up a specific analysis of what is needed
C. Drawing up the tables and applying referential integrity
D. All of above
E. None of above
Answer: B

2. The process of initial fact-finding through interview to the end user is known as
A. Analysis
B. Design
C. Construction
D. Implementation
Answer: A

3. What is true about analysis?


A. Proper analysis can be achieved by just interviewing the technical persons.
B. Analysis essentially describes a business.
C. What are the tables in database is not a part of analysis.
Page 11 of 16
MCQ Questions of "Fundamentals of Database"

D. Analysis defines the general table structure.


Answer: B

4. The establishment of inter table relationship is a(n)


A. Design process
B. Analysis process
C. Construction process
Answer: B

5. Which of the following tasks are included in design phase?(choose 3)


A. Interviewing
B. Build the table graphically
C. Establishment of inter-table relationship
D. Define data types
E. Applying referential integrity
Answer: B, D, E

6. Creating stored procedure is a part of


A. Design phase
B. Analysis phase
C. Construction phase
D. Implementation phase
Answer: C

7. The best database models are produced by paying attention to


A. Number of analysts being working
B. Detail in the analysis stage.
C. Detail in the design stage.
D. Detail in the construction stage.
Answer: B

8. Which of the following is the heart of the analysis stage?


A. Overall objective
B. Company operations
C. Business rules
D. Planning
Answer: C

9. Project plan typically includes-


A. Objective of the company
B. Operation of the company
C. How much will cost
D. Who does what and when
Answer: D

10. More normalization leads better queries


A. True
B. False
Answer: B

Page 12 of 16
MCQ Questions of "Fundamentals of Database"

Chapter 10 & 11 & 12:

1. Performance is exclusively a programming or implementation activity; it should no be


included in analysis and design.
A. True
B. False
Answer: B

2. When considering how to build fact and dimensional table structures in a data warehouse
database model, we should consider-
A. How reports will be structured.
B. How long those reports will take to run
C. Who will use the data warehouse
D. Where the warehouse is placed.
Answer: A, B

3. Relational model design includes –


A. Refine database model
B. Finding out the company operations
C. Finalization and approval
D. All of above
Answer: A, C

4. What is true about design?


A. Design stage is the next stage following the implementation stage.
B. Design stage is the next stage following the analysis stage.
C. Design is a process of figuring out how to implement what was discovered during the
analysis stage.
D. In this stage one should think about a database model from the perspective of how
application will use that database.
E. Design does not include technical specification.
Answer: B, C, D

5. According to the 1st normal form easy way, which one of the following is true?
A. It removes repeating values in new tables.
B. It removes repeating fields in new tables.
C. It creates primary key in both tables, where the detail table have composite primary
key.
D. It creates primary key in both tables, where the parent table have composite primary
key.
Answer: B, C

6. No partial dependencies are allowed in _


A. 1st normal form easy way
B. 1st normal form academic way.
C. 2nd normal form easy way.
D. 2nd normal form academic way
Answer: D

7. What is the problem with de normalization?


A. It degrades the performance.
B. It is very expensive.
C. It requires extensive application knowledge.
D. All of above
Answer: C
Page 13 of 16
MCQ Questions of "Fundamentals of Database"

8. The soundness of queries and application depends upon


A. The experience of the programmer.
B. The duration of the development of the application.
C. The soundness of the underlying database.
D. The type of the application.
Answer: C

9. Views are not same thing as materialized view.


A. True
B. False
Answer: A

10. Demoralization isn’t always opposite of normalization


A. True
B. False
Answer: A

11. All strings and numbers values are ------------------


A. Fixed Length
B. Variable Length
C. All of the above
D. None of the above
Answer: A

12. Demoralization 3nf forms to eliminate what arte called ------------


A. Transitive Dependences
B. Cyclic Dependencies
C. Multi-valued Dependencies
D. None of the above
Answer: A

13. Transitive dependency directly determined by the primary key


A. True
B. False
Answer: B

14. To act use of demoralization 2nf removing which type of values?


A. Static value.
B. Dynamic Values
C. None of the above
D. All of the above
Answer: A

15. Shareable hardware structures are known as --------


A. Concurrency
B. Parallel Processing
C. All of the above
Answer: A

16. To make together in database what key is needed? -----


A. Surrogate key.
B. Primary Key
C. Foreign key
Page 14 of 16
MCQ Questions of "Fundamentals of Database"

D. None of the above


Answer: A

17. A single hierarchical level used in ----


A. Star
B. Snowflake
C. None of the above
D. All Of the above
Answer: A

18. Fact table foreign keys are called ----?


A. Primary Key
B. Surrogate key
C. Foreign Key
D. None of the above
Answer: B

19. Database tuning must be done _______.


A. During the design phase.
B. Before any development is complete.
C. During Construction Phase
D. None of the above
Answer: A, B

20. A materialized views allows______.


A. Physical copy of table data.
B. Logical copy of table data
C. Both of the above
D. None of the above
Answer: A

21. The quality of SQL code depends completely on_____.


A. The quality of database model design.
B. The quantity of database model
C. None of the above
D. Both of the above
Answer: A

22. Which are correct? [Choose two]


A. Database model design supports SQL code.
B. SQL code supports application.
C. None of the above
D. All of the above
Answer: A, B

23. What are the advantages for using shorter alias name at table?
A. SQL code more easily readable.
B. Having to make future changes.
C. Less prone to error.
D. Easier to tune properly & easier to handle.
E. None of the above
Answer: A, B, C, D

24. The where clause can be used either to ______?


A. Include wanted records or exclude unwanted records or both.
Page 15 of 16
MCQ Questions of "Fundamentals of Database"

B. Exclude wanted records or include unwanted or both


C. All of the above
D. None of the above
Answer: A

25. Which are true for “Like” operator?


A. Usually involves a full scan of a table & ignore indexing.
B. Extremely inefficient searching for a small no. of records.
C. All of the above

Answer: C

Page 16 of 16

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy