0% found this document useful (0 votes)
41 views12 pages

Question Bank

Uploaded by

harsh1234mathur
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)
41 views12 pages

Question Bank

Uploaded by

harsh1234mathur
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/ 12

BCA 2ND YEAR

DBMS QUESTION BANK

Q1) . What is DBMS?


a) DBMS is a collection of queries
b) DBMS is a high-level language
c) DBMS is a programming language
d) DBMS stores, modifies and retrieves data
Answer: d
Q2) Who created the first DBMS?
a) Edgar Frank Codd
b) Charles Bachman
c) Charles Babbage
d) Sharon B. Codd
Answer: b
Q3) In which of the following formats data is stored in the database management system?
a) Image
b) Text
c) Table
d) Graph
Answer: c
Explanation: The data is stored in a table format intended to manage the storage of data and
manipulate stored data to generate information
Q4) . Which of the following is not a type of database?
a) Hierarchical
b) Network
c) Distributed
d) Decentralized
Answer: d
Q5) . Which of the following is a function of the DBMS?
a) Storing data
b) Providing multi-users access control
c) Data Integrity
d) All of the above
Answer: d
Q6) Which of the following is known as a set of entities of the same type that share same
properties, or attributes?
a) Relation set
b) Tuples
c) Entity set
d) Entity Relation model
Answer: c
Q7) What is information about data called?
a) Hyper data
b) Tera data
c) Meta data
d) Relations
Answer: c
Q8) . _____________ is a hardware component that is most important for the operation of a
database management system.
a) Microphone
b) High speed, large capacity disk to store data
c) High-resolution video display
d) Printer
Answer: b
Q9) The ability to query data, as well as insert, delete, and alter tuples, is offered by
____________
a) TCL (Transaction Control Language)
b) DCL (Data Control Language)
c) DDL (Data Definition Langauge)
d) DML (Data Manipulation Langauge)
Answer: d
Q10) . ______________ is a set of one or more attributes taken collectively to uniquely identify
a record.
a) Primary Key
b) Foreign key
c) Super key
d) Candidate key
Answer: c
Q11) . _________________ operations do not preserve non-matched tuples.
a) Left outer join
b) Inner join
c) Natural join
d) Right outer join
Answer: b
Q12) Which forms have a relation that contains information about a single entity?
a) 4NF
b) 2NF
c) 5NF
d) 3NF
Answer: d
Q13) . _______ indicates the maximum number of entities that can be involved in a relationship.
a) Greater Entity Count
b) Minimum cardinality
c) Maximum cardinality
d) ERD
Answer: c
Q14) After groups have been established, SQL applies predicates in the ___________ clause,
allowing aggregate functions to be used.
a) Where
b) Having
c) Group by
d) With
Answer: b
Q15) Which of the following is not the utility of DBMS?
a) Backup
b) Data Loading
c) Process Organization
d) File organization
Answer: c
Q16) ______ resembles Create view.
a) Create table . . . as
b) Create view as
c) Create table . . .like
d) With data
Answer: a
Q17) Which of the following is the best way to represent the attributes in a large db?
a) Dot representation
b) Concatenation
c) Relational-and
d) All of the mentioned
Answer: b
Q18) Which of the following is the subset of SQL commands used to manipulate Oracle
Structures, including tables?
a) Data Described Language
b) Data Retrieval Language
c) Data Manipulation Language
d) Data Definition Language
Answer: d
Q19) . __________ command is used in SQL to issue multiple CREATE TABLE, CREATE
VIEW and GRANT statements in a single transaction.
a) CREATE CLUSTER
b) CREATE PACKAGE
c) CREATE SCHEMA
d) All of the mentioned
Answer: c
Q20) Which of the following is known as the process of viewing cross-tab with a fixed value of
one attribute?
a) Dicing
b) Pivoting
c) Slicing
d) Both Pivoting and Dicing
Answer: c
Q21) . The oldest DB model is _______________
a) Network
b) Physical
c) Hierarchical
d) Relational

Answer: c
Explanation: Hierarchical database model was developed by IBM in the early 1960s. It had
Parent-Child Relationship
Q22) . Which of the following establishes a top-to-bottom relationship among the items?
a) Relational schema
b) Network schema
c) Hierarchical schema
d) All of the mentioned
Answer: c
Q23) The logical design, and the snapshot of the data at a given instant in time is known as?
a) Instance & Relation
b) Relation & Schema
c) Domain & Schema
d) Schema & Instance
Answer: d
Q24) . What is an RDBMS?
a) Database that stores data elements that are not linked
b) Database that accesses data elements that are not linked
c) Database that stores and allows access to data elements that are linked
d) None of the mentioned
Answer: c
Q25) . What is a relation in RDBMS?
a) Key
b) Table
c) Row
d) Data Types
Answer: b
Q26) . Which of the following systems use RDMS?
a) Oracle
b) Microsoft SQLServer
c) IBM
d) All of the mentioned
Answer: d
Q27) Which of the following constraints RDBS doesn’t check before creating the tables?
a) Not null
b) Primary keys
c) Data Structure
d) Data integrity
Answer: c
Q28) A _________ consists of a sequence of query and/or update statements.
a) Transaction
b) Commit
c) Rollback
d) Flashback
Answer: a
29). Which of the following makes the transaction permanent in the database?
a) View
b) Commit
c) Rollback
d) Flashback
Answer: b
30) Consider the following action:

TRANSACTION.....
Commit;
ROLLBACK;

What does Rollback do?


a) Undoes the transactions before commit
b) Clears all transactions
c) Redoes the transactions before commit
d) No action
Answer: d
31) In order to maintain the consistency during transactions, database provides
a) Commit
b) Atomic
c) Flashback
d) Retain
Answer: b
32) ______ will undo all statements up to commit?
a) Transaction
b) Flashback
c) Rollback
d) Abort
Answer: c
33) A transaction may not always complete its execution successfully. Such a transaction
is termed
a) Aborted
b) Terminated
c) Closed
d) All of the mentioned
Answer: a
34) The name of the transaction file shall be provided by the operator and the file that
contains the edited transactions ready for execution shall be called
a) Batch. Exe
b) Trans. Exe
c) Opt. Exe
d) Edit.Exe
Answer: c
35) _______ means that data used during the execution of a transaction cannot be used by
a second transaction until the first one is completed.
a) Serializability
b) Atomicity
c) Isolation
d) Time stamping
Answer: c
36) Which of the following is not a state in transaction?
a) Active
b) Terminated
c) Aborted
d) Partially committed
Answer: b
37) . In the ___________ scheme, a transaction that wants to update the database first
creates a complete copy of the database.
a) Shadow copy
b) Shadow Paging
c) Update log records
d) All of the mentioned
Answer: a
38) In the __________ phase, the system replays updates of all transactions by scanning
the log forward from the last checkpoint.
a) Repeating
b) Redo
c) Replay
d) Undo
Answer: b
39) A special redo-only log record < Ti, Xj, V1> is written to the log, where V1 is the value
being restored to data item Xj during the rollback. These log records are sometimes called
a) Log records
b) Records
c) Compensation log records
d) Compensation redo records
Answer: c
40) The actions which are played in the order while recording it is called ______________
history.
a) Repeating
b) Redo
c) Replay
d) Undo
Answer: a
41) We say that a transaction has been ________ when its commit log record has been
output to stable storage.
a) Locked
b) Completed
c) Committed
d) Released
Answer: c
42) A __________ checkpoint is a checkpoint where transactions are allowed to perform
updates even while buffer blocks are being written out.
a) Temporary
b) Fuzzy
c) Permanent
d) Recovery
Answer: b
43) The SQL LIKE operator is used in which of the following clause?
a) Having
b) Select
c) Where
d) Group by
Answer: c
44) Which of the following SQL statement selects only unique values from ‘section’ column
of table ‘school’?
a) SELECT section FROM school;
b) SELECT DISTINCT section FROM school;
c) SELECT * FROM school;
d) SELECT ALL section FROM school;
Answer: b
45) Which of the following statement is true about views in SQL?
a) We can delete but not insert rows in a view
b) We cannot insert and delete rows in a view
c) We can insert but not delete rows in a view
d) We can insert and delete rows in a view
Answer: d
46) Which character is used to separate SQL statements in database systems?
a) :
b) %
c) _
d) ;
Answer: d
47) Which of the following tasks CANNOT be accomplished using SQL?
a) Creating and modifying database structures
b) Writing complex algorithms for data analysis
c) Retrieving specific data from a database
d) Adding new data to a database
Answer: b
48) Which of the following operators is used to compare two values in SQL?
a) +
b) =
c) <>
d) &
Answer: c
49) A table on the many side of a one to many or many to many relationship must:
a) Be in Second Normal Form (2NF)
b) Be in Third Normal Form (3NF)
c) Have a single attribute key
d) Have a composite key
Answer: d
50) Functional Dependencies are the types of constraints that are based on______
a) Key
b) Key revisited
c) Superset key
d) None of the mentioned
Answer: a
51) Which forms has a relation that possesses data about an individual entity:
a) 2NF
b) 3NF
c) 4NF
d) 5NF
Answer: c
52) Empdt1(empcode, name, street, city, state, pincode).

For any pincode, there is only one city and state. Also, for given street, city and state, there
is just one pincode. In normalization terms, empdt1 is a relation in
a) 1 NF only
b) 2 NF and hence also in 1 NF
c) 3NF and hence also in 2NF and 1NF
d) BCNF and hence also in 3NF, 2NF and 1NF
Answer: b
53) Which of the normal form is based on multivalued dependencies?
a) First
b) Second
c) Third
d) Fourth
Answer: d
54) If a multivalued dependency holds and is not implied by the corresponding functional
dependency, it usually arises from one of the following sources.
a) A many-to-many relationship set
b) A multivalued attribute of an entity set
c) A one-to-many relationship set
d) Both A many-to-many relationship set and A multivalued attribute of an entity set
Answer: d
55) Fifth Normal form is concerned with
a) Functional dependency
b) Multivalued dependency
c) Join dependency
d) Domain-key
Answer: c
56) In 2NF
a) No functional dependencies (FDs) exist
b) No multivalued dependencies (MVDs) exist
c) No partial FDs exist
d) No partial MVDs exist
Answer: c
57) Which of the following is an operation of transactions?

A. Read
B. Write
C. Commit
D. All of the above

Answer: D) All of the above

58) X is read from a database and stored in a buffer in main


memory with the ___ operation.

A. Read
B. Write
C. Commit
D. Rollback

Answer: A) Read

59) ___ is used to permanently save the work.

A. Read
B. Write
C. Commit
D. Rollback

Answer: C) Commit

60) How many properties of transactions are there?

A. 4
B. 5
C. 6
D. 7

Answer: A) 4

61) What is TRUE about atomicity?

A. The transaction cannot be partially completed, since there is no


midway.
B. In each transaction, either the entire transaction is executed or it
is not.
C. Both A and B
D. None of the above

Answer: C) Both A and B

62) The reliability property of a DBMS is managed by the ___


subsystem.

A. Recovery
B. Reliability
C. Property
D. Database

Answer: A) Recovery

63) A durable transaction is one that makes ___ changes.

A. Permanent
B. Temporary
C. Basic
D. Advanced

Answer: A) Permanent

64) The deadlock state can be changed back to stable state by using _____________
statement.
a) Commit
b) Rollback
c) Savepoint
d) Deadlock
Answer: b
65) What are the ways of dealing with deadlock?
a) Deadlock prevention
b) Deadlock recovery
c) Deadlock detection
d) All of the mentioned
Answer: d
66) A deadlock exists in the system if and only if the wait-for graph contains a ___________
a) Cycle
b) Direction
c) Bi-direction
d) Rotation
Answer: a
67) Suppose the Authority want to include a new instructor for the title Neuroscience what
command should be inserted ?
a) Insert into instructor values(12111,Emma,NeuroScience,200000);
b) Insert into course values(12111,Introduction,NeuroScience,2);
c)

Insert into instructor values(12111,Emma,Biology,200000);

Insert into course values(BIO-112,Introduction to Neuro


Science,NeuroScience,2);

d) Insert into course values(12111,Emma,NeuroScience,200000);


Answer: c
68) .

SELECT DISTINCT T.name


FROM instructor AS T, instructor AS S
WHERE T.salary > S.salary AND S.dept name = ’Comp.Sci.’;

What will be displayed as the value of name for the above query?
a) Hayley
b) Jackson
c) Hayley and Crick
d) Crick
Answer: d
69) .

SELECT Name
FROM instructor
WHERE salary > SOME (SELECT salary FROM instructor WHERE dept_name =
'Comp.Sci.');

How many rows are selected ?


a) 3
b) 4
c) 2
d) 1
Answer: b
70) Which function is used to identify the title with Least scope?
a) Min(Credits)
b) Max(Credits)
c) Min(title)
d) Min(Salary)
Answer: a
71) Remote backup system must be _________ with the primary site.
a) Synchronised
b) Separated
c) Connected
d) Detached but related
Answer: a
72) The simplest way of transferring control is for the old primary to receive __________
from the old backup site.
a) Undo logs
b) Redo Logs
c) Primary Logs
d) All of the mentioned
Answer: c
73) Which kind of failure loses its data in head crash or failure during a transfer operation.
a) Transaction failure
b) System crash
c) Disk failure
d) All of the mentioned
Answer: c
74) Which of the following causes system to crash
a) Bug in software
b) Loss of volatile data
c) Hardware malfunction
d) All of the mentioned
Answer: d
75) Constraint checking can be disabled in existing _______________ and _____________
constraints so that any data you modify or add to the table is not checked against the
constraint.
a) CHECK, FOREIGN KEY
b) DELETE, FOREIGN KEY
c) CHECK, PRIMARY KEY
d) PRIMARY KEY, FOREIGN KEY
Answer: a

You might also like