Chapter 7 (Multiple Choice CIS 3365)

Descripción

asdf Test sobre Chapter 7 (Multiple Choice CIS 3365), creado por . . el 22/09/2016.
. .
Test por . ., actualizado hace más de 1 año
. .
Creado por . . hace más de 7 años
626
3

Resumen del Recurso

Pregunta 1

Pregunta
1. The most recent fully approved version of standard SQL prescribed by the ANSI is ____.
Respuesta
  • a. SQL-99
  • b. SQL-2003
  • c. SQL-4
  • d. SQL-07

Pregunta 2

Pregunta
2. The SQL character data format(s) is(are) ____.
Respuesta
  • a. CHAR and VARCHAR
  • b. VARCHAR only
  • c. Alphanumeric
  • d. CHAR only

Pregunta 3

Pregunta
3. The SQL command that lets you insert rows into a table is ____.
Respuesta
  • a. INSERT
  • b. SELECT
  • c. COMMIT
  • d. UPDATE

Pregunta 4

Pregunta
4. The SQL command that lets you permanently save data changes is ____.
Respuesta
  • a. INSERT
  • b. SELECT
  • c. COMMIT
  • d. UPDATE

Pregunta 5

Pregunta
5. The SQL command that lets you select attributes from rows in one or more tables is ____.
Respuesta
  • a. INSERT
  • b. SELECT
  • c. COMMIT
  • d. UPDATE

Pregunta 6

Pregunta
6. To list all the contents of the PRODUCT table, you would use ____.
Respuesta
  • a. LIST * FROM PRODUCT;
  • b. SELECT * FROM PRODUCT;
  • c. DISPLAY * FROM PRODUCT;
  • d. SELECT ALL FROM PRODUCT;

Pregunta 7

Pregunta
7. In Oracle, the ____ command is used to change the display for a column, for example, to place a $ in front of a numeric value.
Respuesta
  • A) DISPLAY
  • B) FORMAT
  • C) CHAR
  • D) CONVERT

Pregunta 8

Pregunta
8. The SQL command that modifies an attribute’s values in one or more table’s rows is ____.
Respuesta
  • A) INSERT
  • B) SELECT
  • C) COMMIT
  • D) UPDATE

Pregunta 9

Pregunta
9. UPDATE table name*****[WHERE condition list];The ____ command replaces the ***** in the syntax of the UPDATE command, shown above.
Respuesta
  • a. SET columnname = expression
  • b. columnname = expression
  • c. expression = columnname
  • d. LET columnname = expression

Pregunta 10

Pregunta
10. An example of a command you would use when making changes to a PRODUCT table is ____.
Respuesta
  • a. CHANGE PRODUCTSET P_INDATE = '18-JAN-2004'WHERE P_CODE = '13-Q2/P2';
  • b. ROLLBACK PRODUCTSET P_INDATE = '18-JAN-2004'WHERE P_CODE = '13-Q2/P2';
  • c. EDIT PRODUCTSET P_INDATE = '18-JAN-2004'WHERE P_CODE = '13-Q2/P2';
  • d. UPDATE PRODUCTSET P_INDATE = '18-JAN-2004'WHERE P_CODE = '13-Q2/P2';

Pregunta 11

Pregunta
11. The ____ command is used to restore the table’s contents to their previous values.
Respuesta
  • a. COMMIT; RESTORE;
  • b. COMMIT; BACKUP;
  • c. COMMIT; ROLLBACK;
  • d. ROLLBACK;

Pregunta 12

Pregunta
12. Some RDBMSs, such as Oracle, automatically ____ data changes when issuing data definition commands.
Respuesta
  • a. COMMIT
  • b. ROLLBACK
  • c. UNSAVE
  • d. UPDATE

Pregunta 13

Pregunta
13. To delete a row from the PRODUCT table, use the ____ command.
Respuesta
  • a. COMMIT
  • b. DELETE
  • c. ERASE
  • d. KILL

Pregunta 14

Pregunta
14. When you issue the DELETE FROM table name command without specifying a WHERE condition,____.
Respuesta
  • a. no rows will be deleted
  • b. the first row will be deleted
  • c. the last row will be deleted
  • d. all rows will be deleted

Pregunta 15

