Sie sind auf Seite 1von 13

IBM_TestDB2: DB2-Test

Strnka 1

DB2Student03
Aktualizovat profil Moje kurzy Odhlsit se

Web koly

Projekt E-learning

Nedle 4 listopadu 2012

IS IBM_TestDB2 Testy DB2-Test Prohldka pokusu . 1

DB2-Test Prohldka pokusu . 1


Dokonit prohldku
Zapoet testu Dokonen testu Dlka pokusu Body Znmka Koment

Sunday, 4. November 2012, 20.18 Sunday, 4. November 2012, 21.15 57 min. 20 sekund 48/50 96 z monch 100 (96%) Successful

1 Body: 1

Which of the following is NOT a DML statement? Vyberte jednu odpov a. ALTER b. UPDATE c. INSERT d. SELECT

Sprvn odpov Bodov zisk: 1/1.

2 Body: 1

In DB2 9.7, which of the following functions can be used to create tables from XML documents? Vyberte jednu odpov a. XMLTABLE b. XML2RELATIONAL c. TABLEXML d. XML2TABLE

Sprvn odpov Bodov zisk: 1/1.

3 Body: 1 Which of the following programming languages can be used to develop applications that require access to a DB2 database? Vyberte jednu odpov a. C# b. PHP

https://is.cichnovabrno.cz/mod/quiz/review.php?attempt=11104

4.11.2012 21:16:05

IBM_TestDB2: DB2-Test
c. All of the above d. Java

Strnka 2

Sprvn odpov Bodov zisk: 1/1.

4 Body: 1 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? Vyberte jednu odpov a. SELECT student_name FROM student_marks WHERE phys = 0 b. SELECT student_name FROM student_marks WHERE phys is NULL c. SELECT student_name FROM student_marks WHERE phys = NULL d. SELECT student_name FROM student_marks WHERE phys = ' '

Sprvn odpov Bodov zisk: 1/1.

5 Body: 1

What data storage method is the most optimal solution for the company? Vyberte jednu odpov a. Comma delimited data files b. Spreadsheets c. Database d. Text files

Sprvn odpov Bodov zisk: 1/1.

6 Body: 1 Which of the following is NOT a SQL/XML function in DB2 9.7? Vyberte jednu odpov a. XMLEXISTS b. XMLCAST c. EXISTS d. XMLQUERY

Sprvn odpov Bodov zisk: 1/1.

7 Body: 1 Given the following table definition: SALES

https://is.cichnovabrno.cz/mod/quiz/review.php?attempt=11104

4.11.2012 21:16:05

IBM_TestDB2: DB2-Test
-------------------------SALES_DATE DATE SALES_PERSON 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? Vyberte jednu odpov a. DELETE FROM sales WHERE YEAR(sales_date) = 1995 b. DELETE * FROM sales WHERE YEAR(sales_date) = 1995 c. DROP FROM sales WHERE YEAR(sales_date) = 1995 d. DROP * FROM sales WHERE YEAR(sales_date) = 1995

Strnka 3

Sprvn odpov Bodov zisk: 1/1.

8 Body: 1

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: Vyberte jednu odpov a. SYSIBM.table_1 b. You get an error because your query is ambiguous, as the table schema is not specified c. DB2INST1.table_1 d. DEFAULT.table_1

Sprvn odpov Bodov zisk: 1/1.

9 Body: 1 Which of the following is true about columns? Vyberte jednu odpov a. Each column consists of one or more records b. Columns must be designated a specific data type c. Columns are also known as records d. Columns are where the individual pieces of information are stored for each record

Sprvn odpov Bodov zisk: 1/1.

10 Body: 1

If circular logging is used, the following types of backup are allowed: Vyberte jednu odpov a. Online full backup b. Offline full backup c. Offline incremental backup d. Online incremental backup

Sprvn odpov Bodov zisk: 1/1.

11

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

https://is.cichnovabrno.cz/mod/quiz/review.php?attempt=11104

4.11.2012 21:16:05

IBM_TestDB2: DB2-Test
Body: 1 Vyberte jednu odpov a. Databases allow multiple users to handle and change the data without losing data and its consistency. b. Databases are an intrinsic functionality of most Operating Systems, thus it's widely available to applications. c. Databases are cheaper to use than other alternatives. d. Databases store data in an unstructured way for faster insert performance.

Strnka 4

Sprvn odpov Bodov zisk: 1/1.

12 Body: 1

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? Vyberte jednu odpov a. CLP b. INSERT c. IMPORT d. LOAD

