CS403 – Database Management Systems: Midterm Important MCQs (235 Solved Questions)
Computer Science • Read every solved MCQ with its verified answer key directly on this page. Free, no login required.
All 664 Midterm Packs · CS403 Course Page · CS403 Subjective Pack (82 Q&As)
-
"Database System" is the combination of____________________.
Topic: Database Basics & Architecture
- Database and DBMS ✓ Correct answer
- Database and Data
- Data and Information
- Operating System and Database
-
Metadata is also known as __________ for the real world data.
Topic: Database Basics & Architecture
- Attribute ✓ Correct answer
- Schema
- Entity
- Relation
-
Data about data is called metadata.
Topic: Database Basics & Architecture
- True ✓ Correct answer
- False
-
Which of the following is an example of metadata?
Topic: Database Basics & Architecture
- Ali
- Image (Height, Width) ✓ Correct answer
- Person
- Student
-
Major benefit of data sharing is ____________.
Topic: Database Basics & Architecture
- Data of same applications placed at same place
- Data of same applications placed at different places
- Data of different application placed at same place ✓ Correct answer
- Data of different applications stored at placed place
-
A collection of concepts that can be used to describe the structure of a database is called ____________.
Topic: Database Basics & Architecture
- Database
- DBMS
- Data model ✓ Correct answer
- Data
-
Each component of DBMS performs _____ functions.
Topic: Database Basics & Architecture
- Similar
- Computational
- Identical
- Different ✓ Correct answer
-
Once the data has been transported to the physical level it is then managed by the ____________.
Topic: Database Basics & Architecture
- Operating system ✓ Correct answer
- File manager
- Database administrator (DBA)
- DBMS
-
The database management system (DBMS) is used to ____________.
Topic: Database Basics & Architecture
- Store the data
- All of above ✓ Correct answer
- Manage its users
- Access the data
-
______ provides the change transparency between Conceptual and External level.
Topic: Database Basics & Architecture
- Physical Data Independence
- Concurrency Control
- Logical Data Independence ✓ Correct answer
- Functional Dependency
-
Which of the following is CORRECT about Three Level Schema Architecture?
Topic: Database Basics & Architecture
- External level presents data to the user ✓ Correct answer
- Internal level in a database system will definitely be relational
- External Level cannot contain user views
- Conceptual Level is core of the architecture
-
______ is not the responsibility of DBMS
Topic: Database Basics & Architecture
- Support for Data Communication
- Integrity Services
- Data processing
- Grant of access rights ✓ Correct answer
-
DBA is not responsible for ________________
Topic: Database Basics & Architecture
- Monitoring Disk Space
- Database Backup
- Managing Print Jobs
- Development of Database Application Programs ✓ Correct answer
-
A ____________ is used to maintain a connection between the users of the database system.
Topic: Database Basics & Architecture
- Virtual Server
- File Server ✓ Correct answer
- Client Server
- FTP Server
-
Database Application is a program which is used for performing certain operations such as ____________.
Topic: Database Basics & Architecture
- Insertion of data
- Extraction of data
- Updating the data
- All of above ✓ Correct answer
-
Maximum Cardinality shows that how many __________ of one entity can be placed in another relation at most.
Topic: ER Model & Diagrams
- Keys
- Instances ✓ Correct answer
- Attributes
- Relationships
-
Identify the incorrect statement among the given.
Topic: ER Model & Diagrams
- Employee cannot be considered as an entity. ✓ Correct answer
- Existence of course in a degree program can be considered as an entity.
- Student "ID" can be considered as a single value attribute.
- Parking Area can be considered as an entity.
-
Identify the incorrect statement among the given.
Topic: ER Model & Diagrams
- An entity may be an object with a physical existence like a car.
- Age can be considered as a single value attribute of a person
- The attribute Date_of_birth can be considered as a derived attribute. ✓ Correct answer
- Skill is a multivalued attribute.
-
Which of the following is Semantic Data Model?
Topic: ER Model & Diagrams
- E-R Data Model ✓ Correct answer
- Hierarchical Data Model
- Network Data Model
- Relational Data Model
-
The ER- data model is an example of:
Topic: ER Model & Diagrams
- Physical database design
- Logical database design
- Relational database design
- Conceptual database design ✓ Correct answer
-
The conceptual database design is drawn through____________.
Topic: ER Model & Diagrams
- Data model
- Database design
- E-R model ✓ Correct answer
- Entity set
-
What do you mean by one to many relationship between "Teacher" and "Class" table?
Topic: ER Model & Diagrams
- One Class may have many Teachers
- One Teacher can have many Classes ✓ Correct answer
- Many Classes may have many Teachers
- Many Teachers may have many Classes
-
How many types of cardinality are specified about relationship?
Topic: ER Model & Diagrams
- Two
- One
- Three
- Four ✓ Correct answer
-
A Student has five courses at max registered in a semester and there are many students as well in a course. Student and Course entities have ______ cardinality.
Topic: ER Model & Diagrams
- One to One
- One to Many
- Many to One
- Many to Many ✓ Correct answer
-
The relationship between department to employees is _____________.
Topic: ER Model & Diagrams
- Many to many
- One to one
- Many to one
- One to many ✓ Correct answer
-
A ____ entity has a primary key that is partially or totally derived from the parent entity in the relationship.
Topic: ER Model & Diagrams
- Relationship
- strong
- Business
- Weak ✓ Correct answer
-
If there is more than one relationship between two entities and we mentioned role on the relationship link, then it is called:
Topic: ER Model & Diagrams
- Unary relationship
- Ternary relationships
- Binary relationships
- Multiple relationships ✓ Correct answer
-
Association between entities is called as ____________________.
Topic: ER Model & Diagrams
- Attribute
- Relationship ✓ Correct answer
- Primary Key
- Relation
-
The attribute that is calculated from other attribute is called______________.
Topic: ER Model & Diagrams
- Multi-valued attribute
- Simple attribute
- Composite attribute
- Derived attribute ✓ Correct answer
-
Which of the following provides us the facility to add properties of one entity to another entity automatically?
Topic: ER Model & Diagrams
- Abstraction
- Encapsulation
- Inheritance ✓ Correct answer
- Dependencies
-
Which of the following shows least amount of detail?
Topic: Database Design, DFD & Data Dictionary
- Context DFD ✓ Correct answer
- Level 0 DFD
- Level 1 DFD
- Level 2 DFD
-
Incase of Context Level DFD, the System is represented by
Topic: Database Design, DFD & Data Dictionary
- At least one Process
- One Process only ✓ Correct answer
- Two Processes
- Three Processes
-
Which of the following is created by "Database Management System" for its usage?
Topic: Database Design, DFD & Data Dictionary
- Free Standing Data Dictionary
- Cross Reference Matrix
- Weak Entity
- Integrated Data Dictionary ✓ Correct answer
-
Which of the following is the input to Analysis Phase?
Topic: Database Design, DFD & Data Dictionary
- DFD ✓ Correct answer
- Logical database design
- Physical database design
- Data model
-
Which of the following is correct regarding Dataflow diagram?
Topic: Database Design, DFD & Data Dictionary
- Single DFD is required to represent a system
- Created at increasing levels of detail ✓ Correct answer
- The dataflow must be bidirectional
- Used to represent the relationships among the external entities
-
Which of the following tool is used to graphically represent the components and design of the system?
Topic: Database Design, DFD & Data Dictionary
- CRM
- DFD ✓ Correct answer
- CRF
- EDF
-
Free standing data dictionary is created by Using ______.
Topic: Database Design, DFD & Data Dictionary
- Cross Reference Matrix
- Database
- DFD
- CASE tools ✓ Correct answer
-
Cross reference matrix is a tool available in the data dictionary, which helps us in finding ____________.
Topic: Database Design, DFD & Data Dictionary
- Entities of the database and their associations ✓ Correct answer
- Relationship between different tables
- Requirements for database
- User of the database
-
In ____________ appropriate data model is chosen.
Topic: Database Design, DFD & Data Dictionary
- ERD
- Conceptual Database Design
- Logical Database Design ✓ Correct answer
- DFD
-
Logical database design, like conceptual database design is our____________.
Topic: Database Design, DFD & Data Dictionary
- Data model ✓ Correct answer
- Weak entity set
- Strong entity set
- Database design
-
Which of the following is true about NOT NULL constraint?
Topic: Relational Model & Keys
- enforce domain integrity. ✓ Correct answer
- limit the values that can be placed in a column.
- prevents any actions that would destroy links between tables with the corresponding data values.
- enforces the uniqueness of the values in a set of columns.
-
Which of the following is true for the relation (table)?
Topic: Relational Model & Keys
- Degree of a relation is not possible to determine
- Candidate key can be chosen as a primary key of a relation. ✓ Correct answer
- Primary key always consists of a single attribute
- Primary key can not be selected from the set of candidate key
-
A relation (from the relational database model) consists of a set of tuples, which implies that
Topic: Relational Model & Keys
- it supports multi-valued attributes whose values can be represented in sets.
- for any two tuples, the values associated with all of their attributes may be the same.
- for any two tuples, the values associated with one or more of their attributes must differ. ✓ Correct answer
- all tuples in a particular relation may have different attributes.
-
______ Constraint states that primary key can not be null.
Topic: Relational Model & Keys
- Entity Integrity ✓ Correct answer
- Referential Integrity
- Null
- Domain
-
Which of the following constraints enforces Entity Integrity?
Topic: Relational Model & Keys
- PRIMARY KEY ✓ Correct answer
- FOREIGN KEY
- CHECK
- NOT NULL
-
Which of the following represents a valid Primary Key for a Student Registration table?
Topic: Relational Model & Keys
- Student-ID ✓ Correct answer
- Student-Father-Name
- Student-Class
- Student-Semester
-
Which of the following is NOT a Key?
Topic: Relational Model & Keys
- Alternate key
- Super key
- Integrity constraint key ✓ Correct answer
- Primary key
-
Database relation is also represented in a two dimensional structure called_______.
Topic: Relational Model & Keys
- Column
- Entity
- Table ✓ Correct answer
- Row
-
In the relational model, the number of attributes and number of tuples in a relation are termed as ___________and ________________respectively.
Topic: Relational Model & Keys
- degree, cardinality ✓ Correct answer
- cardinality, domain
- cardinality, degree
- domain, degree
-
Each ____________ of a table contains atomic/single value.
Topic: Relational Model & Keys
- Cell ✓ Correct answer
- Row
- Column
- Record
-
A relational database system is based on the concept(s) of ____________.
Topic: Relational Model & Keys
- A network of data records
- Objects
- Tables, rows and columns ✓ Correct answer
- A tree-like structure of data
-
The foreign key attribute, which is present as a primary key in another relation is called as _____________ of the foreign key attribute.
Topic: Relational Model & Keys
- Home relation ✓ Correct answer
- Binary relation
- Recursive relation
- Composite relation
-
Which of the following design elements does not require an entire table to implement?
Topic: Relational Model & Keys
- Entity
- Recursive relationship ✓ Correct answer
- Many-to-Many relationship
- Multi-valued attribute
-
Name and ______ are part of the Definitions of an attribute.
Topic: Relational Model & Keys
- Domain ✓ Correct answer
- Symbol
- Property
- Entity Instance
-
Which constraint is generally used for efficiency purposes in the data entry process?
Topic: Relational Model & Keys
- Null value
- Integer value
- Default value ✓ Correct answer
- String value
-
Consider two sets A and B. A contains 2 elements and B contains 3. How many elements do their Cartesian product contains?
Topic: Relational Algebra & Cartesian Product
- 6 ✓ Correct answer
- 9
- 4
- 5
-
Consider two sets A and B. A contains 3 elements and B contains 4. How many elements do their Cartesian product contains?
Topic: Relational Algebra & Cartesian Product
- 12 ✓ Correct answer
- 9
- 16
- 7
-
Consider the following two sets: X = [a, b] Y = {1,3,5} Then the Cartesian product of A and B (i.e. XxY) will be equal to:
Topic: Relational Algebra & Cartesian Product
- {(a,1), (a,5), (a,3), (b,5), (b,1), (b,5)}
- {(a, a), (a,3), (a,1), (b,5), (b,5), (b,3)}
- {(a,1), (b,1), (a,5), (b,3), (a,5), (b,5)}
- {(a,1), (a,3), (a,5), (b,1), (b,3), (b,5)} ✓ Correct answer
-
The ____________ is performed to select certain rows or tuples of a table, so it performs its action on the table horizontally.
Topic: Relational Algebra & Cartesian Product
- Select operation ✓ Correct answer
- Alter operation
- Insert operation
- Delete operation
-
Which of the following Greek letter is used to denote the select operation?
Topic: Relational Algebra & Cartesian Product
- Σ
- Ω
- σ ✓ Correct answer
- π
-
Theta join is denoted mathematically as ____________.
Topic: Relational Algebra & Cartesian Product
- R X S
- R X θ
- R X θ S ✓ Correct answer
- R X θ RS
-
R X θ S, If R and S are relations and θ is a ______.
Topic: Relational Algebra & Cartesian Product
- Table Name
- Attributes
- Primary Key
- Condition ✓ Correct answer
-
______ is not an operation of relational algebra.
Topic: Relational Algebra & Cartesian Product
- Addition ✓ Correct answer
- Union
- Cartesian Product
- Set Difference
-
If we simply say join, it means the _____.
Topic: Relational Algebra & Cartesian Product
- Outer join
- Natural join ✓ Correct answer
- Equi-join
- Theta Join
-
In natural join the common attribute in the output table appears _____________.
Topic: Relational Algebra & Cartesian Product
- Once ✓ Correct answer
- Four times
- Twice
- Three times
-
For which binary operation, relations are not required to be union compatible?
Topic: Relational Algebra & Cartesian Product
- Cartesian product ✓ Correct answer
- Union
- Difference
- Intersection
-
If in a relation R, all non key attributes are fully functionally dependent on key attributes. The relation R is in ________.
Topic: Normalization & Functional Dependencies
- 2NF ✓ Correct answer
- 3NF
- BCNF
- Higher NF
-
Which of the following features enforces a relation into 2nd normal form?
Topic: Normalization & Functional Dependencies
- Relation is in 1NF and every non-key attribute is partially dependent on super key.
- Relation is not in 1NF and non-key attribute is non-transitively dependent on primary key.
- Relation is in 1NF and every non-key attribute is fully functionally dependent on primary key. ✓ Correct answer
- The domain of attribute may include multiple values.
-
In ________ normal form, all determinants are candidate keys.
Topic: Normalization & Functional Dependencies
- 3NF
- BCNF ✓ Correct answer
- 4NF
- 5NF
-
Which of the following Normal Form deals with multi valued dependency?
Topic: Normalization & Functional Dependencies
- 2NF
- 3NF
- 4NF ✓ Correct answer
- 5NF
-
Which of the following is not a benefit of normalization?
Topic: Normalization & Functional Dependencies
- Minimize insertion anomalies
- Minimize deletion anomalies
- Minimize updating anomalies
- Maximize redundancy ✓ Correct answer
-
If W, X, Y and Z are attributes of a relation, which of the following inference rules for functional dependencies is correct?
Topic: Normalization & Functional Dependencies
- If (X, Z) -> Y then X -> Y and Z -> Y
- If X -> Y and X -> Z then X -> Y, Z ✓ Correct answer
- If X⊇ Y then Y -> X
- If X -> Y then X, Z -> Y,W
-
If D --> E, F then D --> E and D --> F. This inference rules is called as ________.
Topic: Normalization & Functional Dependencies
- Transitivity
- Additive
- Projectivity ✓ Correct answer
- Augmentation
-
Controlling redundancy in a database management system DOES NOT help to
Topic: Database Basics & Architecture
- avoid duplication
- avoid unnecessary wastage of storage space
- avoid unauthorised access to data ✓ Correct answer
- avoid inconsistency among data
-
User rights information is stored in
Topic: Database Basics & Architecture
- Physical database
- Catalog ✓ Correct answer
- Logical database
- Buffer
-
Which of the following functions are NOT performed by a database administrator?
Topic: Database Basics & Architecture
- Planning, designing and implementing database systems
- Establishing standards and procedures for database systems
- Communicating with database users ✓ Correct answer
- Allocation of storage locations and data structures
-
A software package designed to store and manage databases
Topic: Database Basics & Architecture
- Database
- DBMS ✓ Correct answer
- Data model
- Data
-
An instance is
Topic: Database Basics & Architecture
- A particular occurance of an entity ✓ Correct answer
- A special type of relation
- An attribute of an entity
- Any particular entity
-
Which feature of database provides conversion from inconsistent state of DB to a consistent state ensuring minimum data loss?
Topic: Database Basics & Architecture
- User accessible catalog
- Data processing
- Recovery service ✓ Correct answer
- Authorization service
-
A description on a particular collection of data using the given data model
Topic: Database Basics & Architecture
- Database
- Schema ✓ Correct answer
- None of the above.
- Relation
-
Select the correct statement about the ANSI/SPARC architecture.
Topic: Database Basics & Architecture
- The conceptual level is a level of indication between the internal level and the external level. ✓ Correct answer
- The internal level in a database system will definitely be relational.
- Any given database has many conceptual schemas and one physical schema, but it has only one external schemas.
- The external level is not concerned with individual user perceptions, while the conceptual level is concerned with a community user perception.
-
Database management systems, operating systems, applications and utilities are all examples of ____.
Topic: Database Basics & Architecture
- hardware
- software ✓ Correct answer
- computer infrastructure
- input and output
-
A collection of related data is
Topic: Database Basics & Architecture
- Logical model
- Database ✓ Correct answer
- Data
- Relational model
-
Identify the correct statement.
Topic: Database Basics & Architecture
- Entity integrity constraints specify that primary key values can be composite.
- Entity integrity constraints are specified on individual relations. ✓ Correct answer
- Entity integrity constraints are specified between weak entities.
- When entity integrity rules are enforced, a tuple in one relation that refers to another relation must refer to an existing tuple.
-
Which of the following is drawback of standardization?
Topic: Database Basics & Architecture
- Difficult to understand
- Uniformity
- Lack of uniqueness ✓ Correct answer
- Easy to develop applications
-
Which one of the following is not a part of three-level architecture?
Topic: Database Basics & Architecture
- External level
- Conceptual level
- Internal level
- Physical level ✓ Correct answer
-
Which of the following is INCORRECT about naming entities?
Topic: Database Basics & Architecture
- Singular nouns are used
- Write in capitals
- Organization specific names can be used ✓ Correct answer
- Always use abbreviations as they are convenient
-
_________ is an example of metadata
Topic: Database Basics & Architecture
- Ali
- Address ✓ Correct answer
- Person
- Student
-
Collection of raw facts is called ______.
Topic: Database Basics & Architecture
- Information
- Object
- Output
- Data ✓ Correct answer
-
Major benefits of data sharing is:
Topic: Database Basics & Architecture
- Data of same applications placed at same place.
- Data of same applications placed at different places
- Data of different application places at same place ✓ Correct answer
- Data of different applications stored at placed place
-
The database deals with large amount of data. This property is called
Topic: Database Basics & Architecture
- Database design
- Scalability ✓ Correct answer
- Concurrency
- Robustness
-
Which one of the following is NOT a characteristic of meta data?
Topic: Database Basics & Architecture
- Data about data
- Describes a data dictionary
- Self-describing
- Includes user data ✓ Correct answer
-
Which of the following data model is not record based?
Topic: Database Basics & Architecture
- Hierarchical Data Model
- Network Data model
- Semantic Data model ✓ Correct answer
- Relational Data model
-
The Three levels architecture is useful for __________.
Topic: Database Basics & Architecture
- Arranging the data in an organized manner
- Hiding the details of internal systems ✓ Correct answer
- Breaking the data access restriction
- Storing definitions of the structures
-
Teleprocessing is a sub-type of _____.
Topic: Database Basics & Architecture
- Single user database
- Multi-user database ✓ Correct answer
- File server
- Client server
-
The most widely used conceptual model is the _____ model.
Topic: Database Basics & Architecture
- Implementation
- ER ✓ Correct answer
- Object oriented
- Internal
-
Data Redundancy means
Topic: Database Basics & Architecture
- Security of data
- Duplication of data ✓ Correct answer
- Management of data
- Recovery of data
-
_______________ is the first comprehensive complete database design.
Topic: Database Basics & Architecture
- Logical database design
- Relational database design
- Conceptual database design ✓ Correct answer
- Hierarchical database design
-
How data security can be assured in the database?
Topic: Database Basics & Architecture
- By hiding data from all
- Through concurrent access of users
- By asking users not to share things
- Implementing encryption algorithms ✓ Correct answer
-
Database is a computerized representation of any organization’s flow of ___ and storage of_.
Topic: Database Basics & Architecture
- Data, information
- Details, data
- Data, details
- Information, data ✓ Correct answer
-
A patient can be an outdoor or indoor. Analyze this statement and tell what type of constraint will be applied on patient?
Topic: Database Basics & Architecture
- Total completeness ✓ Correct answer
- Partial completeness
- Total disjoint
- Partial disjoint
-
Which of the following describes the job of a database administrator?
Topic: Database Basics & Architecture
- Development, implementation operation of the physical database
- Creation of the system catalog
- Monitoring and controlling database security and authorization: setting up controls to ensure the quality and integrity of data
- All of the above ✓ Correct answer
-
Which model operates at the lowest level of abstraction?
Topic: Database Basics & Architecture
- External
- Internal
- Physical ✓ Correct answer
- Conceptual
-
In a three-level DBMS architecture, the ______ level interacts directly with the users.
Topic: Database Basics & Architecture
- Internal
- Physical
- External ✓ Correct answer
- Conceptual
-
In three level architecture of the database, which view is called community view of the database?
Topic: Database Basics & Architecture
- Design view
- Internal view
- External view
- Conceptual view ✓ Correct answer
-
The DBMS uses the _____________to access the database at each layer or model.
Topic: Database Basics & Architecture
- Mapping rules
- Data about data
- Data about data
- Data dictionary ✓ Correct answer
-
Internal schema/view defines the ______ of the data.
Topic: Database Basics & Architecture
- Source
- Structure ✓ Correct answer
- Transaction
- Functionality
-
Which is not the function of Database Management System?
Topic: Database Basics & Architecture
- A user accessible Catalog
- Concurrency Control Services
- Failure Response Service ✓ Correct answer
- Support for Data Communication
-
Which of the following is an advantage of using the Traditional File Organization?
Topic: Database Basics & Architecture
- Time consuming
- Data security
- Simplicity ✓ Correct answer
- Efficiency
-
Data inconsistency leads to a number of problems such as ___________.
Topic: Database Basics & Architecture
- Data isolation
- less secure data
- Slow database development
- loss of information and incorrect results ✓ Correct answer
-
A Database System is designed to meet the information needs of __________in an organization.
Topic: Database Basics & Architecture
- Single user
- Multiple users ✓ Correct answer
- Application user
- Database administrator
-
With the help of _________ technique data values with the smaller sized codes can further reduce the space needed by the data for storage in the database.
Topic: Database Basics & Architecture
- Compression ✓ Correct answer
- Expansions
- Negation
- Extension
-
Duplication of data in controlled redundancy is controlled and _______.
Topic: Database Basics & Architecture
- Deliberate ✓ Correct answer
- Necessary
- Precise
- Unintentional
-
Who is responsible for authorizing access to the database, for coordinating and monitoring its use? Select correct option:
Topic: Database Basics & Architecture
- Database Designer
- Database Administrator ✓ Correct answer
- End User
- Application Programmer
-
Which of the following is CORRECT about database management system's languages?
Topic: Database Basics & Architecture
- Data definition languages are used to specify the conceptual schema only.
- Data manipulation languages are used to create the databases.
- Data manipulation languages are used for retrieval, insertion, deletion and modification of data. ✓ Correct answer
- Data definition langauges are only used to update data in the DBMS.
-
_____________ are those languages in which what to do and how to do on the database is required.
Topic: Database Basics & Architecture
- SQL
- Procedural ✓ Correct answer
- Non-procedural
- Relational calculus
-
When data stored onto a magnetic media, it is stored in________.
Topic: Database Basics & Architecture
- Text format
- Numeric from
- Binary format ✓ Correct answer
- Encrypted form
-
Which of the following is called a replacement of the manual file system?
Topic: Database Basics & Architecture
- Recode based system
- File processing system ✓ Correct answer
- Commercial applications
- Computer network system
-
Which of the following database environment causes a network overhead?
Topic: Database Basics & Architecture
- Single user
- File server ✓ Correct answer
- Client server
- Teleprocessing
-
Logical data independency provides independency to change in ________ model.
Topic: Database Basics & Architecture
- External
- Logical
- Conceptual ✓ Correct answer
- Internal
-
Which of the following is NOT a component of a DFD?
Topic: Database Design, DFD & Data Dictionary
- Dataflow
- Datastore
- External entities
- Relationship between external entities ✓ Correct answer
-
Which is the second stage in the database development process?
Topic: Database Design, DFD & Data Dictionary
- Database design
- Preliminary Study
- Physical Design
- Requirement Analysis ✓ Correct answer
-
DFD does not provide us a way to represent ________
Topic: Database Design, DFD & Data Dictionary
- Entities ✓ Correct answer
- Decisions
- Date stores
- Processes
-
Conceptual database design is implemented using a _______.
Topic: Database Design, DFD & Data Dictionary
- Hierarchical data model
- Semantic data model ✓ Correct answer
- Relational data model
- Network data model
-
In case of Context-level Diagram, the system is represented by
Topic: Database Design, DFD & Data Dictionary
- One process atleast
- Two processes atleast
- One process only ✓ Correct answer
- Any number of processes
-
Which of the following tool is used to design conceptual database design?
Topic: Database Design, DFD & Data Dictionary
- SQL
- MS Access
- Oracle
- This model is independent of any tool ✓ Correct answer
-
Cross reference matrix is developed at the ______ stage of the database.
Topic: Database Design, DFD & Data Dictionary
- Analysis ✓ Correct answer
- Designing
- Implementation
- Application
-
Which of the following is a part of a DFD but not included in the ERD?
Topic: Database Design, DFD & Data Dictionary
- The attribute having a single instance
- The external entity having a single instance ✓ Correct answer
- The relationship having a single instance
- The role having a single instance
-
In which stage of the database development process logical design is created?
Topic: Database Design, DFD & Data Dictionary
- Requirement analysis
- Database design ✓ Correct answer
- Physical design
- Implementation
-
In data flow diagram (DFD) ________ is a repository for the storage of the data.
Topic: Database Design, DFD & Data Dictionary
- Process
- Schema
- Data store ✓ Correct answer
- Data dictionary
-
In database development process, proper study of the system is called_________.
Topic: Database Design, DFD & Data Dictionary
- System analysis
- Preliminary Study ✓ Correct answer
- Requirement analysis
- Real word scenario study
-
The outcome of ____________phase is the conceptual database design, which is drawn through E-R model.
Topic: Database Design, DFD & Data Dictionary
- Logical
- Physical
- Analysis ✓ Correct answer
- Conclusion
-
___________ is used to find out that what values or attributes will appear in which reports, for this purpose the major item names are written in the row wise order and the reports which will be generated will be written in column wise order.
Topic: Database Design, DFD & Data Dictionary
- Context Diagram
- Data Flow Diagram
- Cross Reference Matrix ✓ Correct answer
- Entity Relationship Diagram
-
Conceptual database design, expressed in E-R data model can be implemented using any _______.
Topic: Database Design, DFD & Data Dictionary
- Software
- Data model
- Operating system
- Database Management System (DBMS) ✓ Correct answer
-
______________ is the next stage of conceptual database design.
Topic: Database Design, DFD & Data Dictionary
- Testing
- Coding
- Deployment
- Logical database design ✓ Correct answer
-
In cross reference matrix attributes are specified on ________
Topic: Database Design, DFD & Data Dictionary
- X axis ✓ Correct answer
- Y axis
- Z axis
- None of the above
-
Free standing data dictionary is created by
Topic: Database Design, DFD & Data Dictionary
- DFD
- Database
- CASE tools ✓ Correct answer
- Cross reference matrix
-
Which levels are mostly used for detailed DFD?
Topic: Database Design, DFD & Data Dictionary
- Level-0, Level-1 ✓ Correct answer
- Level-1, Level-2
- Level-2, Level-3
- Level-3, Level-4
-
Which of the following is NOT a feature of Context DFD?
Topic: Database Design, DFD & Data Dictionary
- one process (which represents the entire system)
- all sources/sinks (external entities)
- data flows linking the process to the sources and sinks (external entities)
- sub-processes (which explain and decomposed the major process into small processes) ✓ Correct answer
-
In ___________ database design, an appropriate data model is chosen, and it becomes tool ________.
Topic: Database Design, DFD & Data Dictionary
- Logical, independent
- Logical, dependent ✓ Correct answer
- Conceptual, dependent
- Conceptual, independent
-
_________ are the structure defined for placing data in the attributes while designing physical design of database.
Topic: Database Design, DFD & Data Dictionary
- Objects
- Variables
- Attributes
- Data types ✓ Correct answer
-
Which of the following is a correct way to implement one-to-many relationship while designing tables?
Topic: ER Model & Diagrams
- by splitting the data into two tables with primary key and foreign key relationships. ✓ Correct answer
- using a junction table with the keys from both the tables forming the composite primary key of the junction table.
- by splitting each table into three
- as a single table and rarely as two tables with primary and foreign key relationships.
-
Structural constraints of a relationship type refer to
Topic: ER Model & Diagrams
- identifying the owner entity type relevant to a given entity type
- whether the existence of an entity depends on it being related to another entity via the relationship type. ✓ Correct answer
- the role that a participating entity from the entity type plays in each relationship instance.
- the constraints applicable in granting access to tables, columns and views in a database schema.
-
The Entity Relation Model models
Topic: ER Model & Diagrams
- Entities, Relationships and Processes
- Entities and Relationships ✓ Correct answer
- Relationships
- Entities
-
An entity can be logically connected to another by defining a ____.
Topic: ER Model & Diagrams
- hyperlink
- common attribute ✓ Correct answer
- primary key
- superkey
-
The ____ constraint specifies whether each entity supertype occurrence must also be a member of at least one subtype.
Topic: ER Model & Diagrams
- specialization
- uniqueness
- inheritance
- completeness ✓ Correct answer
-
A ____ relationship exists when an association is maintained within a single entity.
Topic: ER Model & Diagrams
- unary ✓ Correct answer
- ternary
- binary
- weak
-
If many instances of the “Book” entity are associated with the many instances of the “Student” entity, then the relationship between them is:
Topic: ER Model & Diagrams
- One to one
- One to many
- Many to many ✓ Correct answer
- Many to one
-
Any combination of attributes with super key is _______.
Topic: ER Model & Diagrams
- Primary key
- Foreign key
- Super key ✓ Correct answer
- Candidate key
-
Binary relationships are those, which are established between
Topic: ER Model & Diagrams
- One entity type
- Two entity type ✓ Correct answer
- Three entity type
- Unlimited entities
-
_________ are called participants, when enrolled in a relationship.
Topic: ER Model & Diagrams
- Attributes
- Relations
- Entities ✓ Correct answer
- Keys
-
Consider the two attributes “CNIC_NO” and “Registration_NO”. Both the attributes can be used for the unique identification. Now if the user selects the “CNIC_NO” as primary key, then “Registration_NO” is a ____ key.
Topic: ER Model & Diagrams
- Foreign
- Secondary
- Primary
- Alternative ✓ Correct answer
-
The basic purpose of Diamond in ER diagram is to show the ________________.
Topic: ER Model & Diagrams
- Attributes
- Relationships ✓ Correct answer
- Composite attribute
- Entity set
-
By default, a non-key attribute in a relation can have __________________ value.
Topic: ER Model & Diagrams
- Binary
- Null ✓ Correct answer
- Character
- Integer
-
In an ERD, the focus is on the ____ and the relationships between them.
Topic: ER Model & Diagrams
- Attributes
- Entities ✓ Correct answer
- Keys
- Indexes
-
Student and book are two entities, what is the cardinality between the two?
Topic: ER Model & Diagrams
- Many to one
- One to many
- Many to many ✓ Correct answer
- One to one
-
Unary relationship involves a single entity it is also called _______.
Topic: ER Model & Diagrams
- One to one relationship
- One to many relationship
- Many to many relationship
- Recursive relationship ✓ Correct answer
-
The attributes whose value is not stored in a database is known as ________ attribute.
Topic: ER Model & Diagrams
- Stored
- Single value
- Multi value
- Derived ✓ Correct answer
-
If a single instance of “student” is associated with the many instances of the “subjects” entity, then the relationship between them is:
Topic: ER Model & Diagrams
- One to one
- One to many ✓ Correct answer
- Many to many
- Many to one
-
Which of the following is NOT an entity?
Topic: ER Model & Diagrams
- Employee
- Hobby ✓ Correct answer
- Student
- Playground
-
The entity that is NOT dependent on any other entity for its existence is known as _________ entity.
Topic: ER Model & Diagrams
- Weak
- Strong ✓ Correct answer
- Derived
- Dependent
-
Which of the following clarify the semantics of a relationship?
Topic: ER Model & Diagrams
- Entity
- Roles ✓ Correct answer
- Relationship set
- Participants
-
Suppose a relation has five columns and ten rows, select the correct option to identify cardinality of relation.
Topic: ER Model & Diagrams
- Five
- Ten ✓ Correct answer
- Fifteen
- Twenty
-
An attribute that is the collection of some other attribute(s) is known as ___________ attribute.
Topic: ER Model & Diagrams
- Multi-valued
- Single-valued
- No-valued
- Composite ✓ Correct answer
-
The __________ determines that the link between two entities is optional or mandatory.
Topic: ER Model & Diagrams
- Maximum cardinality
- Minimum cardinality ✓ Correct answer
- Maximum degree
- Minimum degree
-
The process of defining one or more subtypes of a super type and forming relationships is known as
Topic: ER Model & Diagrams
- Aggregation.
- Generalization
- Specialization ✓ Correct answer
- Selecting classes.
-
The attribute HOBBY can have more than one values in ERD. The HOBBY is a _________ attribute.
Topic: ER Model & Diagrams
- Derived
- Composite
- Multi valued ✓ Correct answer
- Single-valued
-
A relationship that involves three entities called __________.
Topic: ER Model & Diagrams
- N-ary relationship
- Unary relationship
- Binary relationship
- Ternary relationship ✓ Correct answer
-
While mapping many-to-many relationship ______ table(s) are created
Topic: ER Model & Diagrams
- One
- Two
- Three ✓ Correct answer
- Five
-
In student entity which of the following is the best example of multivalued attribute?
Topic: ER Model & Diagrams
- Student id
- CNIC number
- Email address ✓ Correct answer
- Registration number
-
In “one to many” cardinality one instance of a relation is mapped with _______.
Topic: ER Model & Diagrams
- Many instances of second entity type ✓ Correct answer
- One instance of second entity type
- Primary key of second relation
- Foreign key of second relation
-
Suppose, we have two entities “shape” and “triangle”, then which of the following is a correct statement?
Topic: ER Model & Diagrams
- Shape is a super type entity and triangle is a sub type entity ✓ Correct answer
- Shape is a sub type entity and triangle is a super type entity
- Shape and triangle both are super type entities
- Shape and triangle both are sub type entities
-
When one entity instance depends on another entity for its existence, then it is called _____
Topic: ER Model & Diagrams
- Existence dependency ✓ Correct answer
- Identifier dependency
- Referential dependency
- Acceptance dependency
-
If an entity “motor cycle” is associated with at most one “driver”, then the relationship between these two entities is:
Topic: ER Model & Diagrams
- One to one ✓ Correct answer
- One to many
- Many to many
- Many to one
-
In a conceptual model for a university, what type of relationship exists between Grade and Student entities?
Topic: ER Model & Diagrams
- 1:1
- 1:M ✓ Correct answer
- M:M
- Ternary
-
Suppose that “Program” is an entity which represents different courses are being offered by an institute, like MCS. BCS etc. Following are the major attributes of this entity. Identify the attribute which can be used as primary key.
Topic: ER Model & Diagrams
- Max-Duration
- Program-Code ✓ Correct answer
- Program-level
- No-of-Semesters
-
Which of the following might be represented with a single-valued attribute?
Topic: ER Model & Diagrams
- Person's hobby
- Person's phone number
- Computer’s processor speed ✓ Correct answer
- Employee's educational background
-
Consider an employee is allotted an organization vehicle, which might solely be driven by that employee. What kind of relationship exists between employee and company?
Topic: ER Model & Diagrams
- One to many
- Many to many
- One to one ✓ Correct answer
- Many to one
-
Suppose we have two entities department and University.Which type of dependency exists between these two entities?
Topic: ER Model & Diagrams
- Integral
- Identifier
- Existence ✓ Correct answer
- Referential
-
The entity relationship diagram is used to graphically represent the ______ database model.
Topic: ER Model & Diagrams
- Condensed
- Physical
- Logical
- Conceptual ✓ Correct answer
-
If an instance of an entity can exists without being linked with an instance of another entity then the minimum cardinality has to be __________.
Topic: ER Model & Diagrams
- Zero ✓ Correct answer
- One
- Two
- Compulsory
-
Which of the following is a completeness constraint?
Topic: ER Model & Diagrams
- Total generalization Constraint
- Hybrid completeness Constraint
- Partial Completeness Constraint ✓ Correct answer
- Partial generalization Constraint
-
An entity type is
Topic: ER Model & Diagrams
- Defined when the database is actually constructed
- A specific type such as an integer, text, date, logical etc.
- A coherent set of similar objects that we want to store data on (e.g. STUDENTS, COURSE, CAR) ✓ Correct answer
- Defined by the database designer
-
Making a change to the conceptual schema of a database but not affecting the existing external schemas is an example of
Topic: Relational Model & Keys
- Physical data independence.
- Concurrency control.
- Logical data independence. ✓ Correct answer
- Functional dependency
-
Which of the following is true about relational schema?
Topic: Relational Model & Keys
- The sequence of columns is significant
- The sequence of rows is significant.
- Contains only derived attributes.
- Values are atomic. ✓ Correct answer
-
Which of the following is not true about relational tables?
Topic: Relational Model & Keys
- Column values are of the same kind.
- Each row is unique.
- Each column must have a unique name.
- The sequence of rows is significant. ✓ Correct answer
-
Candidate keys which are not selected as primary key are called ___
Topic: Relational Model & Keys
- Secondary keys
- Foreign keys
- Alternate keys ✓ Correct answer
- Composite keys
-
Which of the following most certainly implies the need for an entire table to implement?
Topic: Relational Model & Keys
- A binary relationship
- A ternary relationship ✓ Correct answer
- A recursive relationship
- An identifying relationship
-
Which of the following is a feature of PRIMARY KEY constraint?
Topic: Relational Model & Keys
- unique identifier for a row within a database table. ✓ Correct answer
- allow any actions that would destroy links between tables
- limit the values that can be placed in a column.
- enforces that the column will only accept null values.
-
If K is a foreign key in relation R1, then
Topic: Relational Model & Keys
- every tuple of R1 has a distinct value for K.
- K cannot have a null value for tuples in R1.
- K is a key for some other relation. ✓ Correct answer
- K is a primary key for R1.
-
There are __________ basic properties of the database relations.
Topic: Relational Model & Keys
- Four
- Three
- Six ✓ Correct answer
- Two
-
Within a table, each primary key value ______.
Topic: Relational Model & Keys
- Is a minimal super key
- Is always the first field in each table
- Must be numeric
- Must be unique ✓ Correct answer
-
Consider thy key “CNIC, Name” and choose the best option that describes the key most effectively.
Topic: Relational Model & Keys
- The given key is a super key and alternate key.
- The given key is not a super key but a candidate key.
- The given key is a super key and candidate key as well.
- The given key is a super key but not a candidate key. ✓ Correct answer
-
Relational data model is widely accepted due to its mathematically proven foundation and its ______________.
Topic: Relational Model & Keys
- Complexity
- Simplicity ✓ Correct answer
- Hierarchical structure
- Traditional structure
-
___________ states that in a relation no attributes of a primary key (PK) can have a null value.
Topic: Relational Model & Keys
- Referential integrity constraint
- Null constraint
- Domain constraint
- Entity integrity constraint ✓ Correct answer
-
In Relational Data Model, the ________ of a relation is the number of columns in that relation.
Topic: Relational Model & Keys
- Domain
- Degree ✓ Correct answer
- Cardinality
- Constraint
-
A key which consist of two or more attributes is called______.
Topic: Relational Model & Keys
- Primary key
- Candidate key
- Secondary key
- Composite key ✓ Correct answer
-
Which of the following is NOT the type of key?
Topic: Relational Model & Keys
- Super key
- Primary key
- Derived key ✓ Correct answer
- Candidate key
-
In an employee entity which of the following attribute will work as a primary key?
Topic: Relational Model & Keys
- Salary
- Zipcode
- Address
- Employee id ✓ Correct answer
-
In Relational Data model, an attribute is a __________ in a relation.
Topic: Relational Model & Keys
- Row
- Value
- Tuples
- Column ✓ Correct answer
-
Which of the following constraint states that if a foreign key exists in a relation, either the foreign key value must match the primary key value of some tuple in its home relation or the foreign key value must be completely null?
Topic: Relational Model & Keys
- Default
- Domain
- Entity Integrity
- Referential integrity ✓ Correct answer
-
Which of the following data model has the following components? 1. Construct (Tables) 2. Manipulation language (SQL) 3. Integrity constraints?
Topic: Relational Model & Keys
- Semantic
- Relational ✓ Correct answer
- Conceptual
- Entity Relationship
-
An attribute in a relation is a foreign key if the _______ key from one relation is used as an attribute in that relation.
Topic: Relational Model & Keys
- Sub
- Soper
- Primary ✓ Correct answer
- Candidate
-
Each table must have a _____ key.
Topic: Relational Model & Keys
- Primary ✓ Correct answer
- Secondary
- Logical
- Foreign
-
Which of the following is true for the relational model?
Topic: Relational Model & Keys
- Degree of a relation is the number of rows in a relation.
- Null value is a blank or zero value given to an attribute value when its value is inapplicable or its value is unknown.
- Complex key is a key consisting of more than one attribute.
- Constraint is a rule that restricts the values in a database. ✓ Correct answer
-
Identify the constraint that limits the values that can be placed in a column.
Topic: Relational Model & Keys
- NOT NULL
- CHECK ✓ Correct answer
- FOREIGN KEY
- UNIQUE
-
Consider the following statements. A. An entity integrity constraint states that no primary key value can be null. B. A referential integrity constraint is specified between two relations. C. A foreign key cannot be used to refer to its own relation. Identify which of the above statements is/are correct.
Topic: Relational Model & Keys
- Only A ✓ Correct answer
- Only B
- Only B and C
- Only A and B
-
RDM is simple there is just one structure and that is_____________.
Topic: Relational Model & Keys
- Attributes
- E-R model
- Data model
- A Relation or a table ✓ Correct answer
-
The RDM(Relational Data Model) is popular due to its two major strengths and they are__________.
Topic: Relational Model & Keys
- Simplicity/ Weak Mathematical Foundation
- Complexity/Easy Mathematical Foundation
- Simplicity/ Strong Mathematical Foundation ✓ Correct answer
- Complexity/ Weak Mathematical Foundation
-
The primary key of EMP table is ______ whereas foreign key of EMP table is _______.
Topic: Relational Model & Keys
- depId, empId
- empId, depId ✓ Correct answer
- depId, empName
- empName, depId
-
A primary key is an attribute (or set of attributes) that has been chosen for an entity, whose values are used to uniquely identify a particular instance of an entity. True or false?
Topic: Relational Model & Keys
- True ✓ Correct answer
- False
- Partially True
- None of the given
-
A relational database system is based on the concept(s) of:
Topic: Relational Model & Keys
- A network of data records
- Nested tables
- Tables, rows and columns ✓ Correct answer
- A tree-like structure of datas
-
Identify the operation which is NOT one of the parts of the five basic set operations in relational algebra?
Topic: Relational Algebra & Cartesian Product
- Join ✓ Correct answer
- Union
- Cartesian Product
- Set Difference
-
In _______ join, only selected rows of a relation are made cross product with second relation.
Topic: Relational Algebra & Cartesian Product
- Normal
- Theta ✓ Correct answer
- Outer
- Semi
-
In _______ join common attributes appear twice in the output with selected rows.
Topic: Relational Algebra & Cartesian Product
- Normal join
- Semi join
- Natural join
- Equi join ✓ Correct answer
-
Unary operations involves
Topic: Relational Algebra & Cartesian Product
- Only one relation ✓ Correct answer
- Only two relations
- More than two relations
- Not more than five relations
-
_________ is same as equi-join with a slight difference.
Topic: Relational Algebra & Cartesian Product
- Natural join ✓ Correct answer
- Semi join
- Outer join
- Theta join
-
R × θ S, if R and S are relations and θ is a __________.
Topic: Relational Algebra & Cartesian Product
- Table Name
- Attributes
- Primary Key
- Condition ✓ Correct answer
-
The select operation works horizontally on the table, on the other hand the ___________operates on a single table vertically.
Topic: Relational Algebra & Cartesian Product
- Binary operator
- Project operator ✓ Correct answer
- Join operator
- Select operator
-
Which of the following concepts is applicable with respect to 3NF?
Topic: Normalization & Functional Dependencies
- Full functional dependency
- Any kind of dependency
- Transitive dependency ✓ Correct answer
- Partial functional dependency
-
Identify the correct statement with respect to normalization.
Topic: Normalization & Functional Dependencies
- Normalization is a formal technique that can be used only at the starting phase of the database design.
- Normalization can be used as a top-down standalone database design technique. ✓ Correct answer
- The process of normalization through decomposition must achieve the lossless join property at any cost whereas the dependency reservation property is sometimes sacrificed.
- The process of normalization through decomposition must achieve the dependency reservation property at any cost whereas the lossless join property is sometimes sacrificed.
-
Which of the following concepts is applicable with respect to 2NF?
Topic: Normalization & Functional Dependencies
- Full functional dependency ✓ Correct answer
- Any kind of dependency
- Transitive dependency
- Non-transitive dependency
-
Which of the following enforces a relation into 1st normal form?
Topic: Normalization & Functional Dependencies
- The domain of attribute must include only atomic values. ✓ Correct answer
- Every non-key attribute is fully functionally dependent on primary key
- non-key attribute is non-transitively dependent on primary key.
- Every non-key attribute is partially dependent on super key
-
A 3 NF relation is converted to BCNF by
Topic: Normalization & Functional Dependencies
- Removing composite keys
- Removing multivalued dependencies
- Dependent attributes of overlapping composite keys are put in a separate relation ✓ Correct answer
- Dependent non-key attributes are put in a separate table
-
A → BC and A → B, then A → C follow ______ inference rule.
Topic: Normalization & Functional Dependencies
- Augmentation
- Transitivity
- Projectivity ✓ Correct answer
- Additivity
-
A database state where deletion of the information about the student record deletes the course information as well is called __________.
Topic: Normalization & Functional Dependencies
- Insertion anomaly
- Updation anomaly
- Redundancy
- Deletion anomaly ✓ Correct answer
-
If B is a subset of A, then A→ B. This also implies that A → A always holds. The inference Rule applies is:
Topic: Normalization & Functional Dependencies
- Additivity
- Projectivity
- Decomposition
- Reflexivity ✓ Correct answer
-
If we have A B then AC → BC The inference Rule applies is:
Topic: Normalization & Functional Dependencies
- Union
- Decomposition
- Augmentation ✓ Correct answer
- Reflexivity
-
If A→ B and CB → D, then AC → D. 1. The above rule follows _____________ inference rule.?
Topic: Normalization & Functional Dependencies
- Additivity
- Projectivity
- Decomposition
- Pseudo transitivity ✓ Correct answer
-
The following is an of _______ inference rule. If stId –>prName and prName –> credits then stId –> credits
Topic: Normalization & Functional Dependencies
- Augmentation
- Transitivity ✓ Correct answer
- Projectivity
- Additivity
-
Functional dependencies under interference rule reflexivity are called ________ dependencies.
Topic: Normalization & Functional Dependencies
- Augmentation
- Transitivity
- Projectivity
- Trivial ✓ Correct answer
-
Functional dependency between two attributes or sets of attributes i.e. Q and P is represented as __________.
Topic: Normalization & Functional Dependencies
- Q → P ✓ Correct answer
- Q P
- Q * P
- Q + P
-
Normalization is a process of restricting a relation to
Topic: Normalization & Functional Dependencies
- Minimize duplication of data in a database ✓ Correct answer
- Maximize duplication of data to ensure reliability
- Make if of uniform size
- Allow addition of data
-
After moving the determined columns from the original table to the new table while converting to 2NF, the determinate becomes the _______ of the new table.
Topic: Normalization & Functional Dependencies
- Primary key ✓ Correct answer
- Foreign key
- Secondary key
- Composite key
-
Which of the following Normal Form deals with multi values dependency?
Topic: Normalization & Functional Dependencies
- 2NF
- 3NF
- 4NF ✓ Correct answer
- 5NF