0% found this document useful (0 votes)
3K views

Oracle Database Programming - Section 1

1. The document contains a series of multiple choice questions about databases and SQL. It covers topics like the purpose of databases, the structure of relational databases, and SQL commands like SELECT, INSERT, and DESCRIBE. 2. Most questions can be answered by choosing either true or false, or selecting the correct SQL keyword or command. Correct answers are indicated, as well as feedback for incorrect selections. 3. The questions test knowledge about the basic concepts of databases, relational tables, SQL queries, and commands like SELECT, INSERT, WHERE, and JOIN.

Uploaded by

Angga Wijaya
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3K views

Oracle Database Programming - Section 1

1. The document contains a series of multiple choice questions about databases and SQL. It covers topics like the purpose of databases, the structure of relational databases, and SQL commands like SELECT, INSERT, and DESCRIBE. 2. Most questions can be answered by choosing either true or false, or selecting the correct SQL keyword or command. Correct answers are indicated, as well as feedback for incorrect selections. 3. The questions test knowledge about the basic concepts of databases, relational tables, SQL queries, and commands like SELECT, INSERT, WHERE, and JOIN.

Uploaded by

Angga Wijaya
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Section 1

(Answer all questions in this section)


1. 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.

2. What command can be used to create a new row in a table in the


database?
Mark for Review

(1) Points
INSERT (*)
NEW
ADD
CREATE
Correct.

3. You cannot use computers unless you completely understand exactly how
they work. True or False?
Mark for Review

(1) Points
True
False (*)
Correct.

4. The DESCRIBE command returns all rows from a table. True or False?
Mark for Review

(1) Points
True
False (*)
Incorrect. Refer to Section 1 Lesson 1.
5. 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
6. What is a NULL value?
Mark for Review

(1) Points
A known value less than zero
A blank space
An unknown value (*)
A perfect zero
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 only
Selection and projection only (*)
Projection, selection and joining
Selection only
Correct.
8. What would you use in the SELECT clause to return all the columns in the
table?
Mark for Review

(1) Points
A plus sign (+)
A minus sign (-)
The ALL keyword
An asterisk (*) (*)
Correct.

9. In a SQL statement, which clause specifies one or more columns to be


returned by the query?
Mark for Review

(1) Points
SELECT (*)
FROM
WHERE
Any of the above options; you can list columns wherever you want to in a
SELECT statement.
Incorrect. See Section 1 Lesson 3.

10. The SELECT statement retrieves information from the database. In a


SELECT statement, you can do all of the following EXCEPT:
Mark for Review

(1) Points
Manipulation (*)
Selection
Joining
Projection
Correct.
11. In the real world, databases used by businesses generally have a single
table . True or False?
Mark for Review

(1) Points
True
False (*)
Correct

12. What language is used to query data in a Relational Database?


Mark for Review

(1) Points
BASIC
SQL (*)
Java
C++
Correct

13. A Relational Database generally contains two or more tables. True or


False?
Mark for Review

(1) Points
True (*)
False
Correct

14. 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

15. Every time you shop online, it is likely you will be accessing a database.
True or False?
Mark for Review

(1) Points
True (*)
False
1. Which SQL keyword specifies that an alias will be substituted for a column
name in the output of a SQL query?
Mark for Review

(1) Points
AND
OR
AS (*)
SUBSTITUTE
Correct.

2. You query the database with this SQL statement:


SELECT * FROM students;
Why would you use this statement?

Mark for Review

(1) Points
To delete data
To insert data
To view data (*)
To display the table structure
Correct.

3. What would you use in the SELECT clause to return all the columns in the
table?
Mark for Review

(1) Points
A minus sign (-)
The ALL keyword
A plus sign (+)
An asterisk (*) (*)
Correct.

4. In a SQL statement, which clause specifies one or more columns to be


returned by the query?
Mark for Review
(1) Points
SELECT (*)
FROM
WHERE
Any of the above options; you can list columns wherever you want to in a
SELECT statement.
Correct.

5. SELECT * FROM departments; is a:


Mark for Review

(1) Points
Declaration
Strategy
Statement (*)
Keyword
Correct
6. Every time you shop online, it is likely you will be accessing a database.
True or False?
Mark for Review

(1) Points
True (*)
False
Correct

7. What language is used to query data in a Relational Database?


Mark for Review

(1) Points
BASIC
SQL (*)
Java
C++
Correct

8. Every row in a relational database table is unique.


Mark for Review
(1) Points
True (*)
False
Correct

9. A Relational Database generally contains two or more tables. True or


False?
Mark for Review

(1) Points
True (*)
False
Correct

10. Most of the well know Internet search engines use databases to store
data. True or False?
Mark for Review

(1) Points
True (*)
False
Correct
11. What command can be used to create a new row in a table in the
database?
Mark for Review

(1) Points
ADD
INSERT (*)
CREATE
NEW
Incorrect. Refer to Section 1 Lesson 1.

12. 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

13. What command do you use to add rows to a table


Mark for Review

(1) Points
NEW_ROW
INSERT (*)
ADD_ROW
ADD
Correct

14. There is only one kind of software used by all computers. True or False?
Mark for Review

(1) Points
True
False (*)
Correct.

15. The DESCRIBE command returns all rows from a table. True or False?
Mark for Review

(1) Points
True
False (*)
Correct.

You might also like