DBMS Worksheet
DBMS Worksheet
Table : Sales
Sales ID (Primary Key)
Client ID
Profit
a. SalesID
b. Profit
c. Clientphone
d. ClientID
Q19. Which of the following is not valid field of table “Student”
a. admno
b.name
c. fees
d. salary
Q20. There can be multiple primary key in a table.(T/F)
a. True
b. False
Q21. In RDBMS, data is organized in the form of
__________________
a. Table
b. Record
c. Field
d. None of the above
Q22. SQL stands for _________________
a. Structured Queue Language
b. Structured Query Language
c. Structured Query Lang
d. None of the above
Q23. All the values in ________ are of same type.
a. Records
b. Table
c. Database
d. Fields
Q24. ___________ represent a single data item in a table.
a. Tuples
b. Attributes
c. Relation
d. All of the above
Q25. In tables, data is organized in the form of rows and
columns.(T/F)
a. True
b. False
Q26. Every row in a table has the same structure.(T/F)
a. True
b. False
Q27. Open Office base is not an open source software.(T/F)
a. True
b. False
Q28. _______________ are the basic building blocks of a database.
a. Tables
b. Record
c. Fields
d. All of the above
Q29. We can create table:
a. in design view
b. use Wizard
c. Both of the above
d. None of the above
Q30. By default data type of fields is.
a. Text[Varchar]
b. Text[Char]
c. Int
d. Long
Q31. Base automatically adds the column as Primary Key if we
don’t add.(T/F)
a. True
b. False
Q32. By default the length of Varchar data type is __
a. 20
b. 30
c. 40
d. 50
Q33. By default the name of the table is ______
a. Tab 1
b. Table 1
c. First Table
d. Untitled 1
Q34. __________ are used to identify which type of data we are
going to store in the database.
a. Data type
b. Record
c. Table
d. Attributes
Q35. Which data type will be appropriate to store information
as Salary, Fees, and Price etc?
b. Alphanumeric Data types
a. Numeric Data type
c. Binary Data types
d. Date Time
Q36. Which of the following is not a numeric data type?
a. Tinyint
b. Smallint
c. Boolean
d. Date
Q37. Which of the following data types cannot store decimal
values?
a. Decimal
b. Real
c. Numeric
d. Boolean
Q38. Which of the following will occupy more space in
computer memory?
a. Bigint
b. Integer
c. Smallint
d. Boolean
Q39. _______ Data types are used for storing photos, music files
etc.
a. Binary
b. Alphanumeric
c. Numeric
d. Special
Q40. 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
Q41. Which field is suitable for storing records of employees?
a. EmpNo
b. Empname
c. Salary
d. All of the above
Q42. Auto Value is a property of __ data type.
a. Numeric
b. Character
c. Binary
d. Date
Q43. 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
Q44. Which property ensures that field cannot be left blank?
a. Entry required
b. Format
c. Required Entry
d. Required
Q45. By default the length of the Integer data type is
______________
a. 10
b. 15
c. 20
d. 25
Q46. 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
Q47. Which of the following is not the binary data types?
a. Longvarbinary
b. Varbinary
c. Binary
d. Charbinary
Q48. Which of the following is not the date time data types?
a. Date
b. Time
c. Datestamp
d. Timestamp
Q49. Which data type is used to store value of fields like “Date
of Birth”?
a. Date Time
b. Varchar
c. Integer
d. Other
Q50. A record in table is also known as Attribute.(T/F)
a. True
b. False
MCQ ON RDBMS
Q71. 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;
a. Cost
b. Book number
c. Author name
d. Date of birth
Q91. Which of the following is suitable to act as a primary key
in table student?
a. Roll no
b. Name
c. Class
d. Section
Q92. A foreign key is a reference of the ________ key in another
table.
a. Alternate
b. Primary
c. Candidate
d. None of the above
Q93. A table is a collection of logically related data.(T/F)
a. True
b. False
Q94. _______ Tables can be created in a database.
a. 1
b. 2
c. 3
d. More than 3
Q95. In primary key we can enter NULL values.(T/F)
a. True
b. False
b. False