Untitled Document
Untitled Document
Untitled Document
a. Insert
b. Delete
c. Select
d. Update
Ans(c.Select)
9. What would be the result of the following SQL query: Select Upper(‘mysql’);?
a. Mysql
b. MYSQL
c. UPPER
d. None of the above
Ans(b.MYSQL)
10. Which SQL clause is used to specify a condition while fetching data from a table?
a. Decision
b. Check
c. Where
d. Condition
Ans(c.Where)
15. Which clause is used with the GROUP BY clause to filter grouped results in SQL?
a. Where
b. Order By
c. Having
d. Like
Ans(c.Having)
16. Which of the following is used to make a column’s value automatically increase for each
new record?
a. AUTOINCREMENT
b. AUTOADD
c. INCREMENTAL
d. ADDAUTO
Ans(a.AUTOINCREMENT)
17. Which SQL statement is used to access data from multiple tables based on a
relationship between certain columns?
a. Combine
b. Union
c. Join
d. Merge
Ans(c.Join)
19. Which MySQL function returns the smallest integer value not less than a number?
a. Ceiling()
b. Floor()
c. Roundup()
d. Top()
Ans(a.Ceiling())
21. A __________ is a special kind of a store procedure that executes in response to certain
action on the table like insertion, deletion or updation of data.
a. Procedures
b. Triggers
c. Functions
d. None of the mentioned
Ans(b.Triggers)
27. A dynamic cursor in SQL Server allows you to see __________ data.
a. Updated
b. Inserted
c. Deleted
d. All of the mentioned
Ans(d.All of the mentioned)
29. Which of the following FORWARD ONLY Cursor is populated at the time of creation?
a. KEYSET
b. FORWARD_ONLY STATIC
c. FAST_FORWARD
d. All of the mentioned
Ans(b.FORWARD_ONLY STATIC)
30. Life cycle of typical cursor involves ______ steps in SQL Server.
a. 2
b. 3
c. 4
d. 5
Ans(d.5)
35. Which of the following creates a virtual relation for storing the query?
a. Function
b. View
c. Procedure
d. All of the mentioned
Ans(b.View)
39. If @@TRANCOUNT is 1 ________ makes all data modifications performed since the
start of the transaction a permanent part of the database.
a. COMMIT TRANSACTION
b. SAVE TRANSACTION
c. ROLLBACK TRANSACTION
d. None of the mentioned
Ans(a.COMMIT TRANSACTION)
40. In _______ transaction we include the DML statements that need to be executed as a
unit.
a. Explicit
b. Implicit
c. Distributed
d. All of the mentioned
Ans(a.Explict)
41. A_____ is a query that retrieves rows from more than one table or view:
a) Start
b) End
c) Join
d) All of the mentioned
Ans( c)
42. Which view that contains more than one table in the top-level FROM clause of the
SELECT statement:
a) Join view
b) Datable join view
c) Updatable join view
d) All of the mentioned
Ans(c)
46. Which join refers to join records from the write table that have no matching key in the left
table are include in the result set:
a) Left outer join
b) Right outer join
c) Full outer join
d) Half outer join
Ans(b)
48. In which join all the rows from the left table appear in the output irrespective of the
content of the other table?
a) RIGHT JOIN
b) LEFT JOIN
c) INNER JOIN
d) OUTER JOIN
Ans(b)
49. The join where all possible row combinations are produced is called _________
a) INNER JOIN
b) OUTER
c) NATURAL
d) CARTESIAN
Ans(d)
50. The left and right joins are also known as __________
a) INNER JOIN
b) NATURAL JOIN
c) OUTER JOIN
d) CARTESIAN JOIN
Ans(c)
51. The string function that returns the index of the first occurrence of substring is
_____________
a) INSERT()
b) INSTR()
c) INSTRING()
d) INFSTR()
Ans(b)
52. Which of the following is the standard format the MySQL displays DATE values.
A. YYYY-MM-DD
B. DD-MM-YYYY
C. YY-MM-DD
D. MM-DD-YYYY
Ans (A)
53. The … attribute of MySQL data type is used to guarantee uniqueness for a given row.
A. UNIQUE
B. UNIQUE KEY
C. KEY
D. PRIMARY KEY
Ans(D)
54. The … data type offers MySQL’s fixed-length string representation, supporting a
maximum length of 255 characters.
A. TEXT
B. CHAR
C. FIXEDCHAR
D. TINYCHAR
Ans(B)
55. For all date and time data types, MySQL will accept any type of … delimiter to separate
the various date and time values.
A. numeric
B. alphanumeric
C. nonalphanumeric
D. nonnumeric
Ans(C.)
56. The … attribute used in MySQL data type is offered as an aid in the database
compatibility.
A. DEFAULT
B. INDEX
C. NATIONAL
D. NULL
Ans(C)
57. MySQL requires that the … attribute be used in conjunction with column designated as
the primary key.
A. COLUMN_KEY
B. AUTO_INCREMENT
C. PRIMARY_KEY
D. UNIQUE_KEY
Ans(B)