0% found this document useful (0 votes)
21 views

Java Point

DBMS javapoint mcqs

Uploaded by

sheryar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Java Point

DBMS javapoint mcqs

Uploaded by

sheryar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

1) Which of the following is generally used for 6) What do you mean by one to many

performing tasks like creating the structure of relationships?


the relations, deleting relation? A. One class may have many teachers
A) DML(Data Manipulation Language) B. One teacher can have many classes
B) Query C. Many classes may have many teachers
C) Relational Schema D. Many teachers may have many classes
D) DDL(Data Definition Language)
7) In the following Query, which of the
2) Which of the following provides the ability to following can be placed in the Query's blank
query information from the database and insert portion to display the salary from highest to
tuples into, delete tuples from, and modify tuples lowest amount, and sorting the employs name
in the database? alphabetically?
A) DML(Data Manipulation Language) SELECT *
B) DDL(Data Definition Language) FROM instructor
C) Query ORDER BY salary ____, name ___;
D) Relational Schema A) Ascending, Descending
B) Asc, Desc
3) The given Query can also be replaced C) Desc, Asc
with_______: D) All of the above
SELECT name, course_id
8) The given Query can be replaced with
FROM instructor, teaches
____________:
WHERE instructor_ID= teaches_ SELECT name
ID; FROM instructor1
A) Select name,course_id from WHERE salary <= 100000 AND salary
teaches,instructor where >= 90000;
instructor_id=course_id; a.
B) Select name, course_id from instructor SELECT name
natural join teaches; FROM instructor1
C) Select name, course_id from instructor; WHERE salary BETWEEN 100000 AND
D) Select course_id from instructor join 90000
teaches; b.
SELECT name
4) Which one of the following given statements FROM instructor|
possibly contains the error? WHERE salary BETWEEN 90000 AND
A) select * from emp where empid = 10003;
100000;
B) select empid from emp where empi =
c.
10006;
C) select empid from emp; SELECT name
D) select empid where empid = 1009 and FROM instructor1
Lastname = 'GELLER'; WHERE salary BETWEEN 90000 AND
100000;
5) Ready the Query carefully: d.
SELECT emp_name SELECT name
FROM instructor!
FROM department WHERE salary <= 90000 AND
WHERE dept_name LIKE ' ___ Compute salary>=100000;
r Science'; 9) A Database Management System is a type of
In the above-given Query, which of the _________software.
following can be placed in the Query's blank A) It is a type of system software
portion to select the "dept_name" that also B) It is a kind of application software
contains Computer Science as its ending string? C) It is a kind of general software
A) & B) _ D) Both A and C
B) % D) $
DBMS 1
10) The term "FAT" is stands for_____ 19) To which of the following the term "DBA"
A) File Allocation Tree referred?
B) File Allocation Table A) Data Bank Administrator
C) File Allocation Graph B) Database Administrator
D) All of the above C) Data Administrator
D) None of the above
11) Which of the following can be considered as
the maximum size that is supported by FAT? 20) In general, a file is basically a collection of all
A) 8GB B) 4GB related______.
C) 4TB D) None of the above A) Rows & Columns B) Fields
C) Database D) Records
12) The term "NTFS" refers to which one of the
following? 21) The term "Data" refers to:
A) New Technology File System A) The electronic representation of the
B) New Tree File System information (or data)
C) New Table type File System B) Basic information
D) Both A and C C) Row Facts and figures
D) Both A and C
13) Which of the following can be considered as
the maximum size that is supported by NTFS? 22) Rows of a relation are known as the _______.
A) 4GB B) 16TB A) Degree B) Tuples
C) 64TB D) 8TB C) Entity D) All of the above

