¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

DB Programming - ORACLE

mfavento 33 preguntas

Hacer el test

Preguntas del test (33)

  1. 1SQL is
    1. ACase insensitive
    2. BCase sensitive
  2. 2Which option displays all real PL/SQL Packages
    1. ADBMS_OUTPUT
      UTL_FILE
      UTL_HTTP
    2. BUTL_OUTPUT
      UTL_FILE
      UTL_HTTP
    3. CDBMS_OUTPUT
      UTL_FILE
      DBMS_HTTP
  3. 3Select the correct syntax
    1. ASELECT db_name 'Name',
      db_age 'Age',
      db_height 'Height'
      FROM tbl_people
    2. BSELECT db_name "Name",
      db_age "Age",
      db_height "Height"
      FROM tbl_people
    3. CEither is fine
  4. 4Select the correct syntax for constants:
    1. ATBL_NAME CONST VARCHAR2(10) := 'tbl_name';
    2. BTBL_NAME CONSTANT VARCHAR2(10) := 'tbl_name';
    3. CTBL_NAME VARCHAR2(10) AS CONST := 'tbl_name';
    4. DTBL_NAME VARCHAR2(10) AS CONSTANT := 'tbl_name';
  5. 5Select which statement is not true?
    1. ASUBSTR('This is a test', 6)
      Result: 'is a test'
    2. BSUBSTR('This is a test', 6, 2)
      Result: 'is'
    3. CSUBSTR('TechOnTheNet', -6, 3)
      Result: 'The'
    4. DSUBSTR('This is a test', 6)
      Result: 'This i'
  6. 6Which statement is not true?
    1. ASUBSTR('abcdefg',3,4)
      cdef
    2. BSUBSTR('abcdefg',-5,4)
      cdef
    3. CSUBSTR('abcdefg',1,4)
      abcde
  7. 7Which statement is true?
    1. ANVL(NULL, 50)
      Result: NULL
    2. BNVL(NULL, 50)
      Result: 50
    3. CNVL(NULL, 50)
      Result: 'NULL'
  8. 8Select the correct syntax
    1. AFOR i 1...10
      LOOP
      ..
      END LOOP
    2. BFOR i 1..10
      LOOP
      ..
      END LOOP
    3. CFOR i in 1..10
      LOOP
      ..
      END LOOP
  9. 9Select CURSOR structure
    1. ADECLARE

      CURSOR c1 is
      SELECT name, age, address FROM
      tbl_people
      WHERE
      age > 18;

      BEGIN
      FOR r1 in c1
      LOOP

      DBMS_OUTPUT.PUT_LINE(r1.name|| ' ' || r1.age);

      END LOOP;

      END;
    2. BDECLARE

      CURSOR c1 is
      SELECT name, age, address FROM
      tbl_people
      WHERE
      age > 18;

      BEGIN
      FOR r1 in c1
      LOOP

      DBMS_OUTPUT.PUT_LINE(c1.r1.name|| ' ' || c1.r1.age);

      END LOOP;

      END;
    3. CDECLARE

      CURSOR c1 is
      SELECT name, age, address FROM
      tbl_people
      WHERE
      age > 18;

      BEGIN
      FOR r1 in c1
      LOOP

      DBMS_OUTPUT.PUT_LINE(c1.name|| ' ' || c1.age);

      END LOOP;

      END;
  10. 10EX / IN CURSORS
    1. AExplicit cursor
      When you declare a query in the declaration
      section of a block, you create an explicit cursor.
      You will generally use an explicit cursor when
      you work with multiple records


      Implicit cursor
      A cursor that is defined for you by the system
      eg SELECT…..INTO or any SQL DML statement
      INSERT, UPDATE, DELETE
    2. BImplicit cursor
      When you declare a query in the declaration
      section of a block, you create an implicit cursor.
      You will generally use an implicit cursor when
      you work with multiple records


      Explicit cursor
      A cursor that is defined for you by the system
      eg SELECT…..INTO or any SQL DML statement
      INSERT, UPDATE, DELETE

Información

Descripción
Test sobre DB Programming - ORACLE, creado por mfavento el 19/06/2016.
Idioma
English
Visitas
5
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?