Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

DBMS MCQ

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

S. E.

SOCIETY'S
S.N.B.P. COLLEGE OF ARTS, COMMERCE, SCIENCE & MANAGEMENT STUDIES
MORWADI PIMPRI--18

Subject CA-104 DBMS


Ans Key
1. A clustering index is defined on the fields which are of type A
A. non-key and ordering B. non-key and non ordering
C. Key and ordering D. Key and non-ordering
2. A collection of interrelated records is called a A
A. Database B. Spreadsheet C. Management information systemD. Text file
3. 1 character= D
A. 2 byte B 4 byte C 8 byte D 1byte
4. ........ is a data structure that organizes data records on disk to optimize certain file operations A
A. index B. file C. record D. data
5. What is the full form of DBMS? B
A. Data of Binary Management System
B. Database Management System
C. Database Management Service
D. Data Backup Management System
6. A collection of related record i s called ................ A
A. file B. record C. byte D. field
7. Which of the following file operation modifies the file? * C
A. insert B. delete C. modify D. all
8. A unit of storage that can store one or more records in a hash file organization is denoted as A
A. BucketsB. Disk pages C. Blocks D. Nodes
9. The file organization which allows us to read records that would satisfy C
the join condition by using one block read is ....
A. Heap file organization B. Sequential file organization
C. Clustering file organization D. Hash file organization
10. The highest level in the hierarchy of data organization is called B
A. Data bank B. Data base C. Data file D. Data record
11. In which of the following formats data is stored in the database management system? C
A. Image B. Text C. Table D. Graph
12. Which of the following is known as a set of entities of the same type C
that share same properties, or attributes?
A. Relation set B. Tuples C. Entity set D. Entity Relation model
13. In architecture of database system external level is the D
A. physical level B. Conceptual level C. logical level D. View level
14. .......... means hiding the implementation details from end users A
A. Data Abstraction B. Data independence C. Specialization D. None
15. ............... is the process of combining information on a object so that B
the higher level object can be abstracted
A. Specialization B. Aggregation C. Generalization D. Independence
16.Which of the following is not true of the traditional approach to information processing? A
A.There is common sharing of data among the various applications
B. It is file-oriented
C. Programs are dependent on the files D. It is inflexible
17. An entity set that does not have sufficient attributes to form a primary key is a B
A. Strong entity set B. Weak entity set
C. simple entity set D. Primary entity set
18. In Hierarchical model records are organized as D
A. Graph B. Link C. List D. Tree
19. In ER diagram attributes are represented by B
A. rectangle B. ellipse C. square D. triangle
20. Which of the following is an advantages of database? D
A. reduction in redundancy B. avoidance of inconsistency
C. security enforcement D. all above
21. What do you mean by one to many relationships? B
A. One class may have many teachers
B. One teacher can have many classes
C. Many classes may have many teachers
D. Many teachers may have many classes
22. The mathematical term Relation and Tuples are refered to as C
A. Table and Domain B. Table and Key
C. Table and Row D. Table and Column
23. For each attribute in a table,there is set of permitted values, called the .......... of that attribute B
A. Tuple B. DomainC. Column D. Row
24. In the relational table, which of the following can also be represented by the term "attribute"? C
A. Entity B. Row C. Column header D. Both B &C
25. Which one of the following is a set of one or more attributes taken C
collectively to uniquely identify a record?
A. Candidate key B. Sub key C. Super key D. Foreign key
26. The subset of a super key is a candidate key under what condition? A
A. No proper subset is a super key B. All subsets are super keys
C. Subset is a super key D. Each subset is a super key
27. ........... should not contain NULL value in its Attribute value A
A. Primary Key B. Super Key C. Candidate Key D. Foreign Key
28. ............ is a column of table that points to the candidate key of another table D
A. Primary Key B.Super Key C.Candidate Key D.Foreign Key
29. Relational Algebra is a __________ query language that takes two relations as input and C
produces another relation as an output of the query.
A.Relational B. Structural C. Procedural D. Fundamental
30. Which of the following is used to denote the selection operation in relational algebra? B
A. Pi (Greek) B. Sigma (Greek) C. Lambda (Greek) D. Omega (Greek)
31. The ___________ operation, denoted by −, allows us to find tuples that are in one relation B
but are not in another.
A.Union B. Set-difference C. Difference D. Intersection
32. Which is a join condition contains an equality operator: A
A.Equijoins B. Cartesian C. Natural D. Left
33. The select, project and rename operation is called ... C
A. binary operation B. ternary operation
C. unary operation D. none of the above
34. What is the full form of SQL? B
A.Structured Query List B. Structure Query Language
C. Sample Query Language D. None of these.
35.Which of the following is not a valid SQL type? C
A. FLOAT B.NUMERIC
C. DECIMAL D. CHARACTER
36. How many Primary keys can have in a table? A
A. Only 1 B. Only 2
C. Depends on no of Columns D. Depends on DBA
37. Which of the following is not a valid aggregate function? B
A. COUNT B. COMPUTE
C. SUM D. MAX
38. Which data manipulation command is used to combines the records from one or more tables? C
A. SELECTB. PROJECT C. JOIN D. PRODUCT
39. Which operator is used to compare a value to a specified list of values? D
A. ANY B. BETWEEN C. ALL D. IN
40. What operator tests column for absence of data B
A. NOT Operator B. Exists Operator C. IS NULL OperatorD. None of the above
41. In which of the following cases a DML statement is not executed? B
A. When existing rows are modified. B. When a table is deleted.
C. When some rows are deleted. D. All of the above
42. If we have not specified ASC or DESC after a SQL ORDER BY clause, B
the following is used by defaultDESC
A.DESC B.ASC
C.There is no default value D. None of the mentioned
43. Which of the following is true about the HAVING clause? C
A. Similar to the WHERE clause but is used for columns rather than groups.
B.Similar to WHERE clause but is used for rows rather than columns.
C.Similar to WHERE clause but is used for groups rather than rows.
D. Acts exactly like a WHERE clause.
44. _______ clause creates temporary relation for the query on which it is defined. A
A. WITH B. FROM C. WHERE D. SELECT
45. Which of the following is true about the SQL AS clause? A
A. The AS clause in SQL is used to change the column name in the output or assign a name to a derived column.
B. The SQL AS clause can only be used with the JOIN clause.
C. The AS clause in SQL is used to defines a search condition.
D. All of the mentioned
46. How can you change "Thomas" into "Michel" in the "LastName" column in the Users table? DD
A. UPDATE User SET LastName = 'Thomas' INTO LastName = 'Michel'
B. MODIFY Users SET LastName = 'Michel' WHERE LastName = 'Thomas'
C. MODIFY Users SET LastName = 'Thomas' INTO LastName = 'Michel'
D. UPDATE Users SET LastName = 'Michel' WHERE LastName = 'Thomas'
47. Which one of the following given statements possibly contains the error? D
A. select * from emp where empid = 10003;
B. select empid from emp where empid = 10006;
C. select empid from emp;
D. select empid where empid = 1009 and Lastname = 'GELLER';
48. Which of the following is not a database model D
A. Network Database Model
B.Object Oriented Database Model
C. Relational Database Model
D.None
49. The overall description of a database is called______. B
A. Data integrity B.Database schema
C Data manipulation D.Data definition
50. Which command is used to remove a relation from an SQL? A
A. Drop table B. Delete C. Purge D. Remove
51. Which of the following command is correct to delete the values in the relation teaches? A
A. Delete from teaches; B. Delete from teaches where Id =’Null’;
C. Remove table teaches; D. Drop table teaches;
52. A table is in BCNF if it is in 3NF and if every determinant is a ___________ key. C
A. Dependent B. Normal
C. Candidate D. Both Normal and Candidate
53. In the __________ normal form, a composite attribute is converted to individual attributes. A
A. First B. SecondC. Third D. Fourth
54. A function that has no partial functional dependencies is in .......... form B
A. 3NF B. 2NF C. 4NF D. BCNF
55. Data dependencies are similar to ........ A
A. Constraints B. Queries C. Functions D. Keys
56. Repetition of data again and again in any relation is........ B
A. Dependency B. Redundancy
C. Cardinality D. Accuracy
57. E-R model allows attributes that are ...... A
A. Multi-valued B. Multi-layers
C. Multi-levels D. Multi-relation
58. BCNF is a more restrictive normal form than is ......... C
A. 1NF B. 2NF C. 3NF D. 4NF
59.Which is not a set operation in SQL? C
A. Union B. Intersection C. Create D. Minus
60. In SQL, the count function returns the number of ......... D
A. Group B. ColumnC. Table D. Value

