FIFA-2022 Career Guide Free Tutorials Go to Your University Placement Preparation 
0 like 0 dislike
10.2k views
in Technical Questions by Goeduhub's Expert (5.8k points)
MCQ's Questions on SQL along with answers

2 Answers

0 like 0 dislike
by Goeduhub's Expert (5.8k points)
edited by
 
Best answer

SQL MCQ's Question Set 2

Q.1. Which is not DDL (data definition language) operation

  1. Renaming a table
  2. SQL create table
  3. Add a column to an existing table
  4. Update data into a table in SQL database

Answer:- (4)


Q.2. Which statement is correct? A table can have

  1. many primary key and many unique key
  2. one primary key and one unique key
  3. one primary key and many unique key
  4. many primary key and one unique key

Answer:- (3)


Master SQL from UDACITY


Q.3. Which SQL commands can be used to delete all records from the table in a sql database?

  1. Delete
  2. Delete with where condition
  3. TRUNCATE
  4. DROP

Answer:- (1) and (3)


Q.4. SQL Command to remove stored procedure SQL

  1. Remove
  2. Drop
  3. Delete
  4. Erase

Answer:- (2)


Q.5. Which SQL sub language is used for creating and destroying table structure?

  1. DDL
  2. DML
  3. TCL
  4. DCL

Answer:- (2)


Q.6. Which SQL function is used to count the number of rows in a SQL query?

  1. COUNT()
  2. NUMBER()
  3. SUM()
  4. COUNT(*)

Answer:- (4)


Q.7. What is the purpose of the SQL AS clause?

  1. a) The AS SQL clause is used to change the name of a column in the result set or to assign a name to a derived column
  2. b) The AS clause is used with the JOIN clause only
  3. c) The AS clause defines a search condition
  4. d) All of the mentioned

Answer:- (1)


Q.8. The UNION SQL clause can be used with _____________

  1. a) SELECT clause only
  2. b) DELETE and UPDATE clauses
  3. c) UPDATE clause only
  4. d) All of the mentioned

Answer:- (1)


Q.9. How can you change “Hansen” into “Nilsen” in the “LastName” column in the Persons table?

  1. a) UPDATE Persons SET LastName=’Hansen’ INTO LastName=’Nilsen’
  2. b) MODIFY Persons SET LastName=’Nilsen’ WHERE LastName=’Hansen’
  3. c) MODIFY Persons SET LastName=’Hansen’ INTO LastName=’Nilsen’
  4. d) UPDATE Persons SET LastName=’Nilsen’ WHERE LastName=’Hansen’

Answer:- (4)


Q.10. What is the meaning of LIKE ‘%0%0%’?

  1. a) Feature begins with two 0’s
  2. b) Feature ends with two 0’s
  3. c) Feature has more than two 0’s
  4. d) Feature has two 0’s in it, at any position

Answer:- (4)


Q.11. Which of the following statements is true concerning subqueries?

  1. a) Involves the use of an inner and outer query
  2. b) Cannot return the same result as a query that is not a subquery
  3. c) Does not start with the word SELECT
  4. d) All of the mentioned

Answer:- (1)


Q.12.  Which of the following statement is true?

  1. a) Views could be looked as an additional layer on the table which enables us to protect intricate or sensitive data based upon our needs
  2. b) Views are virtual tables that are compiled at run time
  3. c) Creating views can improve query response time
  4. d) All of the Mentioned

Answer:- (4)


Q.13. The phrase “greater than at least one” is represented in SQL by ___________

  1. a) < all
  2. b) < some
  3. c) > all
  4. d) > some

Answer:- (4)


Q.14. Aggregate functions are functions that take a ___________ as input and return a single value.

  1. a) Collection of values
  2. b) Single value
  3. c) Double value
  4. d) All of the mentioned

Answer:- (1)


Q.15. The ________ keyword is used to access attributes of preceding tables or subqueries in the from clause.

  1. a) In
  2. b) Lateral
  3. c) Having
  4. d) With

Answer:- (2)


For more Technical MCQ's and Interview Questions Click here


0 like 0 dislike
by Goeduhub's Expert (9.3k points)

Learn & Improve In-Demand Data Skills Online in this Summer With  These High Quality Courses[Recommended by GOEDUHUB]:-

Best Data Science Online Courses[Lists] on:-

Claim your 10 Days FREE Trial for Pluralsight.

Best Data Science Courses on Datacamp
Best Data Science Courses on Coursera
Best Data Science Courses on Udemy
Best Data Science Courses on Pluralsight
Best Data Science Courses & Microdegrees on Udacity
Best Artificial Intelligence[AI] Courses on Coursera
Best Machine Learning[ML] Courses on Coursera
Best Python Programming Courses on Coursera
Best Artificial Intelligence[AI] Courses on Udemy
Best Python Programming Courses on Udemy

Related questions

0 like 0 dislike
2 answers 56.5k views
0 like 0 dislike
2 answers 32.0k views
0 like 0 dislike
2 answers 28.5k views
0 like 0 dislike
2 answers 6.7k views

 Important Lists:

Important Lists, Exams & Cutoffs Exams after Graduation PSUs

 Goeduhub:

About Us | Contact Us || Terms & Conditions | Privacy Policy ||  Youtube Channel || Telegram Channel © goeduhub.com Social::   |  | 

 

Free Online Directory

...