Oracle PL/SQL Fundamentals

Test your knowledge of Oracle database and PL/SQL programming concepts including data types, control structures, exception handling, and basic PL/SQL syntax.

25 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

A ____________ is the collection of all objects that a user has created.

  1. package
  2. database
  3. schema
  4. none of these
Question 2 Multiple Choice (Single Answer)

Which of the following is a set of predefined resource parameters that can be used to monitor and control various database resources?

  1. Profile
  2. Password
  3. Username
  4. None of these
Question 3 Multiple Choice (Single Answer)

Which of the following is a block-structured language?

  1. SQL
  2. C++
  3. C
  4. PL/SQL
Question 4 Multiple Choice (Single Answer)

________ is an explicit numeric, character, string or Boolean value not represented by identifier.

  1. Reserved word
  2. Delimiter
  3. Literal
  4. Single line comment
Question 5 Multiple Choice (Single Answer)

___________ is a simple or compound symbol that has a special meaning to PL/SQL.

  1. Delimiter
  2. Literal
  3. Identifier
  4. Comment
Question 6 Multiple Choice (Single Answer)

Which of the following languages allows you to directly interact with the database and manipulate objects & data?

  1. PL/SQL
  2. JAVA
  3. SQL
  4. C++
Question 7 Multiple Choice (Single Answer)

Which of the following are used to name PL/SQL program, objects and units? <o:p>

  1. Delimiters
  2. Identifiers
  3. Comments
  4. None of these
Question 8 Multiple Choice (Single Answer)
  1. Delimiter
  2. Comment
  3. Literal
  4. String literal
Question 9 Multiple Choice (Single Answer)

Which of the following data types is used to store fixed or floating point numbers of virtually any size?

  1. CHAR
  2. NUMBER
  3. VARCHAR2
  4. FLOAT
Question 10 Multiple Choice (Single Answer)

_______________ have special syntactic meaning to PL/SQL and, thus, cannot be redefined.

  1. Reserved words
  2. String literals
  3. Boolean literals
  4. Literals
Question 11 Multiple Choice (Single Answer)

_________ is a sequence of zero or more characters enclosed by single quotes.<o:p>

  1. String literal
  2. Boolean literal
  3. Literal
  4. Identifier
Question 12 Multiple Choice (Single Answer)

__________ begin(s) with a slash-asterisk, end(s) with an asterisk-slash and can span multiple lines.

  1. Single line comment
  2. Comments
  3. Multiline comments
  4. None of these
Question 13 Multiple Choice (Single Answer)

_____________ data type is used to store variable length character data.

  1. NUMBER
  2. CHAR
  3. VARCHAR2
  4. STRING
Question 14 Multiple Choice (Single Answer)

In PL/SQL iterative control statements, a ___________ repeats sequence of statements.

  1. Loop statement
  2. WHILE loop statement
  3. FOR loop statement
  4. DO-WHILE loop statement
Question 15 Multiple Choice (Single Answer)

Which of the error handling expections are executed when an error occurs while executing a PL/SQL block of code?

  1. Predetermined internal exceptions
  2. User defined expections
  3. Internally defined expections
  4. None of these
Question 16 Multiple Choice (Single Answer)

Which of the following statements enables you to specify the condition required to exit the execution of loop?

  1. EXIT
  2. EXIT WHEN
  3. GOTO
  4. None of these
Question 17 Multiple Choice (Single Answer)

Which Loop statement allows to execute a block of code repeatedly until some condition occurs?

  1. WHILE Loop statement
  2. DO-WHILE Loop statement
  3. FOR Loop statement
  4. None of these
Question 18 Multiple Choice (Single Answer)

___________ statement allows you to change the flow of control within a PL/SQL block.

  1. GOTO
  2. EXIT
  3. FOR
  4. CONTINUE
Question 19 Multiple Choice (Single Answer)

Which of the following are used to assign values to the variables that are given in the selected statement?

  1. Cursor names
  2. Parameters
  3. Data types
  4. None of these
Question 20 Multiple Choice (Single Answer)

Which Oracle authentication mechanism is used to manage password for an account?

  1. Database authentication
  2. Operating system authentication
  3. Password authentication
  4. None of these
Question 21 Multiple Choice (Single Answer)

__________ predefined exception is raised when a select statement returns zero rows.

  1. VALUE_ERROR
  2. TOO_MANY_ROWS
  3. ZERO_DIVIDE
  4. NO_DATA_FOUND
Question 22 Multiple Choice (Single Answer)

Which of the following predetermined exceptions is raised if PL/SQL runs out of memory or if memory is corrupted?

  1. PROGRAM_ERROR
  2. STORAGE_ERROR
  3. VALUE_ERROR
  4. None of these
Question 23 Multiple Choice (Single Answer)

_________ exception is raised when the conversion of a number to a character string fails.

  1. VALUE_ERROR
  2. NO_DATA_FOUND
  3. INVALID_NUMBER
  4. PROGRAM_ERROR
Question 24 Multiple Choice (Single Answer)

Which exception is raised when login to ORACLE has failed because of invalid username or password?

  1. INVALID_CURSOR
  2. CURSOR_ALREADY_OPEN
  3. LOGIN_DENIED
  4. OTHERS
Question 25 Multiple Choice (Single Answer)

Which exception is raised when all other exceptions fail to catch errors?

  1. LOGIN_DENIED
  2. OTHERS
  3. VALUE_ERROR
  4. ERROR