Basic SQL Quiz Online Test1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

1/18/23, 10:44 AM Basic SQL Quiz Online Test

Attempted 18/18 Correct 0 Score 0


 Start the Quiz (/q
SQL (/topics/2) /  Test your SQL fundamentals (/topics/2) /  Basic SQL Quiz /   0 (/quiz/127/favourites)  Back (https://www.aliensbrain.com/topics/2/sql)
‹ 1 2 3 4 5 6 7 8 9 10 11 12 1 ›
 Share
(https://www.facebook.com/di
ADVERTISEMENT
app_id=1829093160660942&d
sql-
quiz&redirect_uri=https://alien
sql-quiz)

Basic SQL Quiz


Description: Basic SQL Quiz

Number of Questions: 18

Created by: Aliensbrain Bot

Tags: sql (/tag/40/sql/quiz)

1.

What does SQL stand for?


(/question/1156/what-does-sql-stand-for)
 sql (/tag/40/sql/question)

A Strong Question Language

B Structured Question Language

✓ C Structured Query Language

 Hide answer
Correct Option: C

2.

Which SQL statement is used to extract data from a database?


(/question/1157/which-sql-statement-is-used-to-extract-data-from-a-database)
 sql (/tag/40/sql/question)

A GET

B OPEN

C EXTRACT

✓ D SELECT

E QUERY

 Hide answer
Correct Option: D

3.

Which SQL statement is used to update data in a database?


(/question/1158/which-sql-statement-is-used-to-update-data-in-a-database)
 sql (/tag/40/sql/question)

✓ A UPDATE

B SAVE AS

C MODIFY

D SAVE

 Hide answer
Correct Option: A

https://www.aliensbrain.com/quiz/127/basic-sql-quiz 1/6
1/18/23, 10:44 AM Basic SQL Quiz Online Test
4.  
Ads by
Seen this ad Not interested Ad was
Which SQL statement is used to delete data from amultiple
database?
times in this ad inappropriate
Stop seeing this ad Why this ad? 
(/question/1159/which-sql-statement-is-used-to-delete-data-from-a-database)
Attempted 18/18 Correct 0 Score 0
 Start the Quiz (/q
 sql (/tag/40/sql/question)

‹ 1 2
A 3 TRUNCATE
4 5 6 7 8 9 10 11 12 1 ›
 Share
✓ B DELETE (https://www.facebook.com/di
ADVERTISEMENT
app_id=1829093160660942&d
C REMOVE sql-
quiz&redirect_uri=https://alien
sql-quiz)
 Hide answer
Correct Option: B

5.

Which SQL statement is used to insert new data in a database?


(/question/1160/which-sql-statement-is-used-to-insert-new-data-in-a-database)
 sql (/tag/40/sql/question)

A ADD RECORD

B ADD INTO

✓ C INSERT

D ADD NEW

 Hide answer
Correct Option: C

6.

With SQL, how do you select a column named "FirstName" from a table named "Persons"?
(/question/1161/with-sql-how-do-you-select-a-column-named-firstname-from-a-t)
 sql (/tag/40/sql/question)

A EXTRACT FirstName FROM Persons

✓ B SELECT FirstName FROM Persons

C SELECT Persons.FirstName

 Hide answer
Correct Option: B

7.

With SQL, how do you select all the columns from a table named "Persons"?
(/question/1162/with-sql-how-do-you-select-all-the-columns-from-a-table-name)
 sql (/tag/40/sql/question)

A SELECT [all] FROM Persons

B SELECT All Persons

C SELECT *.Persons

✓ D SELECT * FROM Persons

 Hide answer
Correct Option: D

8.

With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" is "Peter"?
(/question/1163/with-sql-how-do-you-select-all-the-records-from-a-table-name)
 sql (/tag/40/sql/question)

A SELECT [all] FROM Persons WHERE FirstName='Peter'

B SELECT * FROM Persons WHERE FirstName LIKE 'Peter'

C SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter'

✓ D SELECT * FROM Persons WHERE FirstName='Peter'

https://www.aliensbrain.com/quiz/127/basic-sql-quiz 2/6
1/18/23, 10:44 AM Basic SQL Quiz Online Test
 Hide answer
Correct Option: D

Attempted 18/18 Correct 0 Score 0


9.  Start the Quiz (/q

‹ 1 With
2 3 SQL,
4 5how
6 do
7 you
8 9 select
10 11all the
12 1 ›
records from a table named "Persons" where the value of the column "FirstName" starts with
 Share
an "a"?
(https://www.facebook.com/di
(/question/1164/with-sql-how-do-you-select-all-the-records-from-a-table-name) ADVERTISEMENT
app_id=1829093160660942&d
 sql (/tag/40/sql/question) sql-
quiz&redirect_uri=https://alien
A SELECT * FROM Persons WHERE FirstName='%a%' sql-quiz)

B SELECT * FROM Persons WHERE FirstName LIKE '%a'

C SELECT * FROM Persons WHERE FirstName='a'

✓ D SELECT * FROM Persons WHERE FirstName LIKE 'a%'

E SELECT * FROM Persons WHERE FirstName='a'"

 Hide answer
Correct Option: D

10. The OR operator displays a record if ANY conditions listed are true. The AND operator displays a record if ALL of the conditions
listed are true
 sql (/tag/40/sql/question)

✓ A True

B False

 Hide answer
Correct Option: A

11.

Given an employees table as follows: empid name managerid a1 bob NULL b1 jim a1 B2 tom a1 What value will select count(*) from
employees return?
(/question/1176/given-an-employees-table-as-follows-empid-name-managerid-a1-)
 sql (/tag/40/sql/question)

A 1

B 2

✓ C 3

D none of the above

 Hide answer
Correct Option: C

12.

The result of a SELECT statement can contain duplicate rows.


(/question/1177/the-result-of-a-select-statement-can-contain-duplicate-rows)
 sql (/tag/40/sql/question)

✓ A True

B False

 Hide answer
Correct Option: A

13. Sometimes the expression "select count(*)" will return fewer rows than the expression "select count(value)".
 sql (/tag/40/sql/question)

A True

✓ B False

 Hide answer

https://www.aliensbrain.com/quiz/127/basic-sql-quiz 3/6
1/18/23, 10:44 AM Basic SQL Quiz Online Test

Correct Option: B

14.
Attempted 18/18 Correct 0 Score 0
 Start the Quiz (/q
What type of lock will deny users any access to a table?
‹ 1 2 3 4 5 6 7 8 9 10 11 12 1 ›
(/question/1179/what-type-of-lock-will-deny-users-any-access-to-a-table)  Share
 sql (/tag/40/sql/question) (https://www.facebook.com/di
ADVERTISEMENT
app_id=1829093160660942&d
A EXPLICIT sql-
B IMPLICIT quiz&redirect_uri=https://alien
sql-quiz)
✓ C EXCLUSIVE

D SHARED

E READ ONLY

 Hide answer
Correct Option: C

15. Which of the following is the correct SQL statement to use to remove rows from a table?
 sql (/tag/40/sql/question)

A DROP

B REMOVE ROW

✓ C DELETE

D DELETE ROW

 Hide answer
Correct Option: C

16. The only way to join two tables is by using standard, ANSI syntax.
 sql (/tag/40/sql/question)

A True

✓ B False

 Hide answer
Correct Option: B

17. A NULL value is treated as a blank or 0.


 sql (/tag/40/sql/question)

A True

✓ B False

 Hide answer
Correct Option: B

18.

The left outer join is one type of outer join. Another one is the.
(/question/1183/the-left-outer-join-is-one-type-of-outer-join-another-one-is)

https://www.aliensbrain.com/quiz/127/basic-sql-quiz 4/6
1/18/23, 10:44 AM Basic SQL Quiz Online Test
 sql (/tag/40/sql/question)

A right

full
AttemptedB 18/18 Correct 0 Score 0
 Start the Quiz (/q
C right outer

‹ 1 2D 3 full
4 outer
5 6 7 8 9 10 11 12 1 ›
 Share
✓ E all of the above (https://www.facebook.com/di
ADVERTISEMENT
app_id=1829093160660942&d
sql-
quiz&redirect_uri=https://alien
 Hide answer
sql-quiz)
Correct Option: E

- Hide questions

 Share this quiz with your friends


0 Comments Sort by Oldest

Add a comment...

Facebook Comments plugin

Find more quizzes from top tags


general knowledge (/tag/435/general-knowledge/quiz)

3600 Quizzes (/tag/435/general-knowledge/quiz) 119725 Questions (/tag/435/general-knowledge/question)

technology (/tag/268/technology/quiz)

307 Quizzes (/tag/268/technology/quiz) 36705 Questions (/tag/268/technology/question)

sports (/tag/437/sports/quiz)

962 Quizzes (/tag/437/sports/quiz) 19148 Questions (/tag/437/sports/question)

history (/tag/438/history/quiz)

1132 Quizzes (/tag/438/history/quiz) 13047 Questions (/tag/438/history/question)

physics (/tag/4456/physics/quiz)

550 Quizzes (/tag/4456/physics/quiz) 11687 Questions (/tag/4456/physics/question)

biology (/tag/2585/biology/quiz)

1078 Quizzes (/tag/2585/biology/quiz) 11791 Questions (/tag/2585/biology/question)

science & technology (/tag/436/science-technology/quiz)

551 Quizzes (/tag/436/science-technology/quiz) 11015 Questions (/tag/436/science-technology/question)

chemistry (/tag/5915/chemistry/quiz)

462 Quizzes (/tag/5915/chemistry/quiz) 9309 Questions (/tag/5915/chemistry/question)

maths (/tag/15085/maths/quiz)

457 Quizzes (/tag/15085/maths/quiz) 8210 Questions (/tag/15085/maths/question)

softskills (/tag/449/softskills/quiz)

0 Quizzes (/tag/449/softskills/quiz) 7131 Questions (/tag/449/softskills/question)

© Aliensbrain | all rights reserved About (/about) Contact (/contact) Terms and Condition (/termsandcondition) Privacy Policy (/privacypolicy)

https://www.aliensbrain.com/quiz/127/basic-sql-quiz 5/6
1/18/23, 10:44 AM Basic SQL Quiz Online Test

Attempted 18/18 Correct 0 Score 0


 Start the Quiz (/q

‹ 1 2 3 4 5 6 7 8 9 10 11 12 1 ›
 Share
(https://www.facebook.com/di
ADVERTISEMENT
app_id=1829093160660942&d
sql-
quiz&redirect_uri=https://alien
sql-quiz)

https://www.aliensbrain.com/quiz/127/basic-sql-quiz 6/6

You might also like