Rdbmsmcqs Part 1
Rdbmsmcqs Part 1
Jain
Part -1
3. ________ represents the structure of the database in a formal language acceptable by the
DBMS.
[A] Database Schema. [B] ER Diagram. [C] Database Table. [D] None of these.
6. ________ are padded with space characters to match the specified length.
[A] VARCHAR [B] VARCHAR2 [C] CHAR [D] CHAR2
10. The data type which can be fixed length or varying length as CHAR(n) or VARCHAR(n)
respectively is classified as
[A] Ternary string. [B] Binary string. [C] Schema string [D] Character string
12. Name the operator that tests column for absence of data?
[A] NOT Operator [B] Exists Operator [C] IS NULL Operator [D] None of them.
1
RDBMS MCQ’s By H. P. Jain
14. Which of the following operator can be used with a multiple-row subquery?
[A] = [B] BETWEEN [C] NOT IN [D] < >
16. When three or more AND operator or OR operator conditions are combined, it is easier to
use the ______ SQL keyword(s)
[A] LIKE Only [B] NOT IN Only [C] IN Only [D] Both IN and NOT IN
18. Which of the following SQL operations demands the used of wild cards comparison?
[A] IN [B] BETWEEN [C] EXISTS [D] LIKE
25. Which of the following is / are the examples of relational database management system
software?
[A] Oracle [B] SQL Server [C] Microsoft Access [D] All of these
26. Which of the following do we need to consider when we make a table in SQL?
[A] Data-type [B] Primary Key [C] Default Values [D] All of these.
2
RDBMS MCQ’s By H. P. Jain
28. Which command defines columns, integrity constraints for table while creating a table?
[A] CREATE TABLE Command. [B] Drop Table Command.
[C] Alter Table Command. [D] All of the mentioned.
29. Name the command used for removing a table and all its data from the table.
[A] CREATE TABLE Command. [B] Drop Table Command.
[C] Alter Table Command. [D] All of the mentioned.
30. The _______ command makes the updates performed by the transaction permanent in the
database?
[A] ROLLBACK [B] COMMIT [C] TRUNCATE [D] DELETE
33 Which statement is used to delete all rows / records in a table without deleting structure of
the table?
[A] DROP [B] DELETE [C] TRUNCATE [D] REMOVE
35. If we have not specified ASC or DESC after a SQL ORDER BY clause, which of the
following is used as default order
[A] DESC [B] ASC [C] There is no default value. [D] None of them.
36. In an SQL statement, which of the following parts states the conditions for row selection?
[A] Where [B] From [C] Order By [D] Group By
37. Which of the following keyword is used with Data Control Language (DCL) statements?
[A] SELECT [B] INSERT [C] DELETE [D] GRANT
3
RDBMS MCQ’s By H. P. Jain
38. A type of query that is placed within the WHERE or HAVING clause of another query is
called ________.
[A] Master Query [B] Sub Query [C] Super Query [D] Multi-Query.
41. How can we change “FYBMS” into “SYBMS” in the “class” column in the “student” table?
[A] UPDATE student SET class = ‘FYBMS’ INTO class = ‘SYBMS’
[B] MODIFY student SET class = ‘SYBMS’ WHERE class = ‘FYBMS’
[C] MODIFY student SET class = ‘FYBMS’ INTO class = ‘SYBMS’
[D] UPDATE student SET class = ‘SYBMS’ WHERE class = ‘FYBMS’
44. Which statement is used to get all the data from the student table whose name starts with p?
[A] SELECT * FROM student WHERE name LIKE ‘%p%’;
[B] SELECT * FROM student WHERE name LIKE ‘p%’;
[C] SELECT * FROM student WHERE name LIKE ‘_p%’;
[D] SELECT * FROM student WHERE name LIKE ‘%p’;
45. In SQL, Which command is used to SELECT only one copy of each set of duplicate rows
[A] SELECT DISTINCT [B] SELECT UNIQUE
[C] SELECT DIFFERENT [D] All of the mentioned.
4
RDBMS MCQ’s By H. P. Jain
47. In SQL, which command(s) is(are) used to change a table’s storage characteristics?
[A] ALTER TABLE [B] MODIFY TABLE [C] CHANGE TABLE [D] All of
these.
48. Which of the following is not included in DML (Data Manipulation Language)?
[A] INSERT [B] UPDATE [C] DELETE [D] CREATE
50. Name the command used to add new rows to the table.
[A] Alter Table [B] Add Row [C] Insert [D] Append
55. Which of the following keyword is used with Data Control Language (DCL) statement?
[A] SELECT [B] INSERT [C] DELETE [D] GRANT
57. A database language concerned with the definition of the whole data structure and schema
is ___________.
[A] DCL [B] DML [C] DDL [D] TCL
5
RDBMS MCQ’s By H. P. Jain
58. To obtain / display the structure of an Oracle table, the command used is
[A] STRUCTURE table-name [B] DESCRIBE table-name
[C] DESCRIBE STRUCTURE table-name [D] DESC TABLE table-name
62. The SQL statement used to delete data from a database table is
[A] COLLAPSE [B] REMOVE [C] ALTER [D] DELETE
64. The command used to undo all the updates performed by the SQL in the transactions is
[A] ROLLBACK [B] COMMIT [C] TRUNCATE [D] DELETE
66. The SQL command used to delete the column(s) from a table is
[A] MODIFY TABLE table-name DROP column-name
[B] MODIFY TABLE table-name DROP COLUMN column-name
[C] ALTER TABLE table-name DROP column-name
[D] ALTER TABLE table-name DROP COLUMN column-name
6
RDBMS MCQ’s By H. P. Jain
68. The command used to delete all rows from the customer table is
[A] DROP * FROM customer; [B] UPDATE * FROM customer;
[C] REMOVE * FROM customer; [D] DELETE * FROM customer;
71. In a SELECT statement querying a single table, the use of asterisk (*) means
[A] All columns of the table are to be returned.
[B] All records meeting the full criteria are to be returned.
[C] All records with even partial criteria met are to be returned.
[D] None of the above is correct.
7
RDBMS MCQ’s By H. P. Jain
78. Which of the following is / are the clause(s) of the SELECT statement?
[A] WHERE [B] ORDER BY [C] GROUP BY [D] All of them
81. Group of operations that forms a single logical unit of work is known as
[A] View [B] Network [C] Unit [D] Transaction
85. The SQL function used to retrieve a maximum value from a column is ______.
[A] TOP [B] MOST [C] UPPER [D] MAX
88. All of the following can only be used with numeric data types except
[A] AVG [B] COUNT [C] SUM [D] MIN
89. Which character function can be used to return a specified portion of a character string?
[A] INSTR [B] SUBSTRING [C] SUBSTR [D] POS
8
RDBMS MCQ’s By H. P. Jain
91. ________ is a query that has another query embedded within it.
[A] Subquery [B] Structured Query [C] Nested Query [D] Sequence Query
92. ________ function divides one numeric expression by another and returns the remainder.
[A] POWER [B] ROUND [C] MOD [D] REMAINDER
93 Which function is used to removing all the leading and trailing blank space from the
string?
[A] TRIM [B] RTRIM [C] LTRIM [D] All of them.