You are on page 1of 10

HCL TSS ASSESSMENT

##SQL_Day_5(10) ##

Q1 Sql
DCL statements are about giving MC
Default mark: 1
Shuffle the choices? Yes
Number the choices? A
Penalty for each incorrect try: 0
# Answers Feedback Grade
A.   Inserting Data in tables 0
B.   Creating Objects 0
C.   Creating Users 0
User access to the 100
D.  
database objects 
  General feedback:    
  For any correct response: Your answer is correct.  
  For any incorrect response: Your answer is incorrect.  
  Hint 1:    
Show the number of correct
  No  
responses (Hint 1):
  Clear incorrect responses (Hint 1): No  
  Tags:    
Allows the selection of a single or multiple responses from a pre-defined list.
 
(MC/MA)

1
Q2 SQL
______ are used as a marker to identify the point up to which the transaction can be
MC
rolled back
Default mark: 1
Shuffle the choices? No
Number the choices? A
Penalty for each incorrect try: 0
# Answers Feedback Grade
Grant 0
A.  

B.   Savepoint 100
Commit 0
C.  

None of the above 0


D.  

  General feedback:    
  For any correct response: Your answer is correct.  
  For any incorrect response: Your answer is incorrect.  
  Hint 1:    
Show the number of correct
  No  
responses (Hint 1):
  Clear incorrect responses (Hint 1): No  
  Tags:    
Allows the selection of a single or multiple responses from a pre-defined list.
 
(MC/MA)
 

2
Q3 SQL

SELECT COUNT(sal) FROM student; will return MC


Default mark: 1
Shuffle the choices? No
Number the choices? A
Penalty for each incorrect try: 0
# Answers Feedback Grade
Count of sal column records from 100
A.   student table excluding null values

Count of sal column records from 0


B.   student table including null values

Count of all records from student 0


C.   table values

D.  
All of the above 0

  General feedback:    
  For any correct response: Your answer is correct.  
  For any incorrect response: Your answer is incorrect.  
  Hint 1:    
Show the number of correct
  No  
responses (Hint 1):
  Clear incorrect responses (Hint 1): No  
  Tags:    
Allows the selection of a single or multiple responses from a pre-defined list.
 
(MC/MA)

3
Q4 SQL
Identify the correct option from below to data from salary table MC
Default mark: 1
Shuffle the choices? No
Number the choices? A
Penalty for each incorrect try: 0
# Answers Feedback Grade
Delete hra from salary; 0
A.  

B.  
Delete from salary; 100

C.   Drop hra from salary; 0


D. Alter salary remove salary; 0
  General feedback:    
  For any correct response: Your answer is correct.  
  For any incorrect response: Your answer is incorrect.  
  Hint 1:    
Show the number of correct
  No  
responses (Hint 1):
  Clear incorrect responses (Hint 1): No  
  Tags:    
Allows the selection of a single or multiple responses from a pre-defined list.
 
(MC/MA)

4
Q5 SQL

How many Primary keys can have in a table? MC


Default mark: 1
Shuffle the choices? No
Number the choices? A
Penalty for each incorrect try: 0
# Answers Feedback Grade
A.   0 0
No limit 0
B.  

Only 1 100
C.  

Only 2 0
D.  

  General feedback:    
  For any correct response: Your answer is correct.  
  For any incorrect response: Your answer is incorrect.  
  Hint 1:    
Show the number of correct
  No  
responses (Hint 1):
  Clear incorrect responses (Hint 1): No  
  Tags:    
Allows the selection of a single or multiple responses from a pre-defined list.
 
(MC/MA)
 

5
Q6 SQL
Which of the following statement is correct regarding the difference
MC
between TRUNCATE, DELETE and DROP command?
Default mark: 1
Shuffle the choices? No
Number the choices? A
Penalty for each incorrect try: 0
# Answers Feedback Grade
DELETE operation can be rolled 100
A.   back but TRUNCATE and DROP
operations cannot be rolled back.
TRUNCATE and DROP operations 0
B.   can be rolled back but DELETE
operations cannot be rolled back.
C. All are Examples of DQL 0
D. All are an examples of DDL. 0
  General feedback:    
  For any correct response: Your answer is correct.  
  For any incorrect response: Your answer is incorrect.  
  Hint 1:    
Show the number of correct
  No  
responses (Hint 1):
  Clear incorrect responses (Hint 1): No  
  Tags:    
Allows the selection of a single or multiple responses from a pre-defined list.
 
(MC/MA)
 

6
Q7 SQL

Which of the following is not Constraint in SQL? MC


Default mark: 1
Shuffle the choices? No
Number the choices? A
Penalty for each incorrect try: 0
# Answers Feedback Grade
A.   Primary Key 0
B.   Not Null 0
C.   Union 100
D.   Foreign Key 0
  General feedback:    
  For any correct response: Your answer is correct.  
  For any incorrect response: Your answer is incorrect.  
  Hint 1:    
Show the number of correct
  No  
responses (Hint 1):
  Clear incorrect responses (Hint 1): No  
  Tags:    
Allows the selection of a single or multiple responses from a pre-defined list.
 
(MC/MA)
 

7
Q8 SQL
 In which of the following cases a DML statement is not executed? MC
Default mark: 1
Shuffle the choices? No
Number the choices? A
Penalty for each incorrect try: 0
# Answers Feedback Grade
When existing rows are modified.
A.   0

When some rows are deleted.


B.   0

When a table is deleted.


C. 100

None of the above


D. 0

  General feedback:    
  For any correct response: Your answer is correct.  
  For any incorrect response: Your answer is incorrect.  
  Hint 1:    
Show the number of correct
  No  
responses (Hint 1):
  Clear incorrect responses (Hint 1): No  
  Tags:    
Allows the selection of a single or multiple responses from a pre-defined list.
 
(MC/MA)
 

8
Q9 SQL
 _________ command makes the updates performed by the transaction
permanent in the database? MC

Default mark: 1
Shuffle the choices? No
Number the choices? A
Penalty for each incorrect try: 0
# Answers Feedback Grade
ROLLBACK
A.   0

COMMIT
B.   100

TRUNCATE
C.   0

DELETE
D.   0

  General feedback:    
  For any correct response: Your answer is correct.  
  For any incorrect response: Your answer is incorrect.  
  Hint 1:    
Show the number of correct
  No  
responses (Hint 1):
  Clear incorrect responses (Hint 1): No  
  Tags:    
Allows the selection of a single or multiple responses from a pre-defined list.
 
(MC/MA)
 

9
Q10 SQL

How can you change "Thomas" into "Michel" in the "LastName" column in MC
the Users table?

Default mark: 1
Shuffle the choices? No
Number the choices? A
Penalty for each incorrect try: 0
# Answers Feedback Grade
UPDATE User SET LastName =
'Thomas' INTO LastName =
A.   'Michel' 0

MODIFY Users SET LastName =


'Michel' WHERE LastName =
  'Thomas' 0

UPDATE Users SET LastName =


'Michel' WHERE LastName =
C. 'Thomas' 100

MODIFY Users SET LastName =


'Thomas' INTO LastName =
D. 'Michel' 0

  General feedback:    
  For any correct response: Your answer is correct.  
  For any incorrect response: Your answer is incorrect.  
  Hint 1:    
Show the number of correct
  No  
responses (Hint 1):
  Clear incorrect responses (Hint 1): No  
  Tags:    
Allows the selection of a single or multiple responses from a pre-defined list.
 
(MC/MA)
 

10

You might also like