61. Relational Algebra is a __________ query language that takes two relations as input and produces another rela
a) Relational C
b) Structural
c) Procedural
d) Fundamental
62 Which of the following is a fundamental operation in relational algebra? D
a) Set intersection
b) Natural join
c) Assignment
d) None of the mentioned

63. Which of the following is used to denote the selection operation in relational algebra? B
a) Pi (Greek)
b) Sigma (Greek)
c) Lambda (Greek)
d) Omega (Greek)

64. SELECT name ____ instructor name, course id C


FROM instructor, teaches
WHERE instructor.ID= teaches.ID;
Which keyword must be used here to rename the field name?
a) From
b)
Rename
c) As
d) Join

65. The union operation is represented by B


a) ∩
b) U
c) –
d) *

67. The intersection operator is used to get the _____ tuples. B


a) Different
b) Common
c) All
d) Repeating

68. The union operation automatically __________ unlike the select clause. D
a) Adds tuples
b) Eliminates unique tuples
c) Adds common tuples
d) Eliminates duplicate

69.A _____ indicates an absent value that may exist but be unknown or that may not exist at all. C
a) Empty tuple
b) New value
c) Null value
d) Old value

70 Aggregate functions are functions that take a ___________ as input and return a single value. A
a) Collection of values
b) Single value
c) Aggregate value
d) Both Collection of values & Single value

