0

databases Online Quiz - 123

Description: databases Online Quiz - 123
Number of Questions: 20
Created by:
Tags: databases
Attempted 0/20 Correct 0 Score 0

Which one of them is not an String Function?

  1. SOUNDEX

  2. DIFFERENCE

  3. GROUPING

  4. SUBSTRING


Correct Option: C

What is the function which is used to check whether the value is a numeric value or not?

  1. Select isnumeric('Test Text')

  2. Select numeric('Test Text')

  3. Both of the above

  4. none of the above


Correct Option: A

What operator performs pattern matching?

  1. &

  2. LIKE

  3. %

  4. NONE


Correct Option: B

Deterministic functions are?

  1. Functions always return the same result any time they are called with a specific set of input values.

  2. Functions may return different results each time they are called with a specific set of input values

  3. None

  4. Both of Them


Correct Option: A

SQL_VARIEANT datatype column can be any datatype except?

  1. TEXT

  2. IMAGE

  3. FLOAT

  4. 1) and 2)


Correct Option: D

What is the maximum number of columns per select statement allowed in SQL 2005?

  1. 1024

  2. 4096

  3. 512

  4. 2048


Correct Option: B

Can we insert data into a view?

  1. True

  2. False


Correct Option: A

Identify two factors that you consider for compiling a PL/SQL program unit for interpreted mode?

  1. PL/SQL program needs to be recompiled frequently.

  2. /SQL program that spends most of the time executing SQL

  3. PL/SQL program , which performs computation-intensive procedural operations and is recompiled rarely

  4. PL/SQL program , which is called frequently with the same parameter values by multiple sessions and is recompiled rarely.


Correct Option: A,B

You designed a CardValidation.java Java source file. You also have the corresponding CardValidation.class file . As a part of invoking a Java class method, you execute this command at the command prompt: Loadjava –user oe/oe CardValidation.java . Which statement is true about the command?

  1. It loads the Java code into the database.

  2. It publishes Java methods in CardValidation.java

  3. It loads the metadata related to the Java class file into the database.

  4. It loads the Java class file into the Java pool in the database instance.


Correct Option: A

Examine the settings for a user session given below : RESULT_CACHE_MODE =FORCE. What would be the implications of this setting on query execution?

  1. Query results are bigger than the available space in the result cache are not cached

  2. Query results are stored even when you explicitly use the /*+ no_result_cache */ hint in query.

  3. All query results are stored in the result cache if possible.

  4. Query results are stored only when you explicitly use the /*+ result_cache */ hint in your query


Correct Option: C

Which statements are true about internal LOBs?

  1. They can be used as attributes of a user-defined data type.

  2. They cannot use redo logging.

  3. They cannot be passed as parameters to PL/SQL subprograms.

  4. They can be stored in a tablespace that is different from the tablespace that stores the table containing the LOB column


Correct Option: A,D

Which statements are true about the SecureFile storage paradigm?

  1. SecureFiles storage can be used for internal and external LOBs

  2. ASSM must be enabled for a tablespace to store SecureFile LOBs

  3. SecureFile is the default storeage paradigm for all LOBs

  4. SecureFile options enabled for a LOB column can be overridden on a per-LOB basis wihtin the LOB column


Correct Option: B,D

Which statements are true about inlining of PL/SQL subprograms?

  1. Only local subroutins can be inlined

  2. Inlining always reduces the execution time for the PL/SQL program unit

  3. PLSQL_OPTIMIZE_LEVEL must be set to a value greater than or equal to 2

  4. the PL/SQL programs that make use of relatively large helper subroutines are good candidates for inlining


Correct Option: A,C

Which two reports can be retrieved by using the various procedures in the DBMS_METADATA PL/SQL package?

  1. DDL report for all objects dependent on a table

  2. DDL report for all the invalidated objects in a schema

  3. data definition language (DDL) report for all the tables in a schema

  4. DDL report for all the objects stored in a tablespace


Correct Option: A,C

Which two statements are true about cursor variables?

  1. A cursor variable points to the current roe in the result set of a multirow query stored in work area

  2. A cursor variable is an explicitly named work area in which the results of different multirow queries can be stored.

  3. A cursor variable can be used only if a query is performed and its results are processed in the same subprogram.

  4. A cursor variable can be used to perform a query in one subprogram , and process results in a different sub program


Correct Option: A,C

What is a constraint?

  1. It is a standard method to enforce information integrity

  2. It is a standard method to manipulate data in databases

  3. They are policies to enforce security access to database

  4. Are method that allow users to authenticate


Correct Option: A

What do we call a superkey?

  1. When a field that is a primary key cannot be used a foreign key because of security policies

  2. When a primary key is composed by more than field

  3. When a primary key is a set of fields that are foreign keys

  4. When a set of fields that are foreign keys are set as a primary key


Correct Option: B

What does the stack space in a PGA hold?

  1. stack variables and other info

  2. session's variables and arrays

  3. session info stored in PGA

  4. binding variables and runtime buffers


Correct Option: B

AI Explanation

To answer this question, you need to understand the concept of the Program Global Area (PGA) and its components.

The PGA is a memory area that is allocated for each session in a database. It is used to store session-specific information and data structures. One of the components of the PGA is the stack space.

The stack space in a PGA holds session variables and arrays. These variables and arrays are used by the session during its execution. The stack space is used for storing local variables, procedure and function call frames, and other temporary data structures specific to the session.

Now let's go through each option to understand why it is correct or incorrect:

Option A) stack variables and other info - This option is incorrect because the stack space in a PGA does hold stack variables, but it does not hold "other info" such as session-specific information.

Option B) session's variables and arrays - This option is correct because the stack space in a PGA holds session variables and arrays. These variables and arrays are used by the session during its execution.

Option C) session info stored in PGA - This option is incorrect because session info is stored in the PGA, but it is not specifically stored in the stack space.

Option D) binding variables and runtime buffers - This option is incorrect because binding variables and runtime buffers are not stored in the stack space of the PGA.

Therefore, the correct answer is Option B) session's variables and arrays. This option is correct because the stack space in a PGA holds session variables and arrays that are used by the session during its execution.

The HAVING clause was added to SQL because the WHERE keyword could be used with aggregate functions.

  1. True

  2. False


Correct Option: A

The FULL JOIN keyword return rows when there is a match in one of the tables.

  1. True

  2. False


Correct Option: A
- Hide questions