14) A huge collection of the information or data 23) Which of the following refers to the number
accumulated form several different sources is of tuples in a relation?
known as ________: A) Entity B) Column
A) Data Management B) Data Mining C) Cardinality D) None of the above
C) Data Warehouse D) Both B and C
24) Which one of the following is a type of Data
15) Which of the following can be used to extract Manipulation Command?
or filter the data & information from the data A) Create B) Alter
warehouse? C) Delete D) All of the above
A) Data redundancy B) Data recovery tool
C) Data mining D) Both B and C 25) Which of the following command is a type of
Data Definition language command?
16) Which one of the following refers to the A) Create B) Update
copies of the same data (or information) C) Delete D) Merge
occupying the memory space at multiple places.
A) Data Repository B)Data Inconsistency 26) Which of the following is a top-down
C) Data Mining D) Data Redundancy approach in which the entity's higher level can be
divided into two lower sub-entities?
17) Which one of the following refers to the "data A) Aggregation B) Generalization
about data"? C) Specialization D) All of the above
A) Directory B) Sub Data
C) Warehouse D) Meta Data 27) In which one of the following, the multiple
lower entities are grouped (or combined)
18) Which of the following refers to the level of together to form a single higher-level entity?
data abstraction that describes exactly how the A) Specialization
data actually stored? B) Generalization
A) Conceptual Level B) Physical Level C) Aggregation
C) File Level D) Logical Level D) None of the above
DBMS 2
28) In a relation database, every tuple divided 37) The database management system can be
into the fields are known as the______. considered as the collection of ______ that
A) Queries B) Domains enables us to create and maintain the database.
C) Relations D) All of the above A) Translators B) Programs
C) Keys D) Language activity
29) The term "TCL" stands for_____.
A) Ternary Control Language 38) The term "DFD" stands for?
B) Transmission Control Language A) Data file diagram B) Data flow document
C) Transaction Central Language C) Data flow diagram D) None of the above
D) Transaction Control Language
39) Which of the following refers collection of the
30) In the relational table, which of the following information stored in a database at a specific
can also be represented by the term "attribute"? time?
A) Entity B) Row A) Independence B) Instance of the database
C) Column D) Both B &C C) Schema D) Data domain

31) Which of the following refers to the number 40) The term "SQL" stands for
of attributes in a relation? a) Standard query language
A) Degree B) Row b) Sequential query language
C) Column D) All of the above c) Structured query language
d) Server-side query language
32) Which of the following is used in the
application programs to request data from the 41) The term "Data independence" refers to____
database management system? a) Data is defined separately and not included
A) Data Manipulation language in the programs
B) Data Definition Language b) Programs are not dependent on the logical
C) Data Control Language attributes of the data
D) All of the above c) Programs are not dependent on the physical
attributes of the data
33) Which one of the following command is used d) Both B & C
to delete the existing row in a table?
A) Delete B) Update 42) What is the relation calculus?
C) Insert D) None of the above a) It is a kind of procedural language
b) It is a non-procedural language
34) Which of the following commands is used to c) It is a high-level language
save any transaction permanently into the d) It is Data Definition language
database?
A) Commit B) Rollback 43) Which one of the following refers to the total
C) Savepoint D) None of the above view of the database content?
a) Conceptual view
35) Which one of the following commands is used b) Physical view
for removing (or deleting) a relation forms the c) Internal view
SQL database? d) External view
A) Delete B) Drop
C) Remove D) All of the above 44) For what purpose the DML is provided?
a) Addition of new structure in the database
36) Which one of the following commands is used b) Manipulation & processing of the database
to restore the database to the last committed c) Definition of the physical structure of the
state? database system
A) Savepoint B) Rollback d) All of the above
C) Commit D) Both A & B
DBMS 3
45) The term "ODBC" stands for_____ 52) Which one of the following keyword is used
A. Oral database connectivity to find out the number of values in a column?
B. Oracle database connectivity A) TOTAL
C. Open database connectivity B) COUNT
D. Object database connectivity C) SUM
D) ADD
46) The architecture of a database can be viewed
as the ________ 53) Which one of the following is commonly used
A. One level to define the overall design of the database?
B. Two-level A) Application program
C. Three-level B) Data definition language
D. Four level C) Schema
D) Source code
47) In the relation model, the relation are
generally termed as ________ 54) Which one of the following commands is used
A) Tuples to modify a column inside a table?
B) Attributes A) Drop
C) Rows B) Update
D) Tables C) Alter
D) Set
48) The Database Management Query language
is generally designed for the _____ Javatpoint
A. Support end-users who use English like
commands
1 D 11 B 21 C 31 A 41 D 51 C
B. Specifying the structure of the database
2 A 12 A 22 D 32 A 42 B 52 B
C. Support in the development of the complex
3 B 13 A 23 C 33 A 43 A 53 C
applications software
4 D 14 B 24 C 34 A 44 B 54 C
D. All of the above
5 C 15 C 25 A 35 B 45 C
6 B 16 D 26 C 36 B 46 C
49) Which of the following keys is generally used 7 C 17 D 27 B 37 B 47 D
to represents the relationships between the 8 C 18 B 28 B 38 C 48 D
tables? 9 A 19 B 29 D 39 B 49 B
A) Primary key 10 B 20 D 30 C 40 C 50 B
B) Foreign key
C) Secondary key
D) None of the above

