GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

Midterm 2 (Chapter 5 - 13)

Yorria Raine 180 Fragen

Quiz starten

Fragen in diesem Quiz (180)

  1. 1Which of the following is a correct statement?
    1. AA commit is issued implicitly when a user exits SQL Developer or SQL*Plus.
    2. BA commit is issued implicitly when a DDL command is executed.
    3. CA commit is issued automatically when a DML command is executed.
    4. DAll of the above are correct.
    5. EA commit is issued implicitly when a user exits SQL Developer or SQL*Plus, and when a DDL command is executed.
    6. FA commit is issued implicitly when a user exits SQL Developer or SQL*Plus. A commit is issued automatically when a DML command is executed.
  2. 2Which of the following is a valid SQL statement?
    1. ASELECT * WHERE amid = ‘J100’ FOR UPDATE;
    2. BINSERT INTO homework10 VALUES (SELECT * FROM acctmanager);
    3. CDELETE amid FROM acctmanager;
    4. Drollback;
    5. Eall of the above
  3. 3Which of the following commands can be used to add rows to a table?
    1. AINSERT INTO
    2. BALTER TABLE ADD
    3. CUPDATE
    4. DSELECT . . . FOR UPDATE
  4. 4Which of the following statements deletes all rows in the HOMEWORK10 table?
    1. ADELETE * FROM homework10;
    2. BDELETE *.* FROM homework10;
    3. CDELETE FROM homework10;
    4. DDELETE FROM homework10 WHERE amid = ‘*’;
    5. EBoth (DELETE FROM homework10;) and (DELETE FROM homework10 WHERE amid = ‘*’;) delete all rows in the HOMEWORK10 table.
  5. 5Which of the following statements places a shared lock on at least a portion of a table named
    HOMEWORK10?
    1. ASELECT * FROM homework10 WHERE col2 IS NULL FOR UPDATE;
    2. BINSERT INTO homework10 (col1, col2, col3) VALUES (‘A’, ‘B’, ‘C’);
    3. CUPDATE homework10 SET col3 = NULL WHERE col1 = ‘A’;
    4. DUPDATE homework10 SET col3 = LOWER (col3) WHERE col1 = ‘A’;
    5. Eall of the above
  6. 6Assuming the HOMEWORK10 table has three columns (Col1, Col2, and Col3, in this order), which of the following commands stores a NULL value in Col3 of the HOMEWORK10 table?
    1. AINSERT INTO homework10 VALUES (‘A’, ‘B’, ‘C’);
    2. BINSERT INTO homework10 (col3, col1, col2) VALUES (NULL, ‘A’, ‘B’);
    3. CINSERT INTO homework10 VALUES (NULL, ‘A’, ‘B’);
    4. DUPDATE homework10 SET col1 = col3;
  7. 7Which of the following symbols designates a substitution variable?
    1. A&
    2. B$
    3. C#
    4. D_
  8. 8Which of the following input values results in a successful INSERT of O’hara?
    1. A‘O^hara’
    2. B‘O’’hara’ (two single quotes following the O)
    3. C‘O’’hara’ (a double quote following the O)
    4. DData values can’t contain quotes.
  9. 9Which of the following commands locks the HOMEWORK10 table in EXCLUSIVE mode?
    1. ALOCK TABLE homework10 EXCLUSIVELY;
    2. BLOCK TABLE homework10 IN EXCLUSIVE MODE;
    3. CLOCK TABLE homework10 TO OTHER USERS;
    4. DLOCK homework10 IN EXCLUSIVE MODE;
    5. EBoth b and d lock the table in EXCLUSIVE mode.
  10. 10You issue the following command: INSERT INTO homework10 (col1, col2, col3) VALUES (‘A’, NULL, ‘C’). The command will fail if which of the following statements is true
    1. ACol1 has a PRIMARY KEY constraint enabled.
    2. BCol2 has a UNIQUE constraint enabled.
    3. CCol3 is defined as a DATE column.
    4. DNone of the above would cause the command to fail.

Informationen

Beschreibung
Computer Science Quiz am Midterm 2 (Chapter 5 - 13), erstellt von Yorria Raine am 29/03/2015.
Sprache
English
Aufrufe
793
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck