Database Concepts and DB2 Fundamentals
Quiz covering database fundamentals including DB2 data types, constraints, views, triggers, transactions, cursors, and basic database record structures
Questions
Each time you fetch a row from the cursor, it results in a network roundtrip
- True
- False
can we have a nested transaction
- True
- False
t-sql variables case sensitive?
- True
- False
A database is divided into:
- records
- fields
- articles
- names
In a database of newspaper, journal or magazine articles, each record represents:
- one magazine, journal or newspaper
- one author
- one article from a magazine, journal or newspaper
- all of the above
In a library catalogue database, each record represents:
- one book, journal, video, CD, etc.
- one author
- one subject
- all of the above
You are searching an electronic article index that contains citations to journal articles. What part of each article does the database contain?
- the whole article
- a summary of the article
- the title of the article
- the author, title and source of the article
You are making your own database so you can organize information about your ‘Top 100' movies. You want to include information like Title, Actor(s), Director, Year, Genre, etc. Each record in your database will represent:
- an actor
- a director
- a year
- a movie
Which of the following is the lowest cost DB2 product that can be legally installed on a Windows server that has 2 CPUs?
- DB2 Everyplace
- DB2 Express Edition
- DB2 Workgroup Server Edition
- DB2 Enterprise Server Edition
On which two of the following database objects may the SELECT privilege be controlled?
- Index
- Sequence
- Nickname
- View
Which of the following DB2 objects can be referenced by an INSERT statement to generate values for a column?
- Identity column
- Table function
- Sequence
- Trigger
Which of the following events will NOT cause a trigger to be activated?
- A select operation
- An update operation
- An insert operation
- A delete operation
Which of the following DB2 data types does NOT have a fixed length?
- INT
- XML
- CHAR
- DOUBLE
Which of the following DB2 data types can NOT be used to create an identity column?
- SMALLINT
- NUMERIC
- INTEGER
- DOUBLE
Which of the following are optional and do not have to be specified when creating a table?
- Default constraint
- Column data type
- Column name
- Table name
Which of the following can NOT be used to restrict specific values from being inserted into a column in a particular table?
- Index
- Check constraint
- Default constraint
- Referential constraint
When does a view get populated?
- When it is created
- When it is referenced in an INSERT statement
- Any time an executable SQL statement references it
- The first time any executable SQL statement references it
To which of the following resources can a lock NOT be applied?
- Tablespaces
- Buffer pools
- Tables
- Rows
In NPS the minimum NPS row overhead is how many bytes
- 24
- 26
- 28
- 22
In NPS, it's a best practice to use 'rowid' as a primary key in a database table to guarantee quick access
- True
- False