Teradata and Oracle PL/SQL Database Quiz
Covers Teradata database concepts including architecture, utilities, and indexes, plus Oracle PL/SQL programming fundamentals and SQL*Plus features.
Questions
Which statement would change the default date format to a specified format for the current session?
- ALTER SESSION SET NEW_DATE_FORMAT = <date_format>
- ALTER SESSION SET CUR_DATE_FORMAT = <date_format>
- ALTER SESSION SET NLS_DATE_FORMAT = <date_format>
- ALTER SESSION SET SESS_DATE_FORMAT = <date_format>
WHAT IS THE MAX LENGHT OF VARCHAR2 DATATYPE IN PL/SQL?
- 32767
- 1024
- 255
- 32765
Which one of the following is maximum limit for output generated by DBMS_OUTPUT?
- 10000000
- 1000000
- 100000
- 1000
Which one of the following contains only valid PL/SQL reserved words?
- TO_CHAR, INOUT
- PROC, PACKAGE
- PRAGMA, MULTI_ROW
- SELECT, EXCEPTION
Which one of the following SQL*Plus options lets you trace and print the execution plans as well as statistics?
- SET AUTOTRACE TRACEONLY
- SET AUTOTRACE ON
- SET AUTOTRACE ON STATISTICS
- SET AUTOTRACE ON EXPLAIN
What does the <<>> lexical unit or delimiter signify in PL/SQL?
- Comment marker
- Not equal to operator
- Label delimiter
- Greater than or equal to operator
Which one of the following is a valid RAISE_APPLICATION_ERROR call?
- RAISE_APPLICATION_ERROR(-21001);
- RAISE_APPLICATION_ERROR(-20001,'An error has occurred');
- RAISE_APPLICATION_ERROR(-21001,'An error has occurred');
- RAISE_APPLICATION_ERROR(-20001);
Which one of the following provides you with the number of records affected by the last DML statement?
- SQL%ROWCOUNT
- SQL%COUNT
- SQL%FOUND
- SQL%NUM_ROWS
- Which of the following are two architectural attributes of a Teradata System?
- Disk space associated with an AMP is divided into three areas: system, permanent and spool
- Parallelism is achieved through operating system time slicing
- The AMP’s access data from their associated vdisks as required.
- The PE’s communicate with the AMP’s across the BYNET
Which is the component that limits queries based on set thresholds?
- Teradata SQL Assistant
- BTEQ
- Teradata Manager
- TDQM
Which of the following is a statement that is true regarding temporary space?
- Temporary space is spool space currently not used
- Temporary space is permanent space currently not used.
- Temporary space is subtracted from SysAdmin
- Temporary space is assigned at the table level.
Of the following, which two are attributes of a Teradata warehouse? (Choose two)
- Customer applications drive the processes.
- Relational databases are more flexible than other types.
- Businesses are able to quickly respond to changing conditions
- It is built to reflect business application models.
Which two of the following statements are true regarding a Primary Index are accurate?
- A primary Index is a physical mechanism.
- There is a limit to the number of columns in a Primary Index.
- A Primary Index requires uniqueness
- A Primary Index value can not be null.
The method of creating rows, columns and tables is governed by which two relational database concepts? (Choose two)
- The order of rows in a table is arbitrary
- A table can contain only one row formats
- The order of rows in a table is keyed to Primary Index.
- A table can contain multiple row formats
What option can best describe Teradata’s architecture?
- Shared everything
- Shared memory
- Shared nothing
- Shared data
What is a feature of a row according to relational concepts?
- A row is one instance of all columns.
- Row sequence is specified.
- Duplicate rows are allowed in a table.
- Rows can have different formats.
Which of the following are two factual statements regarding an OLTP environment? (Choose two)
- Transactions are write intensive
- The number rows per transaction is large
- Transactions typically occur within seconds, not minutes
- The number of rows per transaction is small
Why would you choose a Non-Unique Primary Index (NUPI) instead of a Unique Primary Index (UPI)?
- A NUPI requires less disk space to store the data row.
- A NUPI may be more effective for query access and joins.
- A NUPI query amplifies the optimization process in the PE.
- A NUPI provides better data distribution
Which is the query tool that lets you access not only Teradata, but other databases as well?
- BTEQ
- Teradata SQL Assistant
- Teradata Manager
- TDQM
Block level operations are performed against populated tables by which utility?
- Tpump
- BulKLoad
- FastLoad
- MultiLoad