Search Header Logo

EXAMEN CONVOCATORIA 1 BD1

Authored by Víctor Suárez

Information Technology (IT)

University

Used 1+ times

EXAMEN CONVOCATORIA 1 BD1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

PL/pgSQL es un lenguaje diseñado específicamente para
programar interfaces gráficas y conectarlas con una Base de datos.

Verdadero

Falso

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Una función PL/pgSQL se define con una instrucción ________________ cuya parte de
definición es un bloque, encerrado entre comillas.

CREATE FUNCTION

CREATE VIEW

CREATE TRIGGER

CREATE TABLE

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Una vista PL/pgSQL puede tomar cero o más parámetros, y los tipos de los
parámetros se especifican entre paréntesis después del nombre de la función.

Verdadero

Falso

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Para declarar una variable compuesta, usamos la siguiente sintaxis de declaración:

n1 integer;

name table%rowtype;

contact customer%rowtype

n2 integer;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Una función muy simple que incrementa su único argumento podría escribirse así:

CREATE FUNCTION sumar_uno(int4) RETURNS int4 AS '
BEGIN
RETURN $1 + 1;
END;
' LANGUAGE 'plpgsql';

CREATE FUNCTION sumar_uno(int4) RETURNS int4 AS '
BEGIN
RETURN $1 - 1;
END;
' LANGUAGE 'plpgsql';

CREATE FUNCTION sumar_uno(int4) RETURNS int4 AS '
BEGIN
RETURN $1 * 1;
END;
' LANGUAGE 'plpgsql';

CREATE FUNCTION sumar_uno(int4) RETURNS int4 AS '
BEGIN
RETURN $1;
END;
' LANGUAGE 'plpgsql';

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

PostgreSQL considera que las funciones son distintas si tienen:

Nombres diferentes

Diferente cantidad de parámetros

Tipos de datos distintos en sus parámetros

Diferente lenguaje

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Palabras claves de PostgreSQL PL/pgSQL son:

end

for

where

group by

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?