Pregunta
15. Which of the following is used to select partial table contents?
Respuesta
  • a. SELECT <column(s)>FROM <Table name>BY <Conditions>;
  • b. LIST <column(s)>FROM <Table name>BY <Conditions>;
  • c. SELECT <column(s)>FROM <Table name>WHERE <Conditions>;
  • d. LIST<column(s)>FROM <Table name>WHERE <Conditions>;

Pregunta 16

Pregunta
16. The ____ command would be used to delete the table row where the P_CODE is 'BRT-345'.
Respuesta
  • a. DELETE FROM PRODUCTWHERE P_CODE = 'BRT-345';
  • b. REMOVE FROM PRODUCTWHERE P_CODE = 'BRT-345';
  • c. ERASE FROM PRODUCTWHERE P_CODE = 'BRT-345';
  • d. ROLLBACK FROM PRODUCTWHERE P_CODE = 'BRT-345';

Pregunta 17

Pregunta
17. A(n) ____ is a query that is embedded (or nested) inside another query.
Respuesta
  • a. alias
  • b. operator
  • c. subquery
  • d. view

Pregunta 18

Pregunta
18. Which query will output the table contents when the value of V_CODE is equal to 21344?
Respuesta
  • a. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODEFROM PRODUCTWHERE V_CODE <> 21344;
  • b. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODEFROM PRODUCTWHERE V_CODE <= 21344;
  • c. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODEFROM PRODUCTWHERE V_CODE = 21344;
  • d. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODEFROM PRODUCTWHERE V_CODE => 21344;

Pregunta 19

Pregunta
19. Which query will output the table contents when the value of V_CODE is not equal to 21344?
Respuesta
  • a. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODEFROM PRODUCTWHERE V_CODE <> 21344;
  • b. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODEFROM PRODUCTWHERE V_CODE <= 21344;
  • c. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODEFROM PRODUCTWHERE V_CODE = 21344;
  • d. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODEFROM PRODUCTWHERE V_CODE => 21344;

Pregunta 20

Pregunta
20. Which query will output the table contents when the value of P_PRICE is less than or equal to 10?
Respuesta
  • a. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODEFROM PRODUCTWHERE P_PRICE <> 10;
  • b. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODEFROM PRODUCTWHERE P_PRICE <= 10;
  • c. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODEFROM PRODUCTWHERE P_PRICE => 10;
  • d. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODEFROM PRODUCTWHERE P_PRICE = 10;

Pregunta 21

Pregunta
21. Which query will output the table contents when the value of the character field P_CODE is alphabetically less than 1558-QW1?
Respuesta
  • a. SELECT P_CODE, P_DESCRIPT, P_QOH, P_MIN, P_PRICEFROM PRODUCT WHERE P_CODE <'1558-QW1';
  • b. SELECT P_CODE, P_DESCRIPT, P_QOH, P_MIN, P_PRICEFROM PRODUCTWHERE P_CODE = [1558-QW1]
  • c. SELECT P_CODE, P_DESCRIPT, P_QOH, P_MIN, P_PRICEFROM PRODUCTWHERE P_CODE = (1558-QW1)
  • d. SELECT P_CODE, P_DESCRIPT, P_QOH, P_MIN, P_PRICEFROM PRODUCTWHERE P_CODE = {1558-QW1}

Pregunta 22

Pregunta
22. Which query will list all the rows in which the inventory stock dates occur on or after January 20, 2010?
Respuesta
  • a. SELECT P_DESCRIPT, P_QOH, P_MIN, P_PRICE, P_INDATEFROM PRODUCTWHERE P_INDATE >= '20-JAN-2010'
  • b. SELECT P_DESCRIPT, P_QOH, P_MIN, P_PRICE, P_INDATEFROM PRODUCTWHERE P_INDATE >= $20-JAN-2010$
  • c. SELECT P_DESCRIPT, P_QOH, P_MIN, P_PRICE, P_INDATEFROM PRODUCTWHERE P_INDATE <= '20-JAN-2010'
  • d. SELECT P_DESCRIPT, P_QOH, P_MIN, P_PRICE, P_INDATEFROM PRODUCTWHERE P_INDATE >= {20-JAN-2010}

Pregunta 23

Pregunta
23. Which query will use the given columns and column aliases from the PRODUCT table to determine the total value of inventory held on hand?
Respuesta
  • a. SELECT P_DESCRIPT, P_QOH, P_PRICE, P_QOH/P_PRICEFROM PRODUCT;
  • b. SELECT P_DESCRIPT, P_QOH, P_PRICE, P_QOH=P_PRICEFROM PRODUCT;
  • c. SELECT P_DESCRIPT, P_QOH, P_PRICE, P_QOH*P_PRICEFROM PRODUCT;
  • d. SELECT P_DESCRIPT, P_QOH, P_PRICE, P_QOH-P_PRICEFROM PRODUCT;

Pregunta 24

Pregunta
24. A(n) ____ is an alternate name given to a column or table in any SQL statement.
Respuesta
  • a. alias
  • b. data type
  • c. stored function
  • d. Trigger

Pregunta 25

Pregunta
25. Which query will use the given columns and column aliases from the PRODUCT table to determine the total value of inventory held on hand and display the results in a column labeled TOTVALUE?
Respuesta
  • a. SELECT P_DESCRIPT, P_QOH, P_PRICE, P_QOH*P_PRICE AS TOTVALUEFROM PRODUCT;
  • b. SELECT P_DESCRIPT, P_QOH, P_PRICE, P_QOH=P_PRICE AS TOTVALUEFROM PRODUCT;
  • c. SELECT P_DESCRIPT, P_QOH, P_PRICE, P_QOH/P_PRICE AS TOTVALUEFROM PRODUCT;
  • d. SELECT P_DESCRIPT, P_QOH, P_PRICE, P_QOH-P_PRICE AS TOTVALUEFROM PRODUCT;

Pregunta 26

Pregunta
26. Which query uses the correct SQL syntax to list the table contents for either V_CODE = 21344 or V_CODE = 24288?
Respuesta
  • a. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODEFROM PRODUCTWHERE V_CODE = 21344OR V_CODE <= 24288
  • b. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODEFROM PRODUCTWHERE V_CODE = 21344OR V_CODE => 24288
  • c. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODEFROM PRODUCTWHERE V_CODE = 21344OR V_CODE > 24288
  • d. SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODEFROM PRODUCTWHERE V_CODE = 21344OR V_CODE = 24288

Pregunta 27

Pregunta
27. The special operator used to check whether an attribute value is within a range of values is ____.
Respuesta
  • a. BETWEEN
  • b. NULL
  • c. LIKE
  • d. IN

Pregunta 28

Pregunta
28. The ____ special operator is used to check whether an attribute value is null.
Respuesta
  • a. BETWEEN
  • b. IS NULL
  • c. LIKE
  • d. IN

Pregunta 29

Pregunta
29. The special operator used to check for similar character strings is ____.
Respuesta
  • a. BETWEEN
  • b. IS NULL
  • c. LIKE
  • d. IN

Pregunta 30

Pregunta
30. The special operator used to check whether a subquery returns any rows is ____.
Respuesta
  • a. BETWEEN
  • b. EXISTS
  • c. LIKE
  • d. IN

Pregunta 31

Pregunta
31. The ____ command is used with the ALTER TABLE command to modify the table by deleting a column.
Respuesta
  • a. DROP
  • b. REMOVE
  • c. DELETE
  • d. ERASE

Pregunta 32

Pregunta
32. A table can be deleted from the database by using the ____ command.
Respuesta
  • a. DROP TABLE
  • b. DELETE TABLE
  • c. MODIFY TABLE
  • d. ERASE TABLE

Pregunta 33

Pregunta
33. The query used to list the P_CODE, P_DESCRIPT, P_INDATE, and P_PRICE fields from the PRODUCT table in ascending order by P_PRICE is ____.
Respuesta
  • a. SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICEFROM PRODUCTSEQUENCE BY P_PRICE;
  • b. SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICEFROM PRODUCTLIST BY P_PRICE;
  • c. SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICEFROM PRODUCTORDER BY P_PRICE;
  • d. SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICEFROM PRODUCTASCENDING BY P_PRICE;

Pregunta 34