50) Which of the following levels is considered as


the level closed to the end-users?
A) Internal Level
B) External Level
C) Conceptual Level
D) Physical Level

51) A computer security protocol for logging-in


can be considered as the example of the ______
component of an information system.
A) Data
B) Software
C) Procedure
D) Hardware
DBMS 4
1. Which of the following command is used to 11. Which normalization form is based on the
change data in table? transitive dependency?
A) INSERT B) UPDATE A) 1NF B) 2NF
C) MERGE D) NONE C) 3NF D) BCNF

2. What is rows of a relation known as? 12. Which of the following allows to uniquely
A) Degree B) Entity identify a tuple?
C) Tuple D) None A) Schema B) Attribute
C) Super key D) Domain
3. What is the name of the query that is placed
within a WHERE or HAVING clause of another 13. Which of the following can replace the below
query? query?
A) Multi query B) Subquery SELECT name, course_id
C) Super query D) Master query FROM instructor, teaches
WHERE instructor_ID= teaches_ID;
4. What is the number of tuples of a relation
known as? A) Select name, course_id from instructor
A) Column B) Cardinality natural join teaches;
C) Entity D) None B) Select name,course_id from
teaches,instructor where
5. What is the use of COUNT in SQL? instructor_id=course_id;
A) Returns number of distinct value C) Select name, course_id from instructor;
B) Returns total values D) Select course_id from instructor join
C) Returns number of groups teaches;
D) Returns number of columns
14. What is DBMS?
6. Which command is used to remove a stored A) Collection of many programs to access data
function from the database? B) Collection of interrelated data
A) DROP B) DELETE C) Collection of commands
C) ERASE D) REMOVE D) All

7. Which data structure is used in Hierarchical 15. Which of the following is a command of
model records? DDL?
A) Graph B) Tree A) Alter B) Delete
C) Linked list D) Stacks C) Create D) Both A & C

8. Which is AS clause used for? 16. Which of the following is known as minimal
A) Rename B) Selection super key?
C) Join D) Projection A) Primary key B) Candidate key
C) Foreign key D) None
9. Which is the lowest level of abstraction that
describes how the data are actually stored? 17. Which of the following is not a SQL
A) Physical B) Abstract command?
C) View D) User A) DELETE B) ORDER BY
C) SELECT D) WHERE
10. Which normal form deals with multivalued
dependency? 18. Which of the following is preserved in
A) 1NF B) 2NF execution of transaction in isolation?
C) 3NF D) 4NF A) Atomicity B) Isolation
C) Durability D) Consistency

DBMS 5
19. Which of the following is the full form of 27. After which operation is the modify operation
DDL? done?
A) Data definition language A) Look-up B) Insert
B) Data derivation language C) Delete D) All
C) Dynamic data language
D) Detailed data language 28. During transaction before commit which of
the following statement is done automatically in
20. Which of the following is the full form of case of shutdown?
NTFS? A) Rollback B) Commit
A) New Tree File System C) View D) Flashback
B) New Technology FIle System
C) New Table File System 29. For performing tasks like creating the
D) Both B and C structure of the relations, deleting relation,
which of the following is used?
21. Which of the following is the full form of A) Data definition language
TCL? B) Data derivation language
A) Ternary control language C) Dynamic data language
B) Transaction control language D) Detailed data language
C) Transaction central language
D) Transmission control language 30. How is ER diagram represented?
A) Circle B) Ellipse
22. Which of the following is the property of C) Triangle D) Square
transaction that protects data from system
failure? 31. How many levels are there in architecture of
A) Atomicity B) Isolation database?
C) Durability D) Consistency A) 2 B) 3
C) 4 D) 5
23. Which of the following normal forms 32. Identify the concurrency based protocol?
contains information about a single entity? A) Lock based protocol
A) 1NF B) 2NF B) Two phase locking protocol
C) 3NF D) 4NF C) Timestamp ordering protocol
D) All
24. Which of the following operator is used to
compare a value to a list of literals values that 33. Maximum children of a B-tree of order m?
have been specified? A) m/2 B) m - 1
A) ANY B) BETWEEN C) m D) m + 1
C) IN D) ALL
34. NATURAL JOIN can also be termed as -
25. Which of the following SQL command is used A) Combination of Union and cartesian product
for removing (or deleting) a relation form the B) Combination of Selection and cartesian
database? product
A) Drop B) Delete C) Combination of Projection and cartesian
C) Rollback D) Remove product
D) None
26. Select the correct command to modify a
column in a table. 35. Primary key can be?
A) Update B) Alter A) NULL
C) Drop D) Set B) NOT NULL
C) Both NULL and NOT NULL
D) Depends on situation