71. SELECT __________ B


FROM instructor
WHERE dept name= ’Comp. Sci.’;
Which of the following should be used to find the mean of the salary ?
a) Mean(salary)
b) Avg(salary)
c) Sum(salary)
d) Count(salary)

72 SELECT dept_name, ID, avg (salary) B


FROM instructor
GROUP BY dept_name;
This statement IS erroneous because
a) Avg(salary) should not be selected
b) Dept_id should not be used in group by clause
c) Misplaced group by clause
d) Group by clause is not valid in this query

73 A Delete command operates on ______ relation. A


a) One
b) Two
c) Several
d) Null

74 Delete from r where P; A

The above command


a) Deletes a particular tuple from the relation
b) Deletes the relation
c) Clears all entries from the relation
d) All of the mentioned

75 Which one of the following deletes all the entries but keeps the structure of the relation. D
a) Delete from r where P;
b) Delete from instructor where dept name= ’Finance’;
c) Delete from instructor where salary between 13000 and 15000;
d) Delete from instructor;

76 UPDATE instructor B
_____ salary= salary * 1.05;
Fill in with correct keyword to update the instructor relation.
a) Where
b) Set
c) In
d) Select

77 _________ are useful in SQL update statements, where they can be used in the set clause. D
a) Multiple queries
b) Sub queries
c) Update
d) Scalar subqueries

78 The problem of ordering the update in multiple updates is avoided using C


a) Set
b) Where
c) Case
d) When

79 The____condition allows a general predicate over the relations being joined. A


a) On
b) Using
c) Set
d) Where

80 Which of the join operations do not preserve non matched tuples? C


a) Left outer join
b) Right outer join
c) Inner join
d) Natural join

81 What type of join is needed when you wish to include rows that do not have matching values? C
a) Equi-join
b) Natural join
c) Outer join
d) All of the mentioned

82 Which are the join types in join condition: D


a) Cross join
b) Natural join
c) Join with USING clause
d) All of the mentioned

84 Which join refers to join records from the right table that have no matching key in the left table are include in the
a) Left outer join B
b) Right outer join
c) Full outer join
d) Half outer join

85 The operation which is not considered a basic operation of relational algebra is A


a) Join
b) Selection
c) Union
d) Cross product

86 In SQL the statement select * from R, S is equivalent to B


a) Select * from R natural join S
b) Select * from R cross join S
c) Select * from R union join S
d) Select * from R inner join S

87 n the __________ normal form, a composite attribute is converted to individual attributes. A


a) First
b) Second
c) Third
d) Fourth

88 A table on the many side of a one to many or many to many relationship must: A
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

89 Tables in second normal form (2NF): A


a) Eliminate all hidden dependencies
b) Eliminate the possibility of a insertion anomalies
c) Have a composite key
d) Have all non key fields depend on the whole primary key

90 Which-one ofthe following statements about normal forms is FALSE? C


a) BCNF is stricter than 3 NF
b) Lossless, dependency -preserving decomposition into 3 NF is always possible
c) Loss less, dependency – preserving decomposition into BCNF is always possible
d) Any relation with two attributes is BCNF

91 Functional Dependencies are the types of constraints that are based on______ A
a) Key
b) Key revisited
c) Superset key
d) None of the mentioned

92 Which is a bottom-up approach to database design that design by examining the relationship between attributes
a) Functional dependency C
b) Database modeling
c) Normalization
d) Decomposition
93 Which forms simplifies and ensures that there are minimal data aggregates and repetitive groups: C
a) 1NF
b) 2NF
c) 3NF
d) All of the mentioned

9 4Which forms has a relation that possesses data about an individual entity: C
a) 2NF
b) 3NF
c) 4NF
d) 5NF

95 Which forms are based on the concept of functional dependency: C


a) 1NF
b) 2NF
c) 3NF
d) 4NF

96 Empdt1(empcode, name, street, city, state, pincode). B

For any pincode, there is only one city and state. Also, for given street, city and state, there is just one pincode. In n
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

98 Inst_dept (ID, name, salary, dept name, building, budget) is decomposed into D

instructor (ID, name, dept name, salary)


department (dept name, building, budget)

This comes under


a) Lossy-join decomposition
b) Lossy decomposition
c) Lossless-join decomposition
d) Both Lossy and Lossy-join decomposition

99 There are two functional dependencies with the same set of attributes on the left side of the arrow: A
A->BC
A->B
This can be combined as
a) A->BC
b) A->B
c) B->C
d) None of the mentioned
100. Which data type allows alphanumeric characters and special symbols to be entered? A
Text
Memo
Auto number
Mixed
assign a name to a derived column.
s as input and produces another relation as an output of the query.
key in the left table are include in the result set:
g the relationship between attributes:
d state, there is just one pincode. In normalization terms, empdt1 is a relation in

You might also like