Oracle Online Test Series 2, Oracle Mock Test, Oracle 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 2, Oracle Mock Test, Oracle Quiz, Oracle Mock Exam. Free Oracle Quiz, Online Oracle, online Test Quiz 2. Oracle Online Test 2 Question and Answers 2024. Oracle online Test Quiz 2. Oracle Test 2 Free Mock Test 2024. Oracle Online Test-2 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 2 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
For referential integrity to hold, any field in a table that is declared a super key can contain only values from a parent table’s primary key or a candidate key.
Correct
The above statement is false. Referential integrity is a property of data which, when satisfied, requires every value of one attribute (column) of a relation (table) to exist as a value of another attribute (column) in a different (or the same) relation (table). For referential integrity to hold in a relational database, any column in a base table that is declared a foreign key can contain either a null value, or only values from a parent table’s primary key or a candidate key. For instance, deleting a record that contains a value referred to by a foreign key in another table would break referential integrity.
Incorrect
The above statement is false. Referential integrity is a property of data which, when satisfied, requires every value of one attribute (column) of a relation (table) to exist as a value of another attribute (column) in a different (or the same) relation (table). For referential integrity to hold in a relational database, any column in a base table that is declared a foreign key can contain either a null value, or only values from a parent table’s primary key or a candidate key. For instance, deleting a record that contains a value referred to by a foreign key in another table would break referential integrity.
-
Question 2 of 30
2. Question
Which of the following statements hold true for a cursor?
Correct
A cursor is a temporary work area created in the system memory when a SQL statement is executed. A cursor contains information on a select statement and the rows of data accessed by it. It specifies positioning at specific rows in the result set. It modifies data in the rows at the current position in the result set.
Incorrect
A cursor is a temporary work area created in the system memory when a SQL statement is executed. A cursor contains information on a select statement and the rows of data accessed by it. It specifies positioning at specific rows in the result set. It modifies data in the rows at the current position in the result set.
-
Question 3 of 30
3. Question
____________ involves putting different rows into different tables
Correct
Horizontal partitioning involves putting different rows into different tables. Horizontal (column) partitioning occurs when the measure data in a table is divided into two or more components by column, with each component being stored in a separate table. This architecture can arise when two different applications maintain different measures that logically belong in the same table.
Incorrect
Horizontal partitioning involves putting different rows into different tables. Horizontal (column) partitioning occurs when the measure data in a table is divided into two or more components by column, with each component being stored in a separate table. This architecture can arise when two different applications maintain different measures that logically belong in the same table.
-
Question 4 of 30
4. Question
_______________ are padded with space characters to match the specified length.
Correct
CHAR are padded with space characters to match the specified length. CHAR is used to store fixed length character strings. If we have char name[10] and store “abcde”, then 5 bytes will be filled with null values.
Incorrect
CHAR are padded with space characters to match the specified length. CHAR is used to store fixed length character strings. If we have char name[10] and store “abcde”, then 5 bytes will be filled with null values.
-
Question 5 of 30
5. Question
Which of the following are types of background processes in Oracle?
Correct
To maximize performance and accommodate many users, a multiprocess Oracle system uses some additional Oracle processes called background processes. An Oracle instance can have many background processes; not all are always present. There are numerous background processes. The background processes in an Oracle instance can include the following:
Database Writer Process (DBWn)
Log Writer Process (LGWR)
Checkpoint Process (CKPT)
System Monitor Process (SMON)
Process Monitor Process (PMON)
Recoverer Process (RECO)
Job Queue Processes
Archiver Processes (ARCn)
Queue Monitor Processes (QMNn)
Other Background ProcessesOn many operating systems, background processes are created automatically when an instance is started.
Incorrect
To maximize performance and accommodate many users, a multiprocess Oracle system uses some additional Oracle processes called background processes. An Oracle instance can have many background processes; not all are always present. There are numerous background processes. The background processes in an Oracle instance can include the following:
Database Writer Process (DBWn)
Log Writer Process (LGWR)
Checkpoint Process (CKPT)
System Monitor Process (SMON)
Process Monitor Process (PMON)
Recoverer Process (RECO)
Job Queue Processes
Archiver Processes (ARCn)
Queue Monitor Processes (QMNn)
Other Background ProcessesOn many operating systems, background processes are created automatically when an instance is started.
-
Question 6 of 30
6. Question
___________ contains the physical structure of a database
Correct
Every Oracle Database has a control file, which is a small binary file that records the physical structure of the database.
The control file includes:
The database name
Names and locations of associated datafiles and redo log files
The timestamp of the database creation
The current log sequence number
Checkpoint informationThe control file must be available for writing by the Oracle Database server whenever the database is open. Without the control file, the database cannot be mounted and recovery is difficult.
The control file of an Oracle Database is created at the same time as the database. By default, at least one copy of the control file is created during database creation. On some operating systems the default is to create multiple copies. You should create two or more copies of the control file during database creation. You can also create control files later, if you lose control files or want to change particular settings in the control files.
Incorrect
Every Oracle Database has a control file, which is a small binary file that records the physical structure of the database.
The control file includes:
The database name
Names and locations of associated datafiles and redo log files
The timestamp of the database creation
The current log sequence number
Checkpoint informationThe control file must be available for writing by the Oracle Database server whenever the database is open. Without the control file, the database cannot be mounted and recovery is difficult.
The control file of an Oracle Database is created at the same time as the database. By default, at least one copy of the control file is created during database creation. On some operating systems the default is to create multiple copies. You should create two or more copies of the control file during database creation. You can also create control files later, if you lose control files or want to change particular settings in the control files.
-
Question 7 of 30
7. Question
Using synonyms is a good way to implement location transparency.
Correct
The above statement is true. Using synonyms is a good way to implement location transparency. Synonyms are useful in both distributed and non-distributed environments because they hide the identity of the underlying object, including its location in a distributed database system. Synonyms also simplify SQL statements for users in a distributed database system.
Incorrect
The above statement is true. Using synonyms is a good way to implement location transparency. Synonyms are useful in both distributed and non-distributed environments because they hide the identity of the underlying object, including its location in a distributed database system. Synonyms also simplify SQL statements for users in a distributed database system.
-
Question 8 of 30
8. Question
A cluster is a schema object that contains data from _____________ , all of which have one or more columns in common.
Correct
A cluster is a schema object that contains data from two or more tables, all of which have one or more columns in common. Oracle Database stores together all the rows from all the tables that share the same cluster key. To create a cluster in your own schema, you must have CREATE CLUSTER system privilege. To create a cluster in another user’s schema, you must have CREATE ANY CLUSTER system privilege.
Incorrect
A cluster is a schema object that contains data from two or more tables, all of which have one or more columns in common. Oracle Database stores together all the rows from all the tables that share the same cluster key. To create a cluster in your own schema, you must have CREATE CLUSTER system privilege. To create a cluster in another user’s schema, you must have CREATE ANY CLUSTER system privilege.
-
Question 9 of 30
9. Question
____________ is an area on disk which comprises of one or more disk files
Correct
A tablespace is an area on disk which comprises of one or more disk files. Oracle stores data logically in tablespaces and physically in datafiles associated with the corresponding tablespace. Each tablespace in an Oracle database consists of one or more files called datafiles, which are physical structures that conform to the operating system in which Oracle is running.
Incorrect
A tablespace is an area on disk which comprises of one or more disk files. Oracle stores data logically in tablespaces and physically in datafiles associated with the corresponding tablespace. Each tablespace in an Oracle database consists of one or more files called datafiles, which are physical structures that conform to the operating system in which Oracle is running.
-
Question 10 of 30
10. Question
What is the the use of Rollback Segment?
Correct
A Rollback Segment is a database object containing before-images of data written to the database. Rollback segments are used to:
– Undo changes when a transaction is rolled back.
– Ensure other transactions do not see uncommitted changes made to the database.
– Recover the database to a consistent state in case of failures.Incorrect
A Rollback Segment is a database object containing before-images of data written to the database. Rollback segments are used to:
– Undo changes when a transaction is rolled back.
– Ensure other transactions do not see uncommitted changes made to the database.
– Recover the database to a consistent state in case of failures. -
Question 11 of 30
11. Question
Which of the sequences is correct?
Correct
Oracle allocates logical database space for all data in a database. The units of database space allocation are data blocks, extents, and segments.
At the finest level of granularity, Oracle stores data in data blocks (also called logical blocks, Oracle blocks, or pages). One data block corresponds to a specific number of bytes of physical database space on disk.
The next level of logical database space is an extent. An extent is a specific number of contiguous data blocks allocated for storing a specific type of information.
The level of logical database storage greater than an extent is called a segment. A segment is a set of extents, each of which has been allocated for a specific data structure and all of which are stored in the same tablespace.
Incorrect
Oracle allocates logical database space for all data in a database. The units of database space allocation are data blocks, extents, and segments.
At the finest level of granularity, Oracle stores data in data blocks (also called logical blocks, Oracle blocks, or pages). One data block corresponds to a specific number of bytes of physical database space on disk.
The next level of logical database space is an extent. An extent is a specific number of contiguous data blocks allocated for storing a specific type of information.
The level of logical database storage greater than an extent is called a segment. A segment is a set of extents, each of which has been allocated for a specific data structure and all of which are stored in the same tablespace.
-
Question 12 of 30
12. Question
_____________ level of auditing audit The resources entire lifecycle
Correct
Process task: The resources entire lifecycle is audited. Auditing collects information at run time for performance monitoring, security etc. Different levels of auditing are available depending on the extent to which auditing is required:
– Resource Form: Audits any form of data associated with the resource – user record, group membership, provisioned resources
– Resource: user record, group membership, provisioned resources is audited.
– Membership: Audits the user record and group membership only
– Core: Audits the user record.
– At a higher level audits are at Privilege level, Object and Statement level.Incorrect
Process task: The resources entire lifecycle is audited. Auditing collects information at run time for performance monitoring, security etc. Different levels of auditing are available depending on the extent to which auditing is required:
– Resource Form: Audits any form of data associated with the resource – user record, group membership, provisioned resources
– Resource: user record, group membership, provisioned resources is audited.
– Membership: Audits the user record and group membership only
– Core: Audits the user record.
– At a higher level audits are at Privilege level, Object and Statement level. -
Question 13 of 30
13. Question
The PMON background process performs all system monitoring functions on the oracle database.
Correct
The above statement is false. The process monitor (PMON) performs process recovery when a user process fails. PMON is responsible for cleaning up the database buffer cache and freeing resources that the user process was using. PMON periodically checks the status of dispatcher and server processes, and restarts any that have stopped running (but not any that Oracle has terminated intentionally). PMON also registers information about the instance and dispatcher processes with the network listener.
Incorrect
The above statement is false. The process monitor (PMON) performs process recovery when a user process fails. PMON is responsible for cleaning up the database buffer cache and freeing resources that the user process was using. PMON periodically checks the status of dispatcher and server processes, and restarts any that have stopped running (but not any that Oracle has terminated intentionally). PMON also registers information about the instance and dispatcher processes with the network listener.
-
Question 14 of 30
14. Question
Which of the following form a part of logical structure of oracle?
Correct
Extents is a part of logical structure of oracle. An extent is a specific number of contiguous data blocks allocated for storing a specific type of information.
Incorrect
Extents is a part of logical structure of oracle. An extent is a specific number of contiguous data blocks allocated for storing a specific type of information.
-
Question 15 of 30
15. Question
The files that are created when an oracle background process encounters an exception are ______________
Correct
The files that are created when an Oracle background process encounters an exception are Trace files. Trace files are also created by ORA-00600 error or due to some diagnostic dump events. The SQL Trace facility provides performance information on individual SQL statements.
Incorrect
The files that are created when an Oracle background process encounters an exception are Trace files. Trace files are also created by ORA-00600 error or due to some diagnostic dump events. The SQL Trace facility provides performance information on individual SQL statements.
-
Question 16 of 30
16. Question
Copying physical files when the database is up is called ___________
Correct
Copying physical files when the database is up is called hot backup. 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
Copying physical files when the database is up is called hot backup. 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 17 of 30
17. Question
BLOB, CLOB, NCLOB and BFILE are all LOB data types?
Correct
Yes, BLOB, CLOB, NCLOB and BFILE are all LOB data types. The built-in LOB data types BLOB, CLOB and NCLOB (stored internally), and BFILE (stored externally), can store large and unstructured data such as text, images and spatial data up to 4 gigabytes in size.
BLOB stores binary large objects. BLOB can store up to 4 gigabytes of binary data.
CLOB stores character large objects. CLOB can store up to 4 gigabytes of character data.
NCLOB stores character large objects in multibyte national character set. NCLOB can store up to 4 gigabytes of character data.
BFILE enables access to binary file LOBs that are stored in file systems outside the Oracle database. A BFILE column stores a locator, which serves as a pointer to a binary file on the server’s file system. The maximum file size supported is 4 gigabytes.
Incorrect
Yes, BLOB, CLOB, NCLOB and BFILE are all LOB data types. The built-in LOB data types BLOB, CLOB and NCLOB (stored internally), and BFILE (stored externally), can store large and unstructured data such as text, images and spatial data up to 4 gigabytes in size.
BLOB stores binary large objects. BLOB can store up to 4 gigabytes of binary data.
CLOB stores character large objects. CLOB can store up to 4 gigabytes of character data.
NCLOB stores character large objects in multibyte national character set. NCLOB can store up to 4 gigabytes of character data.
BFILE enables access to binary file LOBs that are stored in file systems outside the Oracle database. A BFILE column stores a locator, which serves as a pointer to a binary file on the server’s file system. The maximum file size supported is 4 gigabytes.
-
Question 18 of 30
18. Question
How does Oracle decide how to retrieve the necessary data whenever a valid SQL statement is processed?
Correct
Using Rule Based Optimizer and Cost Based Optimizer, Oracle decide how to retrieve the necessary data whenever a valid SQL statement is processed. When a valid SQL statement is sent to the server for the first time, Oracle produces an execution plan that describes how to retrieve the necessary data.
Rule-Based Optimizer (RBO): This was the original optimization method and as the name suggests, was essentially a list of rules Oracle should follow to generate an execution plan. Even after the cost-based optimizer was introduced, this method was used if the server had no internal statistics relating to the objects referenced by the statement, or if explicitly requested by a hint or instance/session parameter. This optimizer was made obsolete, then deprecated in later versions of the database.
Cost-Based Optimizer (CBO): The CBO uses database statistics to generate several execution plans, picking the one with the lowest cost, where cost relates to system resources required to complete the operation.
Incorrect
Using Rule Based Optimizer and Cost Based Optimizer, Oracle decide how to retrieve the necessary data whenever a valid SQL statement is processed. When a valid SQL statement is sent to the server for the first time, Oracle produces an execution plan that describes how to retrieve the necessary data.
Rule-Based Optimizer (RBO): This was the original optimization method and as the name suggests, was essentially a list of rules Oracle should follow to generate an execution plan. Even after the cost-based optimizer was introduced, this method was used if the server had no internal statistics relating to the objects referenced by the statement, or if explicitly requested by a hint or instance/session parameter. This optimizer was made obsolete, then deprecated in later versions of the database.
Cost-Based Optimizer (CBO): The CBO uses database statistics to generate several execution plans, picking the one with the lowest cost, where cost relates to system resources required to complete the operation.
-
Question 19 of 30
19. Question
The ____________ are the views that get continuously updated even while the database is open or in use.
Correct
The dynamic performance views are the views that get continuously updated even while the database is open or in use. Dynamic performance views are sometimes called fixed views because they cannot be altered or removed by a database administrator. However, database administrators can query and create views on the tables and grant access to these views to other users.
Incorrect
The dynamic performance views are the views that get continuously updated even while the database is open or in use. Dynamic performance views are sometimes called fixed views because they cannot be altered or removed by a database administrator. However, database administrators can query and create views on the tables and grant access to these views to other users.
-
Question 20 of 30
20. Question
Materialized views have the data itself. This makes it slower to access
Correct
The above statement is wrong. A materialized view is a replica of a target master from a single point in time. The master can be either a master table at a master site or a master materialized view at a materialized view site. The materialized view is populated immediately. The materialized view is populated on the first requested refresh. The following refresh types are available.
FAST : A fast refresh is attempted. If materialized view logs are not present against the source tables in advance, the creation fails.
COMPLETE : The table segment supporting the materialized view is truncated and repopulated completely using the associated query.
FORCE : A fast refresh is attempted. If one is not possible a complete refresh is performed.Incorrect
The above statement is wrong. A materialized view is a replica of a target master from a single point in time. The master can be either a master table at a master site or a master materialized view at a materialized view site. The materialized view is populated immediately. The materialized view is populated on the first requested refresh. The following refresh types are available.
FAST : A fast refresh is attempted. If materialized view logs are not present against the source tables in advance, the creation fails.
COMPLETE : The table segment supporting the materialized view is truncated and repopulated completely using the associated query.
FORCE : A fast refresh is attempted. If one is not possible a complete refresh is performed. -
Question 21 of 30
21. Question
Is global temporary table session specific?
Correct
Yes, the global temporary table is session specific. Global temporary tables are types of database tables which can privately store data, persistently for a session or transaction. The data flushes out at defined instant automatically. They often find their application in the situations, where data fetch and passage is not possible in a single stretch.
Note that only table data is session specific, but physically table is available in all sessions.
Syntax:
CREATE GLOBAL TEMPORARY TABLE
(
[COLUMN DEFINTION]
) ON COMMIT [DELETE | PRESERVE] ROWS;In the above syntax, ON COMMIT DELETE ROWS sets the life of the data contained by the table to a single TRANSACTION. The data is automatically flushed away after each COMMIT/ROLLBACK is executed. These are Transaction-specific Temporary tables.
On the other hand, ON COMMIT PRESERVE ROWS restricts the life of the data to a single SESSION. Data is preserved in the table for a session only. These are Session-specific Temporary tables.Incorrect
Yes, the global temporary table is session specific. Global temporary tables are types of database tables which can privately store data, persistently for a session or transaction. The data flushes out at defined instant automatically. They often find their application in the situations, where data fetch and passage is not possible in a single stretch.
Note that only table data is session specific, but physically table is available in all sessions.
Syntax:
CREATE GLOBAL TEMPORARY TABLE
(
[COLUMN DEFINTION]
) ON COMMIT [DELETE | PRESERVE] ROWS;In the above syntax, ON COMMIT DELETE ROWS sets the life of the data contained by the table to a single TRANSACTION. The data is automatically flushed away after each COMMIT/ROLLBACK is executed. These are Transaction-specific Temporary tables.
On the other hand, ON COMMIT PRESERVE ROWS restricts the life of the data to a single SESSION. Data is preserved in the table for a session only. These are Session-specific Temporary tables. -
Question 22 of 30
22. Question
Which of the following statements holds true for snap shots?
Correct
The snapshot logs that Oracle creates for a master table is a table in its own right. It is stored in the same database as the table. If a transaction modifies data in the master table, an internal trigger (kernel code in Oracle8) on the master table automatically inserts rows into it’s snapshot log. One master table can only have one snapshot log. However, the master table can have multiple snapshots each having data replicated to them from the one master table via the snapshot log.
Incorrect
The snapshot logs that Oracle creates for a master table is a table in its own right. It is stored in the same database as the table. If a transaction modifies data in the master table, an internal trigger (kernel code in Oracle8) on the master table automatically inserts rows into it’s snapshot log. One master table can only have one snapshot log. However, the master table can have multiple snapshots each having data replicated to them from the one master table via the snapshot log.
-
Question 23 of 30
23. Question
What is the difference between Oracle Forms and Apps Forms?
Correct
Incorrect
-
Question 24 of 30
24. Question
Is it true that we should avoid joining tables with columns having few unique values?
Correct
Incorrect
-
Question 25 of 30
25. Question
In _____________ the bottom up approach is used to find and fix the bottlenecks
Correct
In reactive tuning the bottom up approach is used to find and fix the bottlenecks. The goal is to make Oracle run faster. Reactive tuning involves performance tuning and troubleshooting within boundaries of existing architecture.
Incorrect
In reactive tuning the bottom up approach is used to find and fix the bottlenecks. The goal is to make Oracle run faster. Reactive tuning involves performance tuning and troubleshooting within boundaries of existing architecture.
-
Question 26 of 30
26. Question
What is a correlated sub query?
Correct
A correlated sub-query is dependent upon the outer query. A correlated sub-query (also known as a synchronized sub-query) is a sub-query (a query nested inside another query) that uses values from the outer query. Because the sub-query is evaluated once for each row processed by the outer query, it can be inefficient.
Incorrect
A correlated sub-query is dependent upon the outer query. A correlated sub-query (also known as a synchronized sub-query) is a sub-query (a query nested inside another query) that uses values from the outer query. Because the sub-query is evaluated once for each row processed by the outer query, it can be inefficient.
-
Question 27 of 30
27. Question
Dynamic data replication is the way in which updating or inserting records in remote database through_____________
Correct
Dynamic data replication is the way in which updating or inserting records in remote database through database triggers. It may fail if remote database is having any problem. Dynamic replication can supported 3 changes: user requests, storage capability and information measure. Dynamic replication techniques square measure capable of creating intelligent choices to position data within the grid supported storage capability and node handiness.
Incorrect
Dynamic data replication is the way in which updating or inserting records in remote database through database triggers. It may fail if remote database is having any problem. Dynamic replication can supported 3 changes: user requests, storage capability and information measure. Dynamic replication techniques square measure capable of creating intelligent choices to position data within the grid supported storage capability and node handiness.
-
Question 28 of 30
28. Question
Sequence values cannot be cached
Correct
The above statement is wrong. Sequence will cache values for performance. In Oracle, you can create an autonumber field by using sequences. A sequence is an object in Oracle that is used to generate a number sequence. This can be useful when you need to create a unique number to act as a primary key.
Incorrect
The above statement is wrong. Sequence will cache values for performance. In Oracle, you can create an autonumber field by using sequences. A sequence is an object in Oracle that is used to generate a number sequence. This can be useful when you need to create a unique number to act as a primary key.
-
Question 29 of 30
29. Question
A Profile is assigned to
Correct
Incorrect
-
Question 30 of 30
30. Question
Can we pass a parameter to a cursor?
Correct
Yes, we can pass parameters into a cursor and use them in the query. We can only pass values to the cursor; and cannot pass values out of the cursor through parameters. Only the datatype of the parameter is defined, not its length. Optionally, we can also give a default value for the parameter, which will take effect if no value is passed to the cursor.
Incorrect
Yes, we can pass parameters into a cursor and use them in the query. We can only pass values to the cursor; and cannot pass values out of the cursor through parameters. Only the datatype of the parameter is defined, not its length. Optionally, we can also give a default value for the parameter, which will take effect if no value is passed to the cursor.