Oracle Online Test Series 1, Oracle Mock Test, Online Quiz | Mock Exam
Finish Quiz
0 of 30 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
Information
Oracle Online Test Series 1, Free Oracle Quiz, Online Oracle, online Test Quiz 1. Oracle Online Test-1 Question and Answers 2024. Oracle online Test Quiz 1. Oracle Test 1 Free Mock Test 2024. Oracle Online Test 1 Question and Answers in PDF. The Oracle online mock test paper is free for all students. Oracle Online Test is very useful for exam preparation and getting for Rank. Oracle Online Test 1 Question and Answers in English. Oracle Online Test for topic via String Handling Mode. Here we are providing Oracle Online Test in English Now Test your self for “Oracle Online Test in English” Exam by using below quiz…
This paper has 30 questions.
Time allowed is 30 minutes.
The Oracle Online Test is Very helpful for all students. Now Scroll down below n click on “Start Quiz” or “Start Test” and Test yourself.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 30 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
Pos. | Name | Entered on | Points | Result |
---|---|---|---|---|
Table is loading | ||||
No data available | ||||
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- Answered
- Review
-
Question 1 of 30
1. Question
In the following query, which expression is evaluated first?
SELECT id_number, (quantity – 100 / 0.15 – 35 * 20) FROM inventoryCorrect
According to the precedence of expression as in BODMAS (Brackets, Order, Division, Multiplication, Addition, Subtraction) the expression is evaluated, which ensures the equation steps are completed in the right order. So, the correct answer is 100 / 0.15.
Incorrect
According to the precedence of expression as in BODMAS (Brackets, Order, Division, Multiplication, Addition, Subtraction) the expression is evaluated, which ensures the equation steps are completed in the right order. So, the correct answer is 100 / 0.15.
-
Question 2 of 30
2. Question
Which of the following queries are legal?
Correct
Correct answer is: SELECT deptno, avg(sal) FROM emp GROUP BY deptno;
For aggregate functions (COUNT, MAX, MIN, SUM, AVG), GROUP BY clause is mandatory.Incorrect
Correct answer is: SELECT deptno, avg(sal) FROM emp GROUP BY deptno;
For aggregate functions (COUNT, MAX, MIN, SUM, AVG), GROUP BY clause is mandatory. -
Question 3 of 30
3. Question
Which of the following queries displays the sum of all employee salaries for those employees not making commission, for each job, including only those sums greater than 2500?
Correct
Correct answer is: select job, sum(sal) from emp where comm is null group by job having sum(sal) > 2500;
For aggregate functions (COUNT, MAX, MIN, SUM, AVG), GROUP BY clause is mandatory. Otherwise, you will get the error.Incorrect
Correct answer is: select job, sum(sal) from emp where comm is null group by job having sum(sal) > 2500;
For aggregate functions (COUNT, MAX, MIN, SUM, AVG), GROUP BY clause is mandatory. Otherwise, you will get the error. -
Question 4 of 30
4. Question
All of the following can only be used with numeric data types except:
Correct
AVG, SUM, STDDEV can only be used with numeric data types except COUNT. COUNT is used for counting the number of rows, tables and collections. It returns the number of rows returned by the query. You can use it as an aggregate or analytic function.
Incorrect
AVG, SUM, STDDEV can only be used with numeric data types except COUNT. COUNT is used for counting the number of rows, tables and collections. It returns the number of rows returned by the query. You can use it as an aggregate or analytic function.
-
Question 5 of 30
5. Question
What operator is used to prevent the error: ‘ORA-01427:single row sub query returns more than one row’ ?
Correct
IN operator is used to prevent the error: ‘ORA-01427:single row sub query returns more than one row’. IN operator is used to specify which values to compare or reword the query so only one row is retrieved.
Incorrect
IN operator is used to prevent the error: ‘ORA-01427:single row sub query returns more than one row’. IN operator is used to specify which values to compare or reword the query so only one row is retrieved.
-
Question 6 of 30
6. Question
Which of the following SQL operations demands the use of wild cards comparisons?
Correct
LIKE determines if a character string matches a pattern. It is used when only a fragment of a text value is known. It supports two wildcard match options: % and _.
Incorrect
LIKE determines if a character string matches a pattern. It is used when only a fragment of a text value is known. It supports two wildcard match options: % and _.
-
Question 7 of 30
7. Question
Indicate whether this statement is true or false. A foreign key column must contain unique values.
Correct
The above statement is wrong. A foreign key column must not contain unique values. A FOREIGN KEY constraint can contain null values; however, if any column of a composite FOREIGN KEY constraint contains null values, verification of all values that make up the FOREIGN KEY constraint is skipped. To make sure that all values of a composite FOREIGN KEY constraint are verified, specify NOT NULL on all the participating columns. A foreign key (FK) is a column or combination of columns that is used to establish and enforce a link between the data in two tables. You can create a foreign key by defining a FOREIGN KEY constraint when you create or modify a table.
Incorrect
The above statement is wrong. A foreign key column must not contain unique values. A FOREIGN KEY constraint can contain null values; however, if any column of a composite FOREIGN KEY constraint contains null values, verification of all values that make up the FOREIGN KEY constraint is skipped. To make sure that all values of a composite FOREIGN KEY constraint are verified, specify NOT NULL on all the participating columns. A foreign key (FK) is a column or combination of columns that is used to establish and enforce a link between the data in two tables. You can create a foreign key by defining a FOREIGN KEY constraint when you create or modify a table.
-
Question 8 of 30
8. Question
A stored procedure is only executed
Correct
A stored procedure is only executed when they explicitly called. It is a set of functionality which is executed when it is explicitly invoked. Stored Procedure is a set of Structured Query Language (SQL) statements. It can be helpful in controlling access to data, preserving data integrity and improving productivity.
Incorrect
A stored procedure is only executed when they explicitly called. It is a set of functionality which is executed when it is explicitly invoked. Stored Procedure is a set of Structured Query Language (SQL) statements. It can be helpful in controlling access to data, preserving data integrity and improving productivity.
-
Question 9 of 30
9. Question
A database trigger is an alternative for
Correct
A database trigger is an alternative for foreign key for implementing referential integrity. A trigger is a special kind of stored procedure that automatically executes when an event occurs in the database server.
Incorrect
A database trigger is an alternative for foreign key for implementing referential integrity. A trigger is a special kind of stored procedure that automatically executes when an event occurs in the database server.
-
Question 10 of 30
10. Question
Which of the following statements regarding primary key is false?
Correct
Primary key may not contain duplicate values. Primary Key is a combination of Unique and NOT NULL Constraints so it can’t have duplicate values or any NULL values. A primary key is a special relational database table column (or combination of columns) designated to uniquely identify all table records. It must contain a unique value for each row of data.
Incorrect
Primary key may not contain duplicate values. Primary Key is a combination of Unique and NOT NULL Constraints so it can’t have duplicate values or any NULL values. A primary key is a special relational database table column (or combination of columns) designated to uniquely identify all table records. It must contain a unique value for each row of data.
-
Question 11 of 30
11. Question
A hot backup is
Correct
A hot backup is taking up the backup of the database while it is still up and running. A few systems that need to support continuous operation, it is difficult to bring down the database without interrupting the service provided to the users. In such cases, hot backup approach should be used. While taking the backup, if the database remains open and available to users then this kind of back up is referred to as hot backup. In hot backup, the database has to run all the time due to critical requirements. Because of this there may be changes in the data files while backup is being taken.
Incorrect
A hot backup is taking up the backup of the database while it is still up and running. A few systems that need to support continuous operation, it is difficult to bring down the database without interrupting the service provided to the users. In such cases, hot backup approach should be used. While taking the backup, if the database remains open and available to users then this kind of back up is referred to as hot backup. In hot backup, the database has to run all the time due to critical requirements. Because of this there may be changes in the data files while backup is being taken.
-
Question 12 of 30
12. Question
A data block is
Correct
A data block is the smallest logical storage unit for a database object. Data block is the optimum level of storage. Data blocks are also called logical blocks, Oracle blocks, or pages. At the finest level of granularity, Oracle stores data in data blocks. A data block corresponds to a specific number of bytes of physical database space on disk.
Incorrect
A data block is the smallest logical storage unit for a database object. Data block is the optimum level of storage. Data blocks are also called logical blocks, Oracle blocks, or pages. At the finest level of granularity, Oracle stores data in data blocks. A data block corresponds to a specific number of bytes of physical database space on disk.
-
Question 13 of 30
13. Question
What are the two ways to determine the structure of a table in database?
Correct
There is no dbms_metadata_get_ddl package. There is dbms_metadata package and get_ddl() function. ( dbms_metadata.get_ddl() )
Incorrect
There is no dbms_metadata_get_ddl package. There is dbms_metadata package and get_ddl() function. ( dbms_metadata.get_ddl() )
-
Question 14 of 30
14. Question
Where would you look for errors from the database engine?
Correct
The alert log file (also referred to as the ALERT.LOG) is a chronological log of messages and errors written out by an Oracle Database. Typical messages found in this file is: database startup, shutdown, log switches, space errors, etc. This file should constantly be monitored to detect unexpected messages and corruptions. Oracle will automatically create a new alert log file whenever the old one is deleted.
Incorrect
The alert log file (also referred to as the ALERT.LOG) is a chronological log of messages and errors written out by an Oracle Database. Typical messages found in this file is: database startup, shutdown, log switches, space errors, etc. This file should constantly be monitored to detect unexpected messages and corruptions. Oracle will automatically create a new alert log file whenever the old one is deleted.
-
Question 15 of 30
15. Question
Which type of index should be used on a fact table?
Correct
Bitmap indexes are used on a fact table. Bitmap indexes are widely used in data warehousing environments. It reduces response time for large classes of ad hoc queries and storage requirements compared to other indexing techniques. It provides efficient maintenance during parallel DML and loads.
Incorrect
Bitmap indexes are used on a fact table. Bitmap indexes are widely used in data warehousing environments. It reduces response time for large classes of ad hoc queries and storage requirements compared to other indexing techniques. It provides efficient maintenance during parallel DML and loads.
-
Question 16 of 30
16. Question
What are the two types of tables involved in producing a star schema?
Correct
Incorrect
-
Question 17 of 30
17. Question
Which of the following instance startup stages to a usable state where normal users might access them?
Correct
Following are the stages of instance startup to a usable state where normal users may access it:
STARTUP NOMOUNT – Instance startup
STARTUP MOUNT – The database is mounted
STARTUP OPEN – The database is openedIncorrect
Following are the stages of instance startup to a usable state where normal users may access it:
STARTUP NOMOUNT – Instance startup
STARTUP MOUNT – The database is mounted
STARTUP OPEN – The database is opened -
Question 18 of 30
18. Question
delete and truncate command in sql
Correct
Incorrect
-
Question 19 of 30
19. Question
Which of the following is the root directory for oracle?
Correct
ORACLE_BASE is the root of the Oracle Database directory tree. ORACLE_BASE is an environment variable used as the base directory for an OFA installation. If you install an OFA-compliant database using Oracle Universal Installer defaults, ORACLE_BASE is X:\oracle\product\10.2.0 where X is any hard drive.
Incorrect
ORACLE_BASE is the root of the Oracle Database directory tree. ORACLE_BASE is an environment variable used as the base directory for an OFA installation. If you install an OFA-compliant database using Oracle Universal Installer defaults, ORACLE_BASE is X:\oracle\product\10.2.0 where X is any hard drive.
-
Question 20 of 30
20. Question
To determine the time zone under which a database was operating?
Correct
DBTIMEZONE is a function which returns the current value of Database Time Zone. It can be queried using the example below:
SELECT DBTIMEZONE FROM DUAL;
DBTIME
——
+00:00Please note the return type of function is Time Zone Offset. The format ([+|-] TZH: TZM) contains the lead (+) and lag (-) with hour and minutes specifications.
Incorrect
DBTIMEZONE is a function which returns the current value of Database Time Zone. It can be queried using the example below:
SELECT DBTIMEZONE FROM DUAL;
DBTIME
——
+00:00Please note the return type of function is Time Zone Offset. The format ([+|-] TZH: TZM) contains the lead (+) and lag (-) with hour and minutes specifications.
-
Question 21 of 30
21. Question
What command is used to encrypt a PL/SQL application?
Correct
WRAP is used to encrypt a PL/SQL application. WRAP command is used while we are delivering a PL/SQL application without exposing the source code. Syntax for this would be: wrap iname=[file] oname=[file]
Incorrect
WRAP is used to encrypt a PL/SQL application. WRAP command is used while we are delivering a PL/SQL application without exposing the source code. Syntax for this would be: wrap iname=[file] oname=[file]
-
Question 22 of 30
22. Question
Which of the following are three advisory statistics to collect?
Correct
Incorrect
-
Question 23 of 30
23. Question
How to force a log switch?
Correct
A log switch occurs when LGWR stops writing to one redo log group and starts writing to another. By default, a log switch occurs automatically when the current redo log file group fills. This option is useful in configurations with large redo log files that take a long time to fill. To force a log switch, you must have the ALTER SYSTEM privilege. Use the ALTER SYSTEM statement with the SWITCH LOGFILE clause.
The following statement forces a log switch: ALTER SYSTEM SWITCH LOGFILE;Incorrect
A log switch occurs when LGWR stops writing to one redo log group and starts writing to another. By default, a log switch occurs automatically when the current redo log file group fills. This option is useful in configurations with large redo log files that take a long time to fill. To force a log switch, you must have the ALTER SYSTEM privilege. Use the ALTER SYSTEM statement with the SWITCH LOGFILE clause.
The following statement forces a log switch: ALTER SYSTEM SWITCH LOGFILE; -
Question 24 of 30
24. Question
Name the tool for tuning SQL statements.
Correct
The EXPLAIN PLAN statement displays execution plans chosen by the Oracle optimizer for SELECT, UPDATE, INSERT, and DELETE statements. A statement’s execution plan is the sequence of operations. Oracle performs to run the statement. The EXPLAIN PLAN results let you determine whether the optimizer selects a particular execution plan, such as, nested loops join. It also helps you to understand the optimizer decisions, such as why the optimizer chose a nested loops join instead of a hash join, and lets you understand the performance of a query.
Incorrect
The EXPLAIN PLAN statement displays execution plans chosen by the Oracle optimizer for SELECT, UPDATE, INSERT, and DELETE statements. A statement’s execution plan is the sequence of operations. Oracle performs to run the statement. The EXPLAIN PLAN results let you determine whether the optimizer selects a particular execution plan, such as, nested loops join. It also helps you to understand the optimizer decisions, such as why the optimizer chose a nested loops join instead of a hash join, and lets you understand the performance of a query.
-
Question 25 of 30
25. Question
Which of the following is the fastest query method for a table?
Correct
Fetch by rowid is the fastest query method for a table. The “table fetch by rowid” Oracle metric occurs when rows are fetched using a ROWID (usually recovered from an index), each row returned increments this counter. This statistic is an indication of row fetch operations being performed with the aid of an index. Because, doing table scans usually indicates either non-optimal queries or tables without indexes, this statistic should increase as the above issues have been addressed in the application.
Incorrect
Fetch by rowid is the fastest query method for a table. The “table fetch by rowid” Oracle metric occurs when rows are fetched using a ROWID (usually recovered from an index), each row returned increments this counter. This statistic is an indication of row fetch operations being performed with the aid of an index. Because, doing table scans usually indicates either non-optimal queries or tables without indexes, this statistic should increase as the above issues have been addressed in the application.
-
Question 26 of 30
26. Question
How should a many-to-many relationship be handled?
Correct
Incorrect
-
Question 27 of 30
27. Question
What is the probable cause for getting the following error stack?
ERROR: ORA-01034: ORACLE not available
ORA-07318: smsget: open error when opening sgadef.dbf file.
HP-UX Error: 2: No such file or directoryCorrect
Incorrect
-
Question 28 of 30
28. Question
How many different types of triggers can exist in a table in Oracle?
Correct
Trigger is stored in the database which includes SQL and PL/SQL or Java statements to run as a unit and invokes stored procedures. Triggers are implicitly fired by Oracle when a triggering event occurs, no matter which user is connected or which application is being used. There are 12 types of triggers can exist in a table in Oracle: 3 before statement, 3 after statement, 3 before each row and 3 after each row.
Incorrect
Trigger is stored in the database which includes SQL and PL/SQL or Java statements to run as a unit and invokes stored procedures. Triggers are implicitly fired by Oracle when a triggering event occurs, no matter which user is connected or which application is being used. There are 12 types of triggers can exist in a table in Oracle: 3 before statement, 3 after statement, 3 before each row and 3 after each row.
-
Question 29 of 30
29. Question
Which of the following statements is true?
Correct
Implicit cursors are automatically created by Oracle whenever an SQL statement is executed, when there is no explicit cursor for the statement. Implicit cursors are not named. Implicit cursors are used by Oracle every time you issue a Select statement in PL/SQL. If you use an implicit cursor, Oracle will perform the open, fetches, and close for you automatically. Implicit cursors are used in statements that return only one row.
Incorrect
Implicit cursors are automatically created by Oracle whenever an SQL statement is executed, when there is no explicit cursor for the statement. Implicit cursors are not named. Implicit cursors are used by Oracle every time you issue a Select statement in PL/SQL. If you use an implicit cursor, Oracle will perform the open, fetches, and close for you automatically. Implicit cursors are used in statements that return only one row.
-
Question 30 of 30
30. Question
Which of the following are the pseudo-columns?
Correct
The key word in the “A pseudocolumn is also similar to a function without arguments” statement is “similar”. If we take a closer look at the definition of pseudo-columns we will notice the following:
“However, functions without arguments typically return the
same value for every row in the result set, whereas pseudocolumns typically return a different value for each row.”SYSDATE as well as USER will always return same value for every row selected from a table, always.
Incorrect
The key word in the “A pseudocolumn is also similar to a function without arguments” statement is “similar”. If we take a closer look at the definition of pseudo-columns we will notice the following:
“However, functions without arguments typically return the
same value for every row in the result set, whereas pseudocolumns typically return a different value for each row.”SYSDATE as well as USER will always return same value for every row selected from a table, always.