Pregunta
34. The SQL query to output the contents of the EMPLOYEE table sorted by last name, first name, and initial is ____.
Respuesta
  • a. SELECT EMP_LNAME, EMP_FNAME, EMP_INITIAL, EMP_AREACODE,EMP_PHONEFROM EMPLOYEELIST BY EMP_LNAME, EMP_FNAME, EMP_INITIAL;
  • b. SELECT EMP_LNAME, EMP_FNAME, EMP_INITIAL, EMP_AREACODE,EMP_PHONEFROM EMPLOYEEORDER BY EMP_LNAME, EMP_FNAME, EMP_INITIAL;
  • c. SELECT EMP_LNAME, EMP_FNAME, EMP_INITIAL, EMP_AREACODE,EMP_PHONEFROM EMPLOYEEDISPLAY BY EMP_LNAME, EMP_FNAME, EMP_INITIAL;
  • d. SELECT EMP_LNAME, EMP_FNAME, EMP_INITIAL, EMP_AREACODE,EMP_PHONEFROM EMPLOYEESEQUENCE BY EMP_LNAME, EMP_FNAME, EMP_INITIAL;

Pregunta 35

Pregunta
35. Which query is used to list a unique value for V_CODE, where the list will produce only a list of those values that are different from one another?
Respuesta
  • a. SELECT ONLY V_CODEFROM PRODUCT;
  • b. SELECT UNIQUE V_CODEFROM PRODUCT
  • c. SELECT DIFFERENT V_CODEFROM PRODUCT
  • d. SELECT DISTINCT V_CODEFROM PRODUCT;

Pregunta 36

Pregunta
36. The SQL aggregate function that gives the number of rows containing non-null values for the given column is ____.
Respuesta
  • a. COUNT
  • b. MIN
  • c. MAX
  • d. SUM

Pregunta 37

Pregunta
37. The SQL aggregate function that gives the total of all values for a selected attribute in a given column is ____.
Respuesta
  • a. COUNT
  • b. MIN
  • c. MAX
  • d. SUM

Pregunta 38

Pregunta
38. The SQL aggregate function that gives the average for the specific column is ____.
Respuesta
  • a. COUNT
  • b. AVG
  • c. MAX
  • d. SUM

Pregunta 39

Pregunta
39. The query to join the P_DESCRIPT and P_PRICE fields from the PRODUCT table and the V_NAME,V_AREACODE, V_PHONE, and V_CONTACT fields from the VENDOR table where the values of V_CODE match is ____.
Respuesta
  • a. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE,V_PHONEFROM PRODUCT, VENDORWHERE PRODUCT.V_CODE <> VENDOR.V_CODE;
  • b. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE,V_PHONEFROM PRODUCT, VENDORWHERE PRODUCT.V_CODE = VENDOR.V_CODE;
  • c. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE,V_PHONEFROM PRODUCT, VENDORWHERE PRODUCT.V_CODE <= VENDOR.V_CODE;
  • d. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE,V_PHONEFROM PRODUCT, VENDORWHERE PRODUCT.V_CODE => VENDOR.V_CODE;

Pregunta 40

Pregunta
40. The query to join the P_DESCRIPT and P_PRICE fields from the PRODUCT table and the V_NAME,V_AREACODE, V_PHONE and V_CONTACT fields from the VENDOR table, where the values of V_CODE match and the output is ordered by the price is ____.
Respuesta
  • a. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE,V_PHONEFROM PRODUCT, VENDORWHERE PRODUCT.V_CODE <> VENDOR.V_CODE;ORDER BY P_PRICE;
  • b. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE,V_PHONEFROM PRODUCT, VENDORWHERE PRODUCT.V_CODE => VENDOR.V_CODE;ORDER BY P_PRICE;
  • c. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE,V_PHONEFROM PRODUCT, VENDORWHERE PRODUCT.V_CODE <= VENDOR.V_CODE;ORDER BY P_PRICE;
  • d. SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE,V_PHONEFROM PRODUCT, VENDORWHERE PRODUCT.V_CODE = VENDOR.V_CODE;ORDER BY P_PRICE;
Mostrar resumen completo Ocultar resumen completo

Similar

El Perdón
Alonso Linares
Investiga las transformaciones de la cultura y de la vida cotidiana a lo largo del tiempo.
Sherlyn Muñoz
Irene
i.biza
Sean doce balines (a,b,c,d,e,f,g,h,i,j,k,l)
andres parra
Funciones Polinomiales
Julieta Maya
10.THE VALUATION PROCESS AND PRICING PROPERTIES
Brigita Safyra
Effective Citizens
Lauren Petrouleas
asdfas
bevan7
S C I E X
guohao.lam
Perspectives of learning
nilemon
Mind Idea
rodrigo.cespedes