Sprvn odpov Bodov zisk: 1/1.

13 Body: 1

Which two are optional and do not have to be specified when creating a table?
Oznate vechny sprvn odpovdi a. Default constraint b. Column name c. Table name d. NOT NULL constraint e. Column data type

Sprvn odpov Bodov zisk: 1/1.

14 Body: 1

What functionality does automatic storage provide? Vyberte jednu odpov a. Automatic storage simplifies storage management by allowing you to specify storage paths where the database manager can place table space data b. Automatic storage is a function of DB2 allows tables to be backed up automatically on a set schedule c. Automatic Storage can be used to automatically reorganize the data on the physical media in order to improve performance d. Automatic storage is an option that allows transactions that are written to the database to be automatically committed

Sprvn odpov Bodov zisk: 1/1.

15 Body: 1

What are the advantages of using Stored Procedures? Vyberte jednu odpov a. Enforcement of business rules b. Access to features that exist only on the server c. All of the above d. Reduces network traffic

Sprvn odpov Bodov zisk: 1/1.

https://is.cichnovabrno.cz/mod/quiz/review.php?attempt=11104

4.11.2012 21:16:05

IBM_TestDB2: DB2-Test
Bodov zisk: 1/1.

Strnka 5

16 Body: 1

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. Vyberte jednu odpov a. BRANCH is dependant on EMPLOYEE, PRODUCT is parent of EMPLOYEE b. BRANCH and PRODUCT are parents of EMPLOYEE c. EMPLOYEE is parent of PRODUCT and BRANCH d. PRODUCT is the parent of BRANCH and EMPLOYEE

Sprvn odpov Bodov zisk: 1/1.

17 Body: 1

Which of the following tools can be used to develop stored procedures? Vyberte jednu odpov a. DB2 CLP b. All of the Above c. DB2 Command Editor d. IBM Data Studio

Nesprvn odpov Bodov zisk: 0/1.

18 Body: 1 Consider the following command: CREATE TABLESPACE MYTBSP1 MANAGED BY AUTOMATIC

What will be the result of running this command?


Vyberte jednu odpov a. Creation of a user table space called mytbsp1 that is managed automatically b. Creation of a temporary table space called mytbsp1 that is managed automatically c. Creation of a large table space called mytbsp1 that is managed automatically d. This command will return a syntax error to the user

Sprvn odpov Bodov zisk: 1/1.

19 Body: 1 Given the following table: GUESTS -----------------name age ----- ----Jenny 34 Rodney 36 Oliver 21 Angie 42 Tom 28 Vincenzo 25

https://is.cichnovabrno.cz/mod/quiz/review.php?attempt=11104

4.11.2012 21:16:05

IBM_TestDB2: DB2-Test
Vincenzo 25 What names would be displayed as the result of the following SQL query SELECT name FROM GUESTS WHERE name LIKE '%o_' Vyberte jednu odpov a. Oliver, Rodney, Tom b. Tom c. Rodney, Tom d. Oliver, Rodney, Tom, Vincenzo

Strnka 6

Sprvn odpov Bodov zisk: 1/1.

20 Body: 1

In embedded SQL, which of the following is an example of how to establish a connection to the SAMPLE database in DB2? Vyberte jednu odpov a. EXEC SQL CONNECT TO SAMPLE b. DB2 CONNECT TO DB SAMPLE c. EXEC DB2 CONNECT TO DATABASE SAMPLE d. EXEC CONNECT TO SAMPLE

Sprvn odpov Bodov zisk: 1/1.

21 Body: 1

Which of the following statements is false? Vyberte jednu odpov a. B. One-to-one, and many-to-many are relationships you can represent in an ERD b. A. Attributes in the relational model map to rows in a relational database c. C. Entities in the relational model map to tables in a relational database d. D. In a ERD, an Entity is represented with a rectangle

Sprvn odpov Bodov zisk: 1/1.

22 Body: 1 Which of the following is a characteristic of High Availability? Vyberte jednu odpov a. It allows replication of data to a standby server that can take over in case of failure. b. . It allows high performance of a DB2 server by distributing workload across several machine. c. It allows compression of data. d. It allows definition of a policy to guarantee quality of service to applications.

Sprvn odpov Bodov zisk: 1/1.

23 Body: 1 What is the default isolation level in DB2 9.7 for Linux, Unix and Windows for new databases? Vyberte jednu odpov a. Cursor Stability b. Uncommitted Read c. None of the above d. Cursor Stability with Currently Committed semantics

Sprvn odpov Bodov zisk: 1/1.

