MCQ On RDBMS UNIT 3
MCQ On RDBMS UNIT 3
11. Which of the following will help to maintain unique record in the table?
a. Foreign Key
b. Primary Key
c. Composite Key
d. Alternate Key
12. Which of the following field of table “Book” can act as primary key?
a. Book_number
b. Subject
c. price
d. Author_name
13. When primary key is made up of two or more columns then it is called __ primary key.
a. Mixed
b. Reference
c. Composite
d. Compost
14. Duplicate values can be entered in primary key.(T/F)
a. True
b. False
15. A key which is referring to the primary key of another table is called _______
a. Alternate Key
b. Primary Key
c. First Primary Key
d. Foreign Key
16. A field which is ______ for each and every record is called Primary key.
a. Common
b. Same
c. Unique
d. None of the above
17. When data is stored, maintained and retrieved from multiple tables then special database software are
required called ______
a. DBMS
b. RDBMS
c. Special DBMS
d. All of the above
Table : Sales
SalesID (Primary Key)
ClientID
Profit
a. SalesID
b. Profit
c. Clientphone
d. ClientID
31. Base automatically adds the column as Primary Key if we don’t add.(T/F)
a. True
b. False
32. By default the length of Varchar data type is __
a. 20
b. 30
c. 40
d. 50
34. __________ are used to identify which type of data we are going to store in the database.
a. Datatype
b. Record
c. Table
d. Attributes
35. Which data type will be appropriate to store information as Salary, Fees, Price etc
a. Alphanumeric Data types
b. Numeric Data type
c. Binary Data types
d. Date Time
37. Which of the following data types can not store decimal values?
a. Decimal
b. Real
c. Numeric
d. Boolean
38. Which of the following will occupy more space in computer memory?
a. Bigint
b. Integer
c. Smallint
d. Boolean
39. _______ data types are used for storing photos, music files etc
a. Binary
b. Alphanumeric
c. Numeric
d. Special
40. Char is a ______ length data type and varchar is a ______ length data type.
a. Fixed, Variable
b. Variable, Fixed
c. Variable, Variable
d. Fixed, Fixed
43. Which of the following property help to set the number of characters in Varchar type.
a. Auto value
b. Required
c. Default Value
d. Length
44. Which property ensures that field can not be left blank?
a. Entry required
b. Format
c. Required Entry
d. Required
46. Which of the following property to be turned “yes” so that value will be auto incremented?
a. Default
b. Format
c. Auto value
d. Length
47. Which of the following is not the binary data types?
a. Longvarbinary
b. Varbinary
c. Binary
d. Charbinary
48. Which of the following is not the date time data types?
a. Date
b. Time
c. Datestamp
d. Timestamp
49. Which data type is used to store value of fields like “Date of Birth”?
a. Date Time
b. Varchar
c. Integer
d. Other
54. After inserting records in table, we can not modify the structure of table.(T/F)
a. True
b. False
55. Sorting means to arrange data in _______________ order.
a. increasing
b. decreasing
c. increasing or decreasing
d. None of the above
56. Referential Integrity is used to maintain accuracy and consistency of data in a relationship.(T/F)
a. True
b. False
57. In Base data can be linked between two or more tables with the help of _________________
a. primary key
b. foreign key
c. primary and foreign key
d. None of the above
60. There are __________________ types of relationship which can be created between tables.
a. three
b. two
c. four
d. infinite
63. Queries are commands that are used to define the structure and modify the data in a table.(T/F)
a. True
b. False
71. Command to display all the data in the table “emp” is.
a. Select * from emp
b. Select * from emp;
c. Select all from emp
d. Select all from emp;
77. To get details about the list of students whose favorite color is blue. Query for this is :
a. select all from Stud where fav_Color=’Blue’;
b. select name from Stud where fav_Color=’Blue’;
c. select * from Stud where fav_Color=’Blue’;
d. select all from Stud where fav_Color is ’Blue’;
82. Command to increase the salary of all employees by 15000.(table name emp and column name sal)
a. update emp set sal = sal + 15000;
b. update emp set sal = 15000;
c. update set sal = sal + 15000;
d. None of the above
85. A ________ provides a systematic way of storing information into the database.
a. Report
b. Query
c. Form
d. None of the above
86. Which of the following act as an interface to view, enter and change data in database?
a. Report
b. Table
c. Query
d. Form
88. A _______ helps to collect specific information from the pool of data.
a. Query
b. Report
c. Form
d. None of the above
89. Which of the following is to be created first?
a. Report
b. Query
c. Form
d. Table
90. Which of the following field is invalid for storing information of “Library” Table?
a. Cost
b. Booknumber
c. Authorname
d. Dateofbirth
91. Which of the following is suitable to act as a primary key in table student?
a. Rollno
b. Name
c. Class
d. Section
a. True b. False