ibm db2 test 302

Upload: matej-holub

Post on 04-Apr-2018

244 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/30/2019 IBM DB2 test 302

    1/15

    /11/12 IBM_TestDB2: DB2-Test

    tps://is.cichnovabrno.c/mod/qui/review.php?attempt=11140

    Nedle 11 listopadu 2012

    IS IBM_TestDB2 Testy DB2-Test Prohldka pokusu . 1

    1

    Body: 1

    Vyberte jednu

    odpov

    a. db2 terminate

    b. db2 connect finalize

    c. db2 connect kill

    d. db2 connect end

    Assuming that you are currently connected to a DB2 database, which of the following

    commands will terminate your connection?

    Sprvn odpov

    Bodov zisk: 1/1.

    2

    Body: 1

    Vyberte jednu

    odpov

    a. IBM Data Studio is based on Eclipse

    b. IBM Data Studio IDE package allows for shell-sharing

    c. IBM Data Studio can be used to develop stored procedures, UDFs and SQL or

    XQuery scripts

    d. IBM Data Studio is free, open source software

    Which of the following is false about IBM Data Studio?

    Sprvn odpov

    DB2-Test

    Prohldka pokusu . 1

    Dokonit prohldku

    Zapoet testu Sunday, 11. November 2012, 10.38

    Dokonen testu Sunday, 11. November 2012, 10.55

    Dlka pokusu 17 min. 24 sekund

    Body 49/50

    Znmka 98 z monch 100 (98%)

    Koment

    Successful

    DB2 Student11Aktualizovat profil

    Moje kurzy

    Odhlsit se

    Web koly Projekt E-learning

  • 7/30/2019 IBM DB2 test 302

    2/15

    /11/12 IBM_TestDB2: DB2-Test

    tps://is.cichnovabrno.c/mod/qui/review.php?attempt=11140

    Bodov zisk: 1/1.

    3

    Body: 1

    Vyberte jednu

    odpov

    a. Oliver, Rodney, Tom

    b. Tom

    c. Oliver, Rodney, Tom, Vincenzo

    d. Rodney, Tom

    Given the following table:

    GUESTS

    ------------------

    name age

    ----- -----

    Jenny 34

    Rodney 36

    Oliver 21

    Angie 42

    Tom 28

    Vincenzo 25

    What names would be displayed as the result of the following SQL query

    SELECT name FROM GUESTS WHERE name LIKE '%o_'

    Sprvn odpov

    Bodov zisk: 1/1.

    4

    Body: 1

    Vyberte jednu

    odpov

    a. DB2 Command Line Processor

    b. DB2 Control Center

    c. DB2 Command Line Advisor

    d. DB2 Health Center

    Which of the following tools would you use if you need to execute SQL statements against a DB2 database

    from the command line?

    Sprvn odpov

    Bodov zisk: 1/1.

    5

    Body: 1

    Vyberte jednu a. It allows definition of a policy to guarantee quality of service to applications.

    Which of the following is a characteristic of High Availability?

  • 7/30/2019 IBM DB2 test 302

    3/15

    /11/12 IBM_TestDB2: DB2-Test

    tps://is.cichnovabrno.c/mod/qui/review.php?attempt=11140

    odpov b. . It allows high performance of a DB2 server by distributing workload across several

    machine.

    c. It allows compression of data.

    d. It allows replication of data to a standby server that can take over in case of failure.

    Sprvn odpov

    Bodov zisk: 1/1.

    6

    Body: 1

    Vyberte jednu

    odpov

    a. There is a conflict if you attempt to create a table space in Database A with a table

    space name that has already been used in the same tablespace

    b. A TCPIP port uniquely identifies a DB2 instance

    c. There is a conflict if you attempt to create a database in instance B with a

    database name that has already been used in instance A

    d. There can be more thah one instance running at given time

    Which of the following is false about the DB2 environment?

    Sprvn odpov

    Bodov zisk: 1/1.

    7

    Body: 1

    Vyberte jednu

    odpov

    a. Automatic storage is a function of DB2 allows tables to be backed up automatically

    on a set schedule

    b. Automatic Storage can be used to automatically reorganize the data on the

    physical media in order to improve performance

    c. Automatic storage simplifies storage management by allowing you to specifystorage paths where the database manager can place table space data

    d. Automatic storage is an option that allows transactions that are written to the

    database to be automatically committed

    What functionality does automatic storage provide?

    Sprvn odpov

    Bodov zisk: 1/1.

    8

    Body: 1

    Vyberte jednu

    odpov

    a. The statement will only succeed if every record in the EMPLOYEES table has a

    null value in the WORKDEPT column

    b. The statement will only succeed if the data retrieved by the subquery does not

    Given the following UPDATE statement:

    UPDATE employees SET workdept =

    (SELECT deptno FROM department WHERE deptno = 'A01')

    WHERE workdept IS NULL

    Which of the following describes the result if this statement is executed?

  • 7/30/2019 IBM DB2 test 302

    4/15

    /11/12 IBM_TestDB2: DB2-Test

    tps://is.cichnovabrno.c/mod/qui/review.php?attempt=11140

    contain multiple records

    c. The statement will fail because an UPDATE statement cannot contain a subquery

    d. The statement will succeed if the data retrieved by the subquery contains multiple

    records, only the first record will be used to perform the update

    Sprvn odpov

    Bodov zisk: 1/1.

    9

    Body: 1

    Vyberte jednu

    odpov

    a. DB2 Command Editor

    b. All of the Above

    c. DB2 CLP

    d. IBM Data Studio

    Which of the following tools can be used to develop stored procedures?

    Sprvn odpov

    Bodov zisk: 1/1.

    10

    Body: 1

    Vyberte jednu

    odpov

    a. REVOKE ACCESS FROM USER tom ON sample

    b. REVOKE CONNECT ON sample FROM USER tom

    c. REVOKE ACCESS FROM USER tom ON DATABASE

    d. REVOKE CONNECT ON DATABASE FROM USER tom

    Which of the following statements revoke access to SAMPLE database from user TOM?

    Sprvn odpov

    Bodov zisk: 1/1.

    11

    Body: 1

    Vyberte jednu

    odpov

    a. B. One-to-one, and many-to-many are relationships you can represent in an ERD

    b. D. In a ERD, an Entity is represented with a rectangle

    c. A. Attributes in the relational model map to rows in a relational database

    d. C. Entities in the relational model map to tables in a relational database

    Which of the following statements is false?

    Sprvn odpovBodov zisk: 1/1.

    12

    Body: 1

    Vyberte jednu

    odpov

    a. ADD

    b. INSERT

    Given the options below, which of the following statements can add records to a table?

  • 7/30/2019 IBM DB2 test 302

    5/15

    /11/12 IBM_TestDB2: DB2-Test

    tps://is.cichnovabrno.c/mod/qui/review.php?attempt=11140

    c. ADDREC

    d. ADDRECORD

    Sprvn odpov

    Bodov zisk: 1/1.

    13

    Body: 1

    Vyberte jednu

    odpov

    a. DEFAULT.table_1

    b. SYSIBM.table_1

    c. DB2INST1.table_1

    d. You get an error because your query is ambiguous, as the table schema is not

    specified

    Consider the following scenario. You have 3 tables with the same name (TABLE_1) under 3 different schemas

    (SYSIBM, DEFAULT and DB2INST1). You are connected to a DB2 database in your Linux server as db2inst1

    and issue the following statement:

    SELECT * FROM table_1

    Which table will you be selecting data from:

    Sprvn odpov

    Bodov zisk: 1/1.

    14

    Body: 1

    Vyberte jednu

    odpov

    a. Database

    b. Comma delimited data files

    c. Spreadsheets

    d. Text files

    What data storage method is the most optimal solution for the company?

    Sprvn odpov

    Bodov zisk: 1/1.

    15

    Body: 1

    Vyberte jednu

    odpov

    a. SYSCATSPACE table space

    b. IBMDEFAULT buffer pool

    c. TEMPSPACE1 table spaced. All of the above

    Which of the following is created when a DB2 database is created?

    Sprvn odpov

    Bodov zisk: 1/1.

    16

    Body: 1

    Vyberte jednu

    If circular logging is used, the following types of backup are allowed:

  • 7/30/2019 IBM DB2 test 302

    6/15

    /11/12 IBM_TestDB2: DB2-Test

    tps://is.cichnovabrno.c/mod/qui/review.php?attempt=11140

    odpov a. Offline full backup

    b. Online full backup

    c. Offline incremental backup

    d. Online incremental backup

    Sprvn odpov

    Bodov zisk: 1/1.

    17

    Body: 1

    Oznate

    vechny

    sprvn

    odpovdi

    a. Column name

    b. NOT NULL constraint

    c. Table name

    d. Column data type

    e. Default constraint

    Which two are optional and do not have to be specified when creating a table?

    Sprvn odpovBodov zisk: 1/1.

    18

    Body: 1

    Vyberte jednu

    odpov

    a. XMLEXISTS

    b. XMLCAST

    c. EXISTS

    d. XMLQUERY

    Which of the following is NOT a SQL/XML function in DB2 9.7?

    Sprvn odpov

    Bodov zisk: 1/1.

    19

    Body: 1

    Vyberte jednu

    odpov

    a. TABLEXML

    b. XMLTABLE

    c. XML2TABLE

    d. XML2RELATIONAL

    In DB2 9.7, which of the following functions can be used to create tables from XML documents?

    Sprvn odpov

    Bodov zisk: 1/1.

    20

    Body: 1Which of the following programming languages can be used to develop applications that require access to a

    DB2 database?

  • 7/30/2019 IBM DB2 test 302

    7/15

    /11/12 IBM_TestDB2: DB2-Test

    tps://is.cichnovabrno.c/mod/qui/review.php?attempt=11140

    Vyberte jednu

    odpov

    a. PHP

    b. Java

    c. All of the above

    d. C#

    Sprvn odpov

    Bodov zisk: 1/1.

    21

    Body: 1

    Vyberte jednu

    odpov

    a. Columns must be designated a specific data type

    b. Columns are also known as records

    c. Columns are where the individual pieces of information are stored for each record

    d. Each column consists of one or more records

    Which of the following is true about columns?

    Sprvn odpov

    Bodov zisk: 1/1.

    22

    Body: 1

    Vyberte jednu

    odpov

    a. It has a 2GB database size limit

    b. It is free to develop, deploy and distribute

    c. The C in the name stands for the C language

    d. All of the above

    Which of the following is a characteristic of DB2 Express-C?

    Sprvn odpovBodov zisk: 1/1.

    23

    Body: 1

    Vyberte jednu

    odpov

    a. DROP TABLE users

    b. DELETE TABLE users

    c. REMOVE TABLE users

    d. ALTER TABLE users

    Which of the following SQL statements can be used to remove data from table "users":

    Sprvn odpov

    Bodov zisk: 1/1.

    24

    Body: 1

    Vyberte jednu

    odpov

    a. None of the above

    What is the default isolation level in DB2 9.7 for Linux, Unix and Windows for new databases?

  • 7/30/2019 IBM DB2 test 302

    8/15

    /11/12 IBM_TestDB2: DB2-Test

    tps://is.cichnovabrno.c/mod/qui/review.php?attempt=11140

    b. Cursor Stability with Currently Committed semantics

    c. Cursor Stability

    d. Uncommitted Read

    Sprvn odpov

    Bodov zisk: 1/1.

    25

    Body: 1

    Vyberte jednu

    odpov

    a. Name Domain = (Set of all Possible Names)

    b. Manager Domain = (N)

    c. ID Domain = (1, 2, 3)

    d. Extension Doman = (53412)

    Which of the following options best describes a domain found in the table below?

    CREATE TABLE EMPLOYEE (

    ID INTEGER NOT NULL,

    NAME VARCHAR(30) NOT NULL,

    EXTENSION INTEGER NOT NULL,

    MANAGER VARCHAR(30) NOT NULL

    PRIMARY KEY (ID))

    TERMINATE

    ID NAME EXTENSION MANAGER

    1 John S 53412 Y

    2 Susan P 54123 N

    3 Jennifer L 51234 N

    Sprvn odpov

    Bodov zisk: 1/1.

    26

    Body: 1

    Vyberte jednu

    odpov

    a. If instance 'A' is down, databases in this instance are inaccessible

    b. If instance 'A' crashes, no other instance running in the system will work either

    c. Within an instance you can only create one and only one database

    d. Instances are related between each other through the dbm cfg

    Which of the following is true about DB2 instances?

    Sprvn odpov

    Bodov zisk: 1/1.

  • 7/30/2019 IBM DB2 test 302

    9/15

    /11/12 IBM_TestDB2: DB2-Test

    tps://is.cichnovabrno.c/mod/qui/review.php?attempt=11140

    27

    Body: 1

    Vyberte jednu

    odpov

    a. EXEC CONNECT TO SAMPLE

    b. EXEC DB2 CONNECT TO DATABASE SAMPLE

    c. DB2 CONNECT TO DB SAMPLE

    d. EXEC SQL CONNECT TO SAMPLE

    In embedded SQL, which of the following is an example of how to establish a connection to the SAMPLE

    database in DB2?

    Sprvn odpov

    Bodov zisk: 1/1.

    28

    Body: 1

    Vyberte jednu

    odpov

    a. INSERT

    b. IMPORT

    c. LOAD

    d. CLP

    You are assigned the task of importing a large amount of data into a DB2 database. Considering you must log

    all the information about the rows imported and that you want to perform the load as fast as possible, which is

    the best tool to use for this job?

    Sprvn odpov

    Bodov zisk: 1/1.

    29

    Body: 1

    Vyberte jednu

    odpov

    a. Primary keys can contain NULLs.

    b. Primary keys uniquely identify each tuple of the relation.

    c. A relation can have multiple foreign keys.

    d. Primary keys are defined by a subset of attributes of a relation.

    Which of the following is NOT true about keys in the relational model?

    Sprvn odpov

    Bodov zisk: 1/1.

    30

    Body: 1

    Vyberte jednu

    odpov

    a. A database can only have one Buffer Pool.

    b. The size of a Buffer Pool can be automatically resized by STMM

    c. Buffer Pools work as a cache, storing data that is read from table spaces.

    d. Pages in a Buffer Pool can be 4k, 8k, 16k and 32k in size.

    Which of the following statements is FALSE regarding Buffer Pools?

    Sprvn odpov

    Bodov zisk: 1/1.

  • 7/30/2019 IBM DB2 test 302

    10/15

    /11/12 IBM_TestDB2: DB2-Test

    tps://is.cichnovabrno.c/mod/qui/review.php?attempt=11140

    31

    Body: 1

    Vyberte jednu

    odpov

    a. SQL/XML is a communication protocol for DB2 databases.

    b. SQL/XML is a language that provides various publishing functions to transform

    XML data into relational form and vice versa.

    c. SQL/XML is an extension to SQL standard and provides various publishing

    functions to transform XML data into relational form and vice versa.

    d. SQL/XML is part of the XQuery standard and provides various publishing functions

    to transform XML data into relational form and vice versa.

    What is SQL/XML?

    Sprvn odpov

    Bodov zisk: 1/1.

    32

    Body: 1

    Vyberte jednu

    odpov

    a. Pointers, sets, constraints

    b. Relations, attributes, tuples

    c. Tables, rows, degree

    d. Instances, record types, entities

    Which are some components of the Relational Data Model?

    Sprvn odpov

    Bodov zisk: 1/1.

    33

    Body: 1

    Vyberte jednuodpov

    a. Data is stored in a hierarchical model.

    b. You can use normalization to avoid redundant data in your tables.

    c. Define your database schema using a Data Definition Language (DDL).

    d. Accesses data using Data Manipulation Language (DML) such as SQL.

    When using a Relational Database, which of the following does NOT apply?

    Sprvn odpov

    Bodov zisk: 1/1.

    34

    Body: 1Vyberte jednu

    odpov

    a. Rows are also known as fields of the table

    b. A table consists of columns and rows

    c. Rows in the same table can have a different set of columns

    d. Relational databases cannot store video or audio

    Which of the following is true about Relational Databases?

    Sprvn odpov

    Bodov zisk: 1/1.

  • 7/30/2019 IBM DB2 test 302

    11/15

    /11/12 IBM_TestDB2: DB2-Test

    tps://is.cichnovabrno.c/mod/qui/review.php?attempt=11140

    35

    Body: 1

    Vyberte jednu

    odpov

    a. GRANT INSERT ON TABLE tab1 TO USER John

    b. GRANT ADD ON TABLE tab1 TO USER John

    c. GRANT ADD ON TABLE tab1 TO John

    d. GRANT INSERT ON TABLE tab1 TO John

    Which of the following statements grants user John the ability to insert data to table tab1?

    Sprvn odpov

    Bodov zisk: 1/1.

    36

    Body: 1

    Vyberte jednu

    odpov

    a. Hierarchical

    b. Entity-Relationship

    c. Semi-structured

    d. Relational

    Which Data Model was created with the focus of providing better data independence?

    Sprvn odpov

    Bodov zisk: 1/1.

    37

    Body: 1

    Vyberte jednu

    odpov

    a. BRANCH and PRODUCT are parents of EMPLOYEE

    b. BRANCH is dependant on EMPLOYEE, PRODUCT is parent of EMPLOYEE

    c. EMPLOYEE is parent of PRODUCT and BRANCH

    d. PRODUCT is the parent of BRANCH and EMPLOYEE

    Your company has asked you to create a database to store and organize data about the structure of the

    company. You want to store branch, employee data, and product information in three tables BRANCH,

    EMPLOYEE and PRODUCT. An employee is assigned to work at a branch on a specific product. With this

    information, indicate what would be the relationship you should use between these tables considering

    normalization.

    Sprvn odpov

    Bodov zisk: 1/1.

    38

    Body: 1

    Vyberte jednu

    odpov

    a. CONTROL

    b. REFERENCES

    c. CREATEIN

    d. ALTER

    Which of the following privileges permits a user to create objects within a schema?

    Sprvn odpov

    Bodov zisk: 1/1.

  • 7/30/2019 IBM DB2 test 302

    12/15

    /11/12 IBM_TestDB2: DB2-Test

    tps://is.cichnovabrno.c/mod/qui/review.php?attempt=11140

    39

    Body: 1

    Vyberte jednu

    odpov

    a. DELETE * FROM sales WHERE YEAR(sales_date) = 1995

    b. DROP * FROM sales WHERE YEAR(sales_date) = 1995

    c. DELETE FROM sales WHERE YEAR(sales_date) = 1995

    d. DROP FROM sales WHERE YEAR(sales_date) = 1995

    Given the following table definition:

    SALES

    --------------------------

    SALES_DATE DATE

    SALES_PE RSON CHAR(20)

    REGION CHAR(20)

    SALES INTEGER

    Which of the following SQL statements will remove all rows that had a SALES_DATE in the year

    1995?

    Sprvn odpov

    Bodov zisk: 1/1.

    40

    Body: 1

    Vyberte jednu

    odpov

    a. DEL

    b. REMOVE

    c. DROP

    d. DELETE

    Given the options below, which of the following statements can remove a table from a database?

    Sprvn odpov

    Bodov zisk: 1/1.

    41

    Body: 1

    Vyberte jednu

    odpov

    a. Creation of a temporary table space called mytbsp1 that is managed automatically

    b. Creation of a large table space called mytbsp1 that is managed automatically

    c. Creation of a user table space called mytbsp1 that is managed automatically

    d. This command will return a syntax error to the user

    Consider the following command:

    CREATE TABLESPACE MYTBSP1 MANAGED BY AUTOMATIC

    What will be the result of running this command?

  • 7/30/2019 IBM DB2 test 302

    13/15

    /11/12 IBM_TestDB2: DB2-Test

    tps://is.cichnovabrno.c/mod/qui/review.php?attempt=11140

    Sprvn odpov

    Bodov zisk: 1/1.

    42

    Body: 1

    Vyberte jednu

    odpov

    a. SELECT

    b. UPDATE

    c. INSERT

    d. ALTER

    Which of the following is NOT a DML statement?

    Sprvn odpov

    Bodov zisk: 1/1.

    43

    Body: 1

    Vyberte jednuodpov

    a. DB2 Express Edition

    b. DB2 Everyplace

    c. DB2 Enterprise Server Edition

    d. DB2 Workgroup Server Edition

    Which of the following is the lowest cost DB2 product that can be legally installed on a Linux server that has 2

    CPUs?

    Sprvn odpov

    Bodov zisk: 1/1.

    44

    Body: 1

    Vyberte jednu

    odpov

    a. Primary keys uniquely identify each tuple of the relation.

    b. Primary keys define the relationship between two tables.

    c. A relation can have multiple foreign keys.

    d. Primary keys are defined by a subset of attributes of a relation.

    Which of the following is NOT true about keys in the relational model?

    Nesprvn odpov

    Bodov zisk: 0/1.

    45Body: 1

    Vyberte jednu

    odpov

    a. When the user disconnects from a database.

    b. When the user connects to the database.

    c. It is part of DB2 server startup process

    d. Just before DB2 executes a SQL statement sent by a client application.

    When does authentication takes place?

    Sprvn odpov

    Bodov zisk: 1/1.

  • 7/30/2019 IBM DB2 test 302

    14/15

    /11/12 IBM_TestDB2: DB2-Test

    tps://is.cichnovabrno.c/mod/qui/review.php?attempt=11140

    46

    Body: 1

    Vyberte jednu

    odpov

    a. Databases are cheaper to use than other alternatives.

    b. Databases store data in an unstructured way for faster insert performance.

    c. Databases allow multiple users to handle and change the data without losing data

    and its consistency.

    d. Databases are an intrinsic functionality of most Operating Systems, thus it's widely

    available to applications.

    Which of the following is a reason for using databases to store data INSTEAD of the many alternatives?

    Sprvn odpov

    Bodov zisk: 1/1.

    47

    Body: 1

    Vyberte jednu

    odpov

    a. SELECT student_name FROM student_marks WHERE phys is NULL

    b. SELECT student_name FROM student_marks WHERE phys = ' '

    c. SELECT student_name FROM student_marks WHERE phys = NULL

    d. SELECT student_name FROM student_marks WHERE phys = 0

    Giving the following create table statement

    CREATE TABLE student_marks

    (student_name CHAR(20) NOT NULL,

    student_number INTEGER NOT NULL,

    math INTEGER,

    phys INTEGER,

    engl Integer)

    Which of the following statements will retrieve the student's name who does NOT have a phys mark?

    Sprvn odpov

    Bodov zisk: 1/1.

    48

    Body: 1

    Vyberte jednu

    odpov

    a. In a ERD, an Entity is represented with a rectangle

    b. One-to-one, and many-to-many are relationships you can represent in a ERD

    c. Entities in the relational model map to tables in relational database

    d. Attributes in the relational mode map to rows in a relational database

    Which of the following statements is false?

    Sprvn odpov

    Bodov zisk: 1/1.

  • 7/30/2019 IBM DB2 test 302

    15/15

    /11/12 IBM_TestDB2: DB2-Test

    49

    Body: 1

    Vyberte jednu

    odpov

    a. All of the above

    b. Reduces network traffic

    c. Access to features that exist only on the server

    d. Enforcement of business rules

    What are the advantages of using Stored Procedures?

    Sprvn odpovBodov zisk: 1/1.

    50

    Body: 1

    Vyberte jednu

    odpov

    a. Storage Optimization

    b. Advanced Access Control

    c. Performance Optimization

    d. pureXML

    Which of the following is NOT a Feature Pack that can add extra functionality to a DB2 server?

    Sprvn odpov

    Bodov zisk: 1/1.

    Dokonit prohldku

    Stedn kola informatiky a spoj, Brno, ichnova 23. Kontakt:[email protected].