Download IBM.C2090-543.PracticeTest.2018-08-11.54q.vcex

Download Exam

File Info

Exam DB2 9.7 Application Development
Number C2090-543
File Name IBM.C2090-543.PracticeTest.2018-08-11.54q.vcex
Size 36 KB
Posted Aug 11, 2018
Download IBM.C2090-543.PracticeTest.2018-08-11.54q.vcex

How to open VCEX & EXAM Files?

Files with VCEX & EXAM extensions can be opened by ProfExam Simulator.

Purchase

Coupon: MASTEREXAM
With discount: 20%






Demo Questions

Question 1

Click the Exhibit button. 
CREATE FUNCTION deptemployees (idept VARCHAR(3)) 
RETURNS TABLE (empno CHAR(6), 
firstname VARCHAR(12), 
lastname VARCHAR(15)) 
LANGUAGE SQL 
READS SQL DATA 
NO EXTERNAL ACTION 
DETERMINISTIC 
RETURN 
SELECT empno, firstnme, lastname 
FROM employee 
WHERE workdept = deptemployees.idept; 
Referring to the exhibit, what contains the proper way to invoke the DEPTEMPLOYEES() user-defined function to return all of the employees that work in department D11?


  1. SELECT * FROM TABLE(deptemployees('D11'))
  2. SELECT * FROM deptemployees('D11')
  3. SELECT * FROM deptemployees('D11') AS D11dept
  4. SELECT * FROM TABLE(deptemployees('D11')) AS D11dept
Correct answer: D



Question 2

An application must insert values into a column that has a TIMESTAMP data type. 
What is a valid string representation of a TIMESTAMP?


  1. 2009.08.07.12.22.22.0000
  2. 2009-08-07 12:22:22.0000
  3. 07/08/2009-12:22:22:0000
  4. 07-08-2009 12.22.22.0000
Correct answer: B



Question 3

In a query, which clause can reference a CLOB data type?


  1. an ORDER BY clause
  2. a GROUP BY clause
  3. a WHERE clause
  4. a DISTINCT clause
Correct answer: C



Question 4

You have set your data types as CHAR(10), VARCHAR(20). Given the operation shown below:
CHAR(10) UNION VARCHAR(20)  
What will be the final data type?


  1. CHAR(200)
  2. VARCHAR(30)
  3. VARCHAR(20)
  4. CHAR(30)
Correct answer: C



Question 5

The table shown below exists in the database:
CREATE TABLE team.workitems ( priority INTEGER, last_update TIMESTAMP, details XML ) 
User USER1 has CREATEIN authority on the TEAM schema and can SELECT from the TEAM.WORKITEMS table. An SQL routine is created that performs a positioned update using a cursor declared as shown below:
DECLARE c_workitem CURSOR FOR SELECT priority, last_update FROM team.workitems FOR UPDATE; 
Which additional privilege is required?


  1. EXECUTE privilege on TEAM schema
  2. ALTER privilege on TEAM.WORKITEMS table
  3. BINDADD privilege on TEAM schema
  4. UPDATE privilege on TEAM.WORKITEMS table
Correct answer: D



Question 6

User USER1 successfully creates a table USER1.TABLE1 and successfully creates a package USER1.PKG1 for an application containing the SQL shown below:
EXEC SQL UPDATE user1.table1 SET col1 = :hvar1 WHERE col1 IS NULL
Assuming user USER2 can connect to the database, but has no other relevant authorities, which command must user USER1 issue to permit user USER2 to run the application?


  1. GRANT ALTER ON TABLE user1.table1 TO USER user2
  2. GRANT EXECUTE ON PACKAGE user1.pkg1 TO USER user2
  3. GRANT UPDATE ON TABLE user1.table1 TO USER user2
  4. GRANT BIND ON PACKAGE user1.pkg1 TO USER user2
Correct answer: B



Question 7

A database contains a table and a view declared as shown below:
CREATE TABLE s1.t1 ( c1 INTEGER, c2 CHAR(20) ); 
CREATE VIEW s1.v1 AS SELECT * FROM s1.t1; 
A system administrator successfully executes the following code:
GRANT CONNECT, IMPLICIT_SCHEMA ON DATABASE TO user1; 
GRANT INSERT ON TABLE s1.t1 TO user1; 
GRANT CONTROL ON s1.v1 TO user1; 
Which SQL statement does user USER1 have privileges to execute?


  1. UPDATE s1.t1 SET c1 = 2 WHERE c1 IS NULL
  2. CREATE VIEW user1.v2 AS SELECT * FROM s1.v1
  3. CREATE PUBLIC ALIAS a1 FOR s1.v1
  4. SELECT * FROM s1.t1 WHERE c2 < 100
Correct answer: B



Question 8

Which statement is true of an application that only uses static SQL?


  1. The authorization ID of program creator is used to qualify explicitly qualified table references on a DROP statement.
  2. Static SQL uses SQLDA to determine the number of rows successfully fetched on a FETCH statement.
  3. The authorization ID of application creator is used to qualify implicitly qualified view references on an UPDATE statement.
  4. The authorization ID of application invoker used by DB2 to perform authorization checking of an embedded OPEN statement during execution.
Correct answer: C



Question 9

Which set of SQL statements must be run prior to the EXECUTE statement shown below so that the INSERT statement can be executed successfully? 
EXECUTE s1 USING :v1;


  1. SET :stmt = 'INSERT INTO tab1 VALUES(?)'; 
    PREPARE s1 FROM :stmt
  2. SET :stmt = 'INSERT INTO tab1 VALUES(:v1)'; 
    PREPARE s1 FROM :stmt;
  3. SET :stmt = 'INSERT INTO tab1 VALUES(?v1)'; 
    PREPARE s1 FROM :stmt;
  4. SET :stmt = 'INSERT INTO tab1 VALUES(?)'; 
    PREPARE s1 FROM :stmt DESCRIBE :v1;
Correct answer: A



Question 10

Click the Exhibit button. 
VEMPLOYEE 
------------------- 
EMPNO CHAR(6) 
LASTNAME VARCHAR(30) 
SALARY DEC(9,2) 
DEPTNO CHAR(3) 
VDEPARTMENT 
---------------------- 
DEPTNO CHAR(3) 
DEPTNAME VARCHAR(20) 
MGRNO CHAR(6) 
VPROJECT 
---------------- 
PROJNO CHAR(6) 
PROJNAME VARCHAR(20) 
DEPTNO CHAR(6) 
RESPEMP CHAR(6) 
A JOIN operation references three views in the exhibit; the SELECT statement used does not contain a WHERE clause. 
When the SELECT statement is executed, what will the result set contain?


  1. one row from each table
  2. no rows
  3. unordered rows from one of three tables
  4. the Cartesian product
Correct answer: D









CONNECT US

Facebook

Twitter

PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount!



HOW TO OPEN VCEX FILES

Use ProfExam Simulator to open VCEX files