Oracle Database MCQ Banner

Oracle Database Multiple Choice Questions (MCQs) and Answers

Master Oracle Database with Practice MCQs. Explore our curated collection of Multiple Choice Questions. Ideal for placement and interview preparation, our questions range from basic to advanced, ensuring comprehensive coverage of Oracle Database concepts. Begin your placement preparation journey now!

Q1

Q1 What is the primary purpose of the Oracle Database?

A

To develop mobile applications

B

To store, retrieve, and manage data efficiently in a relational database system

C

To visualize data in dashboards

D

To build web pages dynamically

Q2

Q2 Which type of database is Oracle Database classified as?

A

NoSQL database

B

Relational database

C

Graph database

D

Key-value store

Q3

Q3 What is the default character set used in Oracle Database?

A

UTF-8

B

ASCII

C

AL32UTF8

D

ISO-8859-1

Q4

Q4 Which Oracle SQL clause is used to filter records?

A

WHERE

B

GROUP BY

C

HAVING

D

ORDER BY

Q5

Q5 What is the extension of an Oracle Database data file?

A

.txt

B

.dbf

C

.log

D

.dat

Q6

Q6 Which feature allows Oracle Database to ensure high availability?

A

Partitioning

B

Replication

C

Failover

D

Clustering

Q7

Q7 Which Oracle Database tool is used for query optimization?

A

SQL Developer

B

SQL Plus

C

SQL Optimizer

D

Enterprise Manager

Q8

Q8 What is the role of an Oracle Listener in the database?

A

Handles database backups

B

Facilitates client connections

C

Manages schema objects

D

Optimizes queries

Q9

Q9 Which SQL command is used to create a database user in Oracle?

A

CREATE USER username IDENTIFIED BY password;

B

ADD USER username WITH password;

C

NEW USER username PASSWORD password;

D

DEFINE USER username IDENTIFIED password;

Q10

Q10 An Oracle SQL query fails with the error "ORA-12154: TNS:could not resolve the connect identifier specified." What is the most likely cause?

A

Incorrect database username

B

Incorrect network configuration

C

Insufficient privileges

D

Syntax error

Q11

Q11 What are the key components of Oracle Database Architecture?

A

Data files and Control files

B

Memory structures and Processes

C

Both

D

None

Q12

Q12 What is the primary role of the System Global Area (SGA)?

A

Store user session data

B

Optimize queries

C

Store shared database information

D

Backup data

Q13

Q13 Which process in Oracle Database is responsible for writing changes from memory to disk?

A

DBWn

B

LGWR

C

PMON

D

SMON

Q14

Q14 What is the purpose of Oracle Database Control Files?

A

Store user credentials

B

Record database changes and status

C

Define schema objects

D

Optimize query execution

Q15

Q15 Which memory structure in Oracle Database caches data blocks for query performance?

A

PGA

B

SGA

C

Library Cache

D

Data Buffer Cache

Q16

Q16 Which process handles user session recovery in Oracle Database?

A

SMON

B

PMON

C

DBWn

D

LGWR

Q17

Q17 What is the function of the Oracle Database Log Writer (LGWR) process?

A

Writes redo entries to disk

B

Performs query optimization

C

Cleans unused memory

D

Manages schema creation

Q18

Q18 How does Oracle Database ensure consistency during a system failure?

A

Using Checkpoints

B

Using Indexes

C

Using Tablespaces

D

Using Buffers

Q19

Q19 Which SQL query retrieves the database name and status in Oracle?

A

SELECT * FROM DATABASE_INFO;

B

SELECT NAME, STATUS FROM V$DATABASE;

C

SHOW DATABASE NAME;

D

SELECT DATABASE STATUS;

Q20

Q20 An Oracle instance fails to start with the error "ORA-01109: database not open." What is the most likely reason?

A

Control file corruption

B

Database not mounted

C

Redo log corruption

D

Data file corruption

Q21

Q21 Which SQL clause is used to retrieve unique values from a column?

A

SELECT DISTINCT

B

WHERE

C

GROUP BY

D

ORDER BY

Q22

Q22 Which keyword is used to sort data in ascending order in SQL?

A

ORDER BY

B

ASC

C

DESC

D

GROUP BY

Q23

Q23 What does the COUNT() function return in SQL?

A

The total number of rows

B

The total sum of column values

C

The average of column values

D

The first row of a table

Q24

Q24 Which SQL operator is used to filter rows with matching patterns?

A

LIKE

B

IN

C

NOT

D

BETWEEN

Q25

Q25 Which function is used to concatenate strings in Oracle SQL?

A

CONCAT()

B

MERGE()

C

APPEND()

D

JOIN()

Q26

Q26 Which SQL clause is used to filter groups after grouping is applied?

A

WHERE

B

HAVING

C

GROUP BY

D

ORDER BY

Q27

Q27 Write an SQL query to retrieve employee names starting with 'A'.

A

SELECT * FROM employees WHERE name LIKE 'A%';

B

SELECT name FROM employees WHERE name LIKE 'A%';

C

SELECT name FROM employees;

D

SELECT name LIKE 'A%' FROM employees;

Q28

Q28 Write an SQL query to count all employees in the employees table.

A

SELECT COUNT(*) FROM employees;

B

SELECT ALL FROM employees;

C

SELECT COUNT(employees);

D

SELECT COUNT() FROM table;

Q29

Q29 Write an SQL query to calculate the average salary of employees.

A

SELECT AVG(salary) FROM employees;

B

SELECT AVG(*) FROM employees;

C

SELECT salary FROM employees WHERE AVG;

D

SELECT AVERAGE(salary) FROM employees;

Q30

Q30 A query returns incorrect results due to an improperly used alias. Identify the issue.

A

Column alias missing in SELECT

B

Column alias used in WHERE

C

Column alias duplicated

D

Column alias missing in ORDER BY

ad verticalad vertical
ad