Chapter 7 (Multiple Choice CIS 3365)

Descrição

asdf Quiz sobre Chapter 7 (Multiple Choice CIS 3365), criado por . . em 22-09-2016.
. .
Quiz por . ., atualizado more than 1 year ago
. .
Criado por . . aproximadamente 8 anos atrás
650
3

Resumo de Recurso

Questão 1

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

Questão 2

Questão
2. The SQL character data format(s) is(are) ____.
Responda
  • a. CHAR and VARCHAR
  • b. VARCHAR only
  • c. Alphanumeric
  • d. CHAR only

Questão 3

Questão
3. The SQL command that lets you insert rows into a table is ____.
Responda
  • a. INSERT
  • b. SELECT
  • c. COMMIT
  • d. UPDATE

Questão 4

Questão
4. The SQL command that lets you permanently save data changes is ____.
Responda
  • a. INSERT
  • b. SELECT
  • c. COMMIT
  • d. UPDATE

Questão 5

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

Questão 6

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

Questão 7

Questão
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.
Responda
  • A) DISPLAY
  • B) FORMAT
  • C) CHAR
  • D) CONVERT

Questão 8

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

Questão 9

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

Questão 10

Questão
10. An example of a command you would use when making changes to a PRODUCT table is ____.
Responda
  • 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';

Questão 11

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

Questão 12

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

Questão 13

Questão
13. To delete a row from the PRODUCT table, use the ____ command.
Responda
  • a. COMMIT
  • b. DELETE
  • c. ERASE
  • d. KILL

Questão 14

Questão
14. When you issue the DELETE FROM table name command without specifying a WHERE condition,____.
Responda
  • 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

Questão 15

Questão
15. Which of the following is used to select partial table contents?
Responda
  • 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>;

Questão 16

Questão
16. The ____ command would be used to delete the table row where the P_CODE is 'BRT-345'.
Responda
  • 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';

Questão 17

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

Questão 18

Questão
18. Which query will output the table contents when the value of V_CODE is equal to 21344?
Responda
  • 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;

Questão 19

Questão
19. Which query will output the table contents when the value of V_CODE is not equal to 21344?
Responda
  • 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;

Questão 20

Questão
20. Which query will output the table contents when the value of P_PRICE is less than or equal to 10?
Responda
  • 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;

Questão 21

Questão
21. Which query will output the table contents when the value of the character field P_CODE is alphabetically less than 1558-QW1?
Responda
  • 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}

Questão 22

Questão
22. Which query will list all the rows in which the inventory stock dates occur on or after January 20, 2010?
Responda
  • 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}

Questão 23

Questão
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?
Responda
  • 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;

Questão 24

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

Questão 25

Questão
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?
Responda
  • 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;

Questão 26

Questão
26. Which query uses the correct SQL syntax to list the table contents for either V_CODE = 21344 or V_CODE = 24288?
Responda
  • 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

Questão 27

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

Questão 28

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

Questão 29

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

Questão 30

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

Questão 31

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

Questão 32

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

Questão 33

Questão
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 ____.
Responda
  • 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;

Questão 34

Questão
34. The SQL query to output the contents of the EMPLOYEE table sorted by last name, first name, and initial is ____.
Responda
  • 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;

Questão 35

Questão
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?
Responda
  • a. SELECT ONLY V_CODEFROM PRODUCT;
  • b. SELECT UNIQUE V_CODEFROM PRODUCT
  • c. SELECT DIFFERENT V_CODEFROM PRODUCT
  • d. SELECT DISTINCT V_CODEFROM PRODUCT;

Questão 36

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

Questão 37

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

Questão 38

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

Questão 39

Questão
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 ____.
Responda
  • 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;

Questão 40

Questão
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 ____.
Responda
  • 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;

Semelhante

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
Effective Citizens
Lauren Petrouleas
asdfas
bevan7
S C I E X
guohao.lam
Perspectives of learning
nilemon
Funciones Polinomiales
Julieta Maya
10.THE VALUATION PROCESS AND PRICING PROPERTIES
Brigita Safyra
Mind Idea
rodrigo.cespedes
Sean doce balines (a,b,c,d,e,f,g,h,i,j,k,l)
andres parra