https://is.cichnovabrno.cz/mod/quiz/review.php?attempt=11104

4.11.2012 21:16:05

IBM_TestDB2: DB2-Test

Strnka 7

24 Body: 1

When using a Relational Database, which of the following does NOT apply? Vyberte jednu odpov a. Define your database schema using a Data Definition Language (DDL). b. Accesses data using Data Manipulation Language (DML) such as SQL. c. You can use normalization to avoid redundant data in your tables. d. Data is stored in a hierarchical model.

Sprvn odpov Bodov zisk: 1/1.

25 Body: 1 Which of the following SQL statements can be used to remove data from table "users": Vyberte jednu odpov a. REMOVE TABLE users b. DROP TABLE users c. ALTER TABLE users d. DELETE TABLE users

Sprvn odpov Bodov zisk: 1/1.

26 Body: 1 What is SQL/XML? Vyberte jednu odpov a. SQL/XML is a language that provides various publishing functions to transform XML data into relational form and vice versa. b. SQL/XML is part of the XQuery standard and 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 a communication protocol for DB2 databases.

Sprvn odpov Bodov zisk: 1/1.

27 Body: 1 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

https://is.cichnovabrno.cz/mod/quiz/review.php?attempt=11104

4.11.2012 21:16:05

IBM_TestDB2: DB2-Test

Strnka 8

Vyberte jednu odpov

a. Name Domain = (Set of all Possible Names) b. Extension Doman = (53412) c. Manager Domain = (N) d. ID Domain = (1, 2, 3)

Sprvn odpov Bodov zisk: 1/1.

28 Body: 1

Which of the following is false about the DB2 environment? Vyberte jednu odpov a. A TCPIP port uniquely identifies a DB2 instance b. There can be more thah one instance running at given time 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 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

Nesprvn odpov Bodov zisk: 0/1.

29 Body: 1

Given the options below, which of the following statements can remove a table from a database? Vyberte jednu odpov a. DEL b. REMOVE c. DROP d. DELETE

Sprvn odpov Bodov zisk: 1/1.

30 Body: 1

When does authentication takes place? Vyberte jednu odpov a. It is part of DB2 server startup process b. When the user connects to the database. c. Just before DB2 executes a SQL statement sent by a client application. d. When the user disconnects from a database.

Sprvn odpov Bodov zisk: 1/1.

31 Body: 1

Which of the following is false about IBM Data Studio? Vyberte jednu odpov a. IBM Data Studio is free, open source software b. IBM Data Studio IDE package allows for shell-sharing c. IBM Data Studio is based on Eclipse d. IBM Data Studio can be used to develop stored procedures, UDFs and SQL or XQuery scripts

Sprvn odpov Bodov zisk: 1/1.

https://is.cichnovabrno.cz/mod/quiz/review.php?attempt=11104

4.11.2012 21:16:05

IBM_TestDB2: DB2-Test
32 Body: 1 c. DB2 Everyplace d. DB2 Enterprise Server Edition

Strnka 9

Sprvn odpov

Bodov zisk: 1/1.

33 Body: 1 Which of the following statements is false? Vyberte jednu odpov a. One-to-one, and many-to-many are relationships you can represent in a ERD b. Entities in the relational model map to tables in relational database c. In a ERD, an Entity is represented with a rectangle d. Attributes in the relational mode map to rows in a relational database

Sprvn odpov Bodov zisk: 1/1.

34 Body: 1

Which of the following tools would you use if you need to execute SQL statements against a DB2 database from the command line? Vyberte jednu odpov a. DB2 Command Line Processor b. DB2 Health Center c. DB2 Command Line Advisor d. DB2 Control Center

Sprvn odpov Bodov zisk: 1/1.

35 Body: 1

Which are some components of the Relational Data Model?


Vyberte jednu odpov a. Tables, rows, degree b. Instances, record types, entities c. Relations, attributes, tuples d. Pointers, sets, constraints

Sprvn odpov Bodov zisk: 1/1.

36 Body: 1

Which of the following is a characteristic of DB2 Express-C? Vyberte jednu odpov a. The C in the name stands for the C language b. All of the above c. It has a 2GB database size limit d. It is free to develop, deploy and distribute

Sprvn odpov Bodov zisk: 1/1.

https://is.cichnovabrno.cz/mod/quiz/review.php?attempt=11104

4.11.2012 21:16:05

IBM_TestDB2: DB2-Test
37 Body: 1 c. Primary keys uniquely identify each tuple of the relation. d. Primary keys are defined by a subset of attributes of a relation.

Strnka 10

Sprvn odpov

Bodov zisk: 1/1.

38 Body: 1

Which of the following is NOT true about keys in the relational model? Vyberte jednu odpov a. Primary keys uniquely identify each tuple of the relation. b. Primary keys can contain NULLs. c. A relation can have multiple foreign keys. d. Primary keys are defined by a subset of attributes of a relation.

Sprvn odpov Bodov zisk: 1/1.

39 Body: 1 Given the options below, which of the following statements can add records to a table? Vyberte jednu odpov a. ADDRECORD b. INSERT c. ADD d. ADDREC

Sprvn odpov Bodov zisk: 1/1.

40 Body: 1

Which of the following statements grants user John the ability to insert data to table tab1? Vyberte jednu odpov a. GRANT INSERT ON TABLE tab1 TO John b. GRANT INSERT ON TABLE tab1 TO USER John c. GRANT ADD ON TABLE tab1 TO USER John d. GRANT ADD ON TABLE tab1 TO John

Sprvn odpov Bodov zisk: 1/1.

41 Body: 1 Which of the following statements revoke access to SAMPLE database from user TOM? Vyberte jednu odpov a. REVOKE CONNECT ON DATABASE FROM USER tom b. REVOKE ACCESS FROM USER tom ON sample c. REVOKE ACCESS FROM USER tom ON DATABASE d. REVOKE CONNECT ON sample FROM USER tom

Sprvn odpov Bodov zisk: 1/1.

https://is.cichnovabrno.cz/mod/quiz/review.php?attempt=11104

4.11.2012 21:16:05

IBM_TestDB2: DB2-Test
c. Rows are also known as fields of the table d. A table consists of columns and rows

Strnka 11

Sprvn odpov

Bodov zisk: 1/1.

43 Body: 1

Which of the following privileges permits a user to create objects within a schema? Vyberte jednu odpov a. ALTER b. CREATEIN c. CONTROL d. REFERENCES

Sprvn odpov Bodov zisk: 1/1.

44 Body: 1 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? Vyberte jednu odpov a. 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 b. The statement will fail because an UPDATE statement cannot contain a subquery c. The statement will only succeed if the data retrieved by the subquery does not contain multiple records d. The statement will only succeed if every record in the EMPLOYEES table has a null value in the WORKDEPT column

Sprvn odpov Bodov zisk: 1/1.

45 Body: 1

Assuming that you are currently connected to a DB2 database, which of the following commands will terminate your connection?
Vyberte jednu odpov a. db2 connect end b. db2 connect kill c. db2 connect finalize d. db2 terminate

Sprvn odpov Bodov zisk: 1/1.

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

https://is.cichnovabrno.cz/mod/quiz/review.php?attempt=11104

4.11.2012 21:16:05

IBM_TestDB2: DB2-Test
Vyberte jednu odpov a. pureXML b. Performance Optimization c. Storage Optimization d. Advanced Access Control

Strnka 12

Sprvn odpov Bodov zisk: 1/1.

47 Body: 1

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


Vyberte jednu odpov a. TEMPSPACE1 table space b. SYSCATSPACE table space c. All of the above d. IBMDEFAULT buffer pool

Sprvn odpov Bodov zisk: 1/1.

48 Body: 1

Which of the following is true about DB2 instances?


Vyberte jednu odpov a. Within an instance you can only create one and only one database b. If instance 'A' is down, databases in this instance are inaccessible c. Instances are related between each other through the dbm cfg d. If instance 'A' crashes, no other instance running in the system will work either

Sprvn odpov Bodov zisk: 1/1.

49 Body: 1

Which Data Model was created with the focus of providing better data independence?
Vyberte jednu odpov a. Semi-structured b. Entity-Relationship c. Hierarchical d. Relational

Sprvn odpov Bodov zisk: 1/1.

50 Body: 1 Which of the following statements is FALSE regarding Buffer Pools? Vyberte jednu odpov a. The size of a Buffer Pool can be automatically resized by STMM b. A database can only have one Buffer Pool. 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.

Sprvn odpov Bodov zisk: 1/1.

Dokonit prohldku

https://is.cichnovabrno.cz/mod/quiz/review.php?attempt=11104

4.11.2012 21:16:05

IBM_TestDB2: DB2-Test

Strnka 13

Stedn kola informatiky a spoj, Brno, ichnova 23. Kontakt: ssibrno@seznam.cz.

https://is.cichnovabrno.cz/mod/quiz/review.php?attempt=11104

4.11.2012 21:16:05

Das könnte Ihnen auch gefallen