DBMS 6
36. Rectangles in ER diagram represents? 45. Select the definition of the correct key which
A) Tables B) Attributes is used to represent relation between two tables?
C) Tuples D) Entity sets A) Candidate key B) Foreign key
C) Primary key D) Super key
37. Select the correct advantages of view.
A) Derived columns 46. Select the relational algebra operations.
B) Data security A) Union B) Select
C) Hiding of complex queries C) Rename D) All of the above
D) All of the above
47. Select the valid SQL type.
38. Select the correct command to find the A) NUMERIC B) CHARACTER
number of values in a column. C) FLOAT D) All of the above
A) ADD B) SUM
C) TOTAL D) COUNT 48. To select some particular columns, which of
the following command is used?
39. A relational database developer refers to a A) PROJECTION B) SELECTION
record as? C) JOIN D) UNION
A) Attribute B) Tuple
C) Relation D) None 49. Total view of a database is known as?
A) Physical view B) Internal view
40. Select the correct database object which does C) Conceptual view D) External view
not exist physically.
A) Base table B) View 50. What is a table joined with itself called?
C) Index D) None A) Join B) Self join
C) Outer join D) Equi join
41. Select the correct definition of relation.
A) Subset of a cartesian product of list of Interviewbit
domains
B) Subset of a cartesian product of list of tuple 1 B 11 C 21 B 31 B 41 A
C) Subset of a cartesian product of list of 2 C 12 C 22 C 32 D 42 C
attributes 3 B 13 A 23 D 33 C 43 A
D) Subset of a cartesian product of list of 4 B 14 B 24 B 34 C 44 C
relations 5 B 15 D 25 A 35 B 45 B
6 A 16 B 26 B 36 D 46 D
42. Select the correct definition of Relational 7 B 17 A 27 A 37 D 47 D
calculus? 8 A 18 D 28 A 38 D 48 A
A) It is a high level language 9 A 19 A 29 A 39 B 49 C
B) It is a procedural language 10 D 20 B 30 B 40 B 50 B
C) It is a non-procedural language
D) It is a data definition language

43. Select the correct foreign key constraint?


A) Referential integrity
B) Entity integrity
C) Domain integrity
D) None

44. Select the correct properties of entities?


A) Table B) Groups
C) Attributes D) Switchboards

DBMS 7
1) In E-R model, Y is the dominant entity and X
is subordinate entity
a) If Y is deleted, then X is also deleted
b) If Y is deleted, then X is not deleted
c) If X is deleted, then Y is also deleted
d) None of the above

2) Let R1 (a, b, c) and R2 (x, y, z) be two relations


in which a is the foreign key of R1 that refers to
the primary key of R2 . Consider following four
options. (a)Insert into R 1 (b)Insert into R 2
(c)Delete from R 1 (d)Delete from R 2 Which of
the following is correct about the referential
integrity constraint with respect to above?
a) Operations (a) and (b) will cause violation.
b) Operations (b) and (c) will cause violation.
c) Operations (c) and (d) will cause violation.
d) Operations (d) and (a) will cause violation.

4.
Using ODL, you can define which of the following?
a) Attribute
b) Structure
c) Operation
d) All of the above.

DBMS 8

You might also like