Advertisement
baskoroi

db2 questions

Jan 6th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 8.36 KB | None | 0 0
  1. INSERT INTO QUESTION (XMLQ) VALUES \
  2. ('<question> \
  3.    <author> \
  4.    <user_ID> admin@ibm.com </user_ID></author> \
  5.    <classification> \
  6.    <topic> DB2 Fundamentals </topic> \
  7.    <subtopic> Query </subtopic></classification> \
  8.    <level> Very Easy </level> \
  9.    <language> English </language> \
  10.    <minutes_allocated> 1 </minutes_allocated> \
  11.    <question_text> Which of the following is a valid wildcard character in a LIKE clause of a SELECT statement?</question_text> \
  12.    <answer> \
  13.    <choice1 type="correct"> % </choice1> \
  14.    <choice2> * </choice2> \
  15.    <choice3> ? </choice3> \
  16.    <choice4> / </choice4></answer> \
  17.    <keywords> like, %, *, ?, / </keywords></question>'), \
  18. ('<question> \
  19.    <author> \
  20.    <user_ID> admin@ibm.com </user_ID> \
  21.    </author> \
  22.    <classification> \
  23.    <topic> DB2 Fundamentals </topic> \
  24.    <subtopic> Query </subtopic> \
  25.    </classification> \
  26.    <level> Easy </level> \
  27.    <language> English </language> \
  28.    <minutes_allocated> 2 </minutes_allocated> \
  29.    <question_text> \
  30.    User USER1 holds CONTROL privilege on table TABLE1. Which two of the following statements is user USER1 allowed to execute? \
  31.    </question_text> \
  32.    <answer> \
  33.    <choice1> GRANT CONTROL ON table1 TO user2 </choice1> \
  34.    <choice2> GRANT LOAD ON table1 TO user2 </choice2> \
  35.    <choice3 type="correct"> GRANT INSERT, UPDATE ON table1 TO user2 WITH GRANT OPTION </choice3> \
  36.    <choice4> GRANT BINDADD ON table1 TO PUBLIC </choice4> \
  37.    </answer> \
  38.    <keywords> control privilege, grant control, grant load, grant binadd, grant insert update </keywords> \
  39. </question>'), \
  40. ('<question> \
  41.    <author> \
  42.    <user_ID> admin@ibm.com </user_ID> \
  43.    </author> \
  44.    <classification> \
  45.    <topic> DB2 Fundamentals </topic> \
  46.    <subtopic> Configuration </subtopic> \
  47.    </classification> \
  48.    <level> Easy </level> \
  49.    <language> English </language> \
  50.    <minutes_allocated> 2 </minutes_allocated> \
  51.    <question_text> \
  52.    Which authority or privilege is granted by the DB2 Database Manager configuration file? \
  53.    </question_text> \
  54.    <answer> \
  55.    <choice1> CONNECT </choice1> \
  56.    <choice2> CONTROL </choice2> \
  57.    <choice3 type="correct"> SYSMAINT </choice3> \
  58.    <choice4> EXECUTE </choice4> \
  59.    </answer> \
  60.    <keywords> DB2 database manager, sysmaint, connect, control, execute </keywords> \
  61. </question>'), \
  62. ('<question> \
  63.    <author> \
  64.    <user_ID> admin@ibm.com </user_ID> \
  65.    </author> \
  66.    <classification> \
  67.    <topic> DB2 Fundamentals </topic> \
  68.    <subtopic> Configuration </subtopic> \
  69.    </classification> \
  70.    <level> Easy </level> \
  71.    <language> English </language> \
  72.    <minutes_allocated> 2 </minutes_allocated> \
  73.    <question_text> \
  74.    Which type of key is defined on the child table to implement a referential constraint? \
  75.    </question_text> \
  76.    <answer> \
  77.    <choice1> Unique Key </choice1> \
  78.    <choice2 type="correct"> Foreign Key </choice2> \
  79.    <choice3> Primary Key </choice3> \
  80.    <choice4> Composite Key </choice4> \
  81.    </answer> \
  82.    <keywords> referential constraint, unique key, primary key, foreign key, composite key </keywords> \
  83.    </question>'), \
  84. ('<question> \
  85.    <author> \
  86.    <user_ID> admin@ibm.com </user_ID> \
  87.    </author> \
  88.    <classification> \
  89.    <topic> DB2 Administration </topic> \
  90.    <subtopic> Security </subtopic> \
  91.    </classification> \
  92.    <level> Easy </level> \
  93.    <language> English </language> \
  94.    <minutes_allocated> 2 </minutes_allocated> \
  95.    <question_text> \
  96.    What is the purpose of Authorities ? \
  97.    </question_text> \
  98.    <answer> \
  99.    <choice1>  Authorities express a set of rights to perform actions executed by the user </choice1> \
  100.    <choice2> To give a set of rights to selected user </choice2> \
  101.    <choice3 type="correct"> Authorities express a set of rights to perform high level Administrative functions </choice3> \
  102.    <choice4> Authorities express a set of rights to perform low level Administrative functions </choice4> \
  103.    </answer> \
  104.    <keywords> Authorities, administrative function </keywords> \
  105.    </question>'), \
  106. ('<question> \
  107.    <author> \
  108.    <user_ID> admin@ibm.com </user_ID> \
  109.    </author> \
  110.    <classification> \
  111.    <topic> DB2 Administration </topic> \
  112.    <subtopic> privilege </subtopic> \
  113.    </classification> \
  114.    <level> Very Easy </level> \
  115.    <language> English </language> \
  116.    <minutes_allocated> 1 </minutes_allocated> \
  117.    <question_text> \
  118.    What database object which SELECT privilege can not manage? \
  119.    </question_text> \
  120.    <answer> \
  121.    <choice1>  TABLES </choice1> \
  122.    <choice2> NICKNAME </choice2> \
  123.    <choice3> VIEWS </choice3> \
  124.    <choice4 type="correct"> SCHEMA </choice4> \
  125.    </answer> \
  126.    <keywords> select privilege, tables, nickname, schema, views </keywords> \
  127.    </question>'), \
  128. ('<question> \
  129.    <author> \
  130.    <user_ID> admin@ibm.com </user_ID> \
  131.    </author> \
  132.    <classification> \
  133.    <topic> DB2 Administration </topic> \
  134.    <subtopic> command </subtopic> \
  135.    </classification> \
  136.    <level> Difficult </level> \
  137.    <language> English </language> \
  138.    <minutes_allocated> 3 </minutes_allocated> \
  139.    <question_text> \
  140.    What Get dbm cfg command for? \
  141.    </question_text> \
  142.    <answer> \
  143.    <choice1>  To change the configuration of DB2 Database Manager Configuration file </choice1> \
  144.    <choice2> To view current configuration of DB2 Database Manager Configuration file </choice2> \
  145.    <choice3 type="correct"> To view the parameter values of DB2 Database Manager Configuration file </choice3> \
  146.    <choice4> To update sysmaint_group value of DB2 Database Manager Configuration file </choice4> \
  147.    </answer> \
  148.    <keywords> get dbm cfg, change, view, update </keywords> \
  149.    </question>'), \
  150. ('<question> \
  151.    <author> \
  152.    <user_ID> admin@ibm.com </user_ID> \
  153.    </author> \
  154.    <classification> \
  155.    <topic> DB2 Design </topic> \
  156.    <subtopic> normalization </subtopic> \
  157.    </classification> \
  158.    <level> Easy </level> \
  159.    <language> English </language> \
  160.    <minutes_allocated> 2 </minutes_allocated> \
  161.    <question_text> \
  162.    Which of the following is not the advantages of Normalization ? \
  163.    </question_text> \
  164.    <answer> \
  165.    <choice1>  reduce the redundancy </choice1> \
  166.    <choice2> avoid null values </choice2> \
  167.    <choice3> avoid update anomalies </choice3> \
  168.    <choice4 type="correct"> easy to produce reports </choice4> \
  169.    </answer> \
  170.    <keywords> normalization, redudancy, null values, update anomalies, produce reports </keywords> \
  171.    </question>'), \
  172. ('<question> \
  173.    <author> \
  174.    <user_ID> admin@ibm.com </user_ID> \
  175.    </author> \
  176.    <classification> \
  177.    <topic> DB2 Design </topic> \
  178.    <subtopic> identifier </subtopic> \
  179.    </classification> \
  180.    <level> Difficult </level> \
  181.    <language> English </language> \
  182.    <minutes_allocated> 3 </minutes_allocated> \
  183.    <question_text> \
  184.    Which of the following is not the difference between Primary Key and Unique Key ? \
  185.    </question_text> \
  186.    <answer> \
  187.    <choice1>  A unique key can also be a primary key and can involve in joins </choice1> \
  188.    <choice2> A table will contains only one primary key in a table, but can contains more than one unique key </choice2> \
  189.    <choice3 type="correct"> a primary key by default it will create a non clustered index whereas for the unique key by default it will create clustered index </choice3> \
  190.    <choice4> Primary key won’t allow any null value, but unique key allows only one null</choice4> \
  191.    </answer> \
  192.    <keywords> primary key, unique key </keywords> \
  193. </question>'), \
  194. ('<question> \
  195.    <author> \
  196.    <user_ID> admin@ibm.com </user_ID> \
  197.    </author> \
  198.    <classification> \
  199.    <topic> DB2 Design </topic> \
  200.    <subtopic> table </subtopic> \
  201.    </classification> \
  202.    <level> Very Easy </level> \
  203.    <language> English </language> \
  204.    <minutes_allocated> 1 </minutes_allocated> \
  205.    <question_text> \
  206.    What is Tuple ? \
  207.    </question_text> \
  208.    <answer> \
  209.    <choice1 type="correct">  Row in a table </choice1> \
  210.    <choice2> Column in a table </choice2> \
  211.    <choice3> number of columns in a table </choice3> \
  212.    <choice4> the name of a table</choice4> \
  213.    </answer> \
  214.    <keywords> tuple, row, column</keywords> \
  215. </question>')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement