jaydeeees
Test por , creado hace más de 1 año

Introduction to databases and Relational Model

353
0
0
jaydeeees
Creado por jaydeeees hace casi 9 años
Cerrar

Databases Topic 1 Quiz

Pregunta 1 de 16

1

What do the privileges associated with your role (the STUDENT role) allow you to do?

Selecciona una de las siguientes respuestas posibles:

  • Create tables

  • Drop tables

  • Create triggers

  • All of the above

Explicación

Pregunta 2 de 16

1

Foreign keys in the relational model make it possible to:

Selecciona una de las siguientes respuestas posibles:

  • Maintain entity integrity

  • Create unique records

  • Open the back door of the house when we have lost our primary key

  • Create relationships between tables

Explicación

Pregunta 3 de 16

1

A database may contain __________.

Selecciona una de las siguientes respuestas posibles:

  • tables.

  • metadata.

  • triggers.

  • stored procedures.

  • All of the above.

Explicación

Pregunta 4 de 16

1

You need to create a column in a table that will store numbers in the form nnn.xx (e.g., 145.67) What data type is this?

Selecciona una de las siguientes respuestas posibles:

  • NUMBER(5)

  • NUMBER(5,2)

  • FLOAT(3,2)

  • NUMBER(3,2)

Explicación

Pregunta 5 de 16

1

The relational model __________.

Selecciona una de las siguientes respuestas posibles:

  • was first proposed in the late 1960's/early 1970's

  • was developed by E.F Codd

  • was developed at IBM

  • resulted in the DBMS product, DB2

  • All of the above.

Explicación

Pregunta 6 de 16

1

What is the main difference between the Oracle SQL data types VARCHAR2 and CHAR?

Selecciona una de las siguientes respuestas posibles:

  • CHAR is variable in length

  • CHAR allows for numbers and text

  • VARCHAR2 is variable in length

  • VARCHAR2 has a maximum length of 255 characters

Explicación

Pregunta 7 de 16

1

Which of the following is NOT a property of a valid relation?

Selecciona una de las siguientes respuestas posibles:

  • All tuples must be unique – i.e., there must be an attribute or set of attributes that uniquely identifies each row

  • Each attribute in a relation has a distinct name

  • Attributes and tuples are not ordered

  • Each relation must contain data

Explicación

Pregunta 8 de 16

1

A null indicates:

Selecciona una de las siguientes respuestas posibles:

  • A numeric value with value 0

  • The absence of a value

  • A very small value

  • An erroneous value

Explicación

Pregunta 9 de 16

1

In the relational database terminology, a table is synonymous with:

Selecciona una de las siguientes respuestas posibles:

  • A relation

  • A row

  • An attribute

  • A column

Explicación

Pregunta 10 de 16

1

In the relational database terminology, a tuple is synonymous with:

Selecciona una de las siguientes respuestas posibles:

  • An attribute

  • A column

  • A relation

  • A row

Explicación

Pregunta 11 de 16

1

Data models have the following features:

Selecciona una de las siguientes respuestas posibles:

  • Structure, operators, constraints

  • Entity integrity, referential integrity, domain integrity

  • Relations, attributes, tuples

  • Relational algebra, relational calculus, SQL

Explicación

Pregunta 12 de 16

1

What SQL command would you execute in Oracle to show the structure of a table called Workshop?

Selecciona una de las siguientes respuestas posibles:

  • DESCRIBE Workshop;

  • DEMONSTRATE Workshop;

  • SELECT * FROM Workshop;

  • SHOW Workshop;

Explicación

Pregunta 13 de 16

1

An unknown value is indicated by:

Selecciona una de las siguientes respuestas posibles:

  • The string of characters "null"

  • The null "value"

  • The value 0

  • The string of characters "TBA"

Explicación

Pregunta 14 de 16

1

A relation that contains data recording Murdoch students' performance in units, has the following attributes:
(StudentNumber, StudentName, UnitCode, Year, Semester, Grade, Mark).

What would be an appropriate primary key for this relation?

Selecciona una de las siguientes respuestas posibles:

  • (StudentNumber)

  • (StudentNumber, UnitCode, Grade)

  • (StudentNumber, UnitCode, Year, Semester)

  • (StudentNumber, StudentName, UnitCode, Year, Semester, Grade, Mark)

Explicación

Pregunta 15 de 16

1

In the relational database terminology, an attribute is synonymous with:

Selecciona una de las siguientes respuestas posibles:

  • A relation

  • A column

  • A table

  • A row

Explicación

Pregunta 16 de 16

1

Which of the following statements does NOT apply to relational databases?

Selecciona una de las siguientes respuestas posibles:

  • Relational databases are simple to understand

  • Relational databases have a strong mathematical foundation

  • Relational databases have a strong procedural orientation

  • Tables are one of the basic components of relational databases

Explicación