0% found this document useful (0 votes)
394 views3 pages

Database Basics and SQL Quiz

This document contains a series of true/false and multiple choice questions about databases and the SQL language. It covers topics like: - How search engines use databases - The role of databases in society - SQL being the main language for querying relational databases - Tables containing columns with the same data type - Operator precedence in SQL expressions - The SELECT statement's capabilities for selection and projection - The WHERE clause filtering query results - Programming languages varying by platform - The INSERT command adding new rows

Uploaded by

wevikyu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
394 views3 pages

Database Basics and SQL Quiz

This document contains a series of true/false and multiple choice questions about databases and the SQL language. It covers topics like: - How search engines use databases - The role of databases in society - SQL being the main language for querying relational databases - Tables containing columns with the same data type - Operator precedence in SQL expressions - The SELECT statement's capabilities for selection and projection - The WHERE clause filtering query results - Programming languages varying by platform - The INSERT command adding new rows

Uploaded by

wevikyu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

. Most of the well know Internet search engines use databases to store data.

True
or False? Mark for Review
(1) Points
True (*)
False
Incorrect Incorrect. Refer to Section 1 Lesson 2.
2. Databases are used in most countries and by most governments. Life, as we know
it, would change drastically if we no longer had access to databases. True or
False? Mark for Review
(1) Points
True (*)
False
Correct Correct
3. What language is used to query data in a Relational Database? Mark for Review
(1) Points
BASIC
SQL (*)
C++
Java
Correct Correct

4. A Relational Database generally contains two or more tables. True or False? Mark
for Review
(1) Points
True (*)
False
Correct Correct
5. Columns in a database table contain data with the same _________: Mark for
Review
(1) Points
Type (*)
Row
Field
Key
Incorrect Incorrect. Refer to Sec
���������\
Section 1 Quiz
(Answer all questions in this section)
6. Which statement best describes how arithmetic expressions are handled? Mark for
Review
(1) Points
Multiplication and addition operations are handled before subtraction and division
operations.
Multiplication and subtraction operations are handled before any other operations.
Division and multiplication operations are handled before subtraction and addition
operations. (*)
Addition operations are handled before any other operations.
Correct Correct.
7. You query the database with this SQL statement:
SELECT *
FROM transaction
WHERE product_id = 4569;
Which SQL SELECT statement capabilities are achieved when this statement is
executed?
Mark for Review
(1) Points
Projection, selection and joining
Projection only
Selection only
Selection and projection only (*)
Incorrect Incorrect. See Section 1 Lesson 3.
8. SELECT * FROM departments; is a: Mark for Review
(1) Points
Strategy
Statement (*)
Keyword
Declaration
Correct Correct
9. The order of operator precedence is Mark for Review
(1) Points
/ + � *
* � + /
* / + � (*)
None of the above
Correct Correct
10. The SQL SELECT statement is capable of: Mark for Review
(1) Points
Selection and protection
Selection and projection (*)
Projection and updating
None of the above
Correct Correct
�����-
Section 1 Quiz
(Answer all questions in this section)
11. The _______ clause can be added to a SELECT statement to return a subset of the
data. Mark for Review
(1) Points
EVERY
ANYWHERE
WHERE (*)
WHICH
Correct Correct.
12. All computers in the world speak the same languages, so you only need to learn
one programming language � Oracle SQL. True or False? Mark for Review
(1) Points
True
False (*)
Correct Correct.
13. What command do you use to add rows to a table Mark for Review
(1) Points
NEW_ROW
INSERT (*)
ADD_ROW
ADD
Correct Correct
14. Examine the follolowing SELECT statement.
SELECT *
FROM employees;
This statement will retrieve all the rows in the employees table. True or False?
Mark for Review
(1) Points
True (*)
False
Correct Correct
15. The DESCRIBE command returns all rows from a table. True or False? Mark for
Review
(1) Points
True
False (*)
Correct Correct.

You might also like