Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 6 MCQs Database Design

INT322 — Computing System And Technologies 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 Functional dependency Easy

    What does the functional dependency mean?

  2. Question 2 of 60 Fully functional dependency Easy

    When is an attribute fully functionally dependent on a composite key?

  3. Question 3 of 60 Transitive dependency Easy

    Which set of dependencies demonstrates a transitive dependency?

  4. Question 4 of 60 Concept of normalization Easy

    What is the main purpose of database normalization?

  5. Question 5 of 60 First normal form Easy

    Which requirement must a table satisfy to be in First Normal Form (1NF)?

  6. Question 6 of 60 Second normal form Easy

    A table is in Second Normal Form (2NF) when it is in 1NF and has no:

  7. Question 7 of 60 Third normal form Easy

    A table is in Third Normal Form (3NF) when it is in 2NF and has no:

  8. Question 8 of 60 Introduction to transactions Easy

    What is a database transaction?

  9. Question 9 of 60 Read and write operations on transactions Easy

    What does a read operation do in a transaction?

  10. Question 10 of 60 Read and write operations on transactions Easy

    What does a write operation do in a transaction?

  11. Question 11 of 60 States and stages of a transaction Easy

    Which state indicates that a transaction is currently executing its operations?

  12. Question 12 of 60 States and stages of a transaction Easy

    Which transaction state indicates that all changes have been saved successfully?

  13. Question 13 of 60 ACID properties of a transaction Easy

    Which ACID property ensures that all transaction operations occur or none occur?

  14. Question 14 of 60 ACID properties of a transaction Easy

    Which ACID property ensures that committed changes survive a system failure?

  15. Question 15 of 60 Introduction to PL/SQL block structure Easy

    Which section of a PL/SQL block contains executable statements?

  16. Question 16 of 60 Introduction to PL/SQL block structure Easy

    Which section of a PL/SQL block is used to handle runtime errors?

  17. Question 17 of 60 Implementation of operators in PL/SQL Easy

    Which PL/SQL operator is used to assign a value to a variable?

  18. Question 18 of 60 Implementation of control statements in PL/SQL Easy

    Which PL/SQL statement selects between actions based on a condition?

  19. Question 19 of 60 Implementation of procedures in PL/SQL Easy

    Which keywords begin the definition of a stored PL/SQL procedure?

  20. Question 20 of 60 Implementation of functions in PL/SQL Easy

    What must a PL/SQL function provide to its caller?

  21. Question 21 of 60 Functional dependency Medium

    For relation , the functional dependencies are , , and . What is the closure ?

  22. Question 22 of 60 Functional dependency Medium

    Given , which functional dependency is implied by ?

  23. Question 23 of 60 Fully functional dependency Medium

    In Enrollment(StudentID, CourseID, Grade), the key is (StudentID, CourseID). If neither StudentID nor CourseID alone determines Grade, which statement is correct?

  24. Question 24 of 60 Fully functional dependency Medium

    Relation has composite key and dependencies and . What does this show about ?

  25. Question 25 of 60 Transitive dependency Medium

    In Employee(EmpID, DeptID, DeptName), suppose EmpID determines DeptID and DeptID determines DeptName. Which dependency is transitive?

  26. Question 26 of 60 Concept of normalization Medium

    A department name is repeated in every employee row. Changing the department name requires modifying many rows. Which database design problem is illustrated?

  27. Question 27 of 60 First normal form Medium

    A Student table stores the value Java, Python, SQL in one Skills column. Which change best brings the design into First Normal Form?

  28. Question 28 of 60 Second normal form Medium

    OrderLine(OrderID, ProductID, OrderDate, ProductName, Quantity) has key (OrderID, ProductID). Also, OrderID determines OrderDate, and ProductID determines ProductName. Which decomposition reaches Second Normal Form?

  29. Question 29 of 60 Third normal form Medium

    Employee(EmpID, DeptID, DeptName) has key EmpID, with EmpID determining DeptID and DeptID determining DeptName. Which decomposition removes the Third Normal Form violation?

  30. Question 30 of 60 Introduction to transactions Medium

    A bank transfer debits one account and credits another. How should these operations be organized?

  31. Question 31 of 60 Read and write operations on transactions Medium

    Two transactions execute this schedule on X, initially 100: T1: read(X), T2: read(X), T1: write(X=110), T2: write(X=120). What is the result?

  32. Question 32 of 60 States and stages of a transaction Medium

    A transaction has executed its final statement, but the database has not yet guaranteed that its changes are permanently stored. What is its state?

  33. Question 33 of 60 ACID properties of a transaction Medium

    A system crashes after debiting an account but before crediting the destination account. Which ACID property requires the debit to be rolled back?

  34. Question 34 of 60 ACID properties of a transaction Medium

    Transaction T1 updates a salary but has not committed. Transaction T2 must not see that temporary value. Which ACID property enforces this behavior?

  35. Question 35 of 60 Introduction to PL/SQL block structure Medium

    Consider a PL/SQL block whose SELECT INTO statement returns no rows and whose exception section contains WHEN NO_DATA_FOUND THEN DBMS_OUTPUT.PUT_LINE('Missing');. What occurs?

  36. Question 36 of 60 Implementation of operators in PL/SQL Medium

    What value is assigned by the PL/SQL statement v_result := 10 + NULL;?

  37. Question 37 of 60 Implementation of control statements in PL/SQL Medium

    Given v_score := 75, what is assigned to v_grade by IF v_score >= 80 THEN v_grade := 'A'; ELSIF v_score >= 60 THEN v_grade := 'B'; ELSE v_grade := 'C'; END IF;?

  38. Question 38 of 60 Implementation of control statements in PL/SQL Medium

    A PL/SQL loop sets v_sum := 0 and runs FOR i IN 1..4 LOOP CONTINUE WHEN MOD(i, 2) = 0; v_sum := v_sum + i; END LOOP;. What is the final value of v_sum?

  39. Question 39 of 60 Implementation of procedures in PL/SQL Medium

    A procedure is declared as adjust_salary(p_id IN NUMBER, p_raise IN NUMBER, p_new_salary OUT NUMBER). Which call correctly supplies the OUT argument?

  40. Question 40 of 60 Implementation of functions in PL/SQL Medium

    A function is defined as FUNCTION annual_salary(p_monthly NUMBER) RETURN NUMBER IS BEGIN RETURN p_monthly * 12; END;. What does annual_salary(5000) return?

  41. Question 41 of 60 Functional dependency Hard

    For relation , let . Which set contains all and only the candidate keys of ?

  42. Question 42 of 60 Fully functional dependency Hard

    A relation has candidate key and exactly these relevant dependencies: , , and . Which dependency is fully functional on the composite key?

  43. Question 43 of 60 Transitive dependency Hard

    In , suppose and , with . How should the implied dependency be classified for normalization purposes?

  44. Question 44 of 60 Concept of normalization Hard

    Let have . Consider the decomposition , , and . Which assessment is correct?

  45. Question 45 of 60 First normal form Hard

    An ORDER_DATA table stores ProductIDs as a comma-separated list in each order row. Which redesign establishes 1NF without imposing an arbitrary maximum number of products?

  46. Question 46 of 60 Second normal form Hard

    For , let . The candidate keys are and . Assuming atomic attributes, what is the highest normal form satisfied?

  47. Question 47 of 60 Third normal form Hard

    In with , the candidate keys are and . Why does satisfy the formal 3NF condition even though is not a superkey?

  48. Question 48 of 60 Introduction to transactions Hard

    Consider the schedule r1(X), w1(X), r2(Y), w2(Y), r1(Y), w1(Y), r2(X), w2(X). What does its precedence graph show?

  49. Question 49 of 60 Read and write operations on transactions Hard

    Initially, . Both transactions read before either writes. Then writes its computed value , and writes its computed value . What anomaly and final value result?

  50. Question 50 of 60 States and stages of a transaction Hard

    A transaction executes its final statement, but a failure occurs before its commit record becomes durable. Recovery then completes its rollback. Which state sequence best describes this path?

  51. Question 51 of 60 ACID properties of a transaction Hard

    A write-ahead logging system forces all required log records, including the commit record, to stable storage before acknowledging a commit, but writes modified data pages later. Which conclusion is correct?

  52. Question 52 of 60 Introduction to PL/SQL block structure Hard

    Assuming SERVEROUTPUT is enabled, what does this PL/SQL block print?

    SQL
    DECLARE
      v NUMBER := 10;
    BEGIN
      DECLARE
        v NUMBER := 0;
      BEGIN
        DBMS_OUTPUT.PUT_LINE(10 / v);
      EXCEPTION
        WHEN ZERO_DIVIDE THEN
          DBMS_OUTPUT.PUT_LINE(v);
      END;
      DBMS_OUTPUT.PUT_LINE(v);
    END;

  53. Question 53 of 60 Implementation of operators in PL/SQL Hard

    What is printed by this PL/SQL fragment?

    SQL
    DECLARE
      a NUMBER := 5;
      b NUMBER := NULL;
    BEGIN
      IF a <> 5 OR b = 3 THEN
        DBMS_OUTPUT.PUT_LINE('A');
      ELSIF b IS NULL AND a BETWEEN 1 AND 5 THEN
        DBMS_OUTPUT.PUT_LINE('B');
      ELSE
        DBMS_OUTPUT.PUT_LINE('C');
      END IF;
    END;

  54. Question 54 of 60 Implementation of control statements in PL/SQL Hard

    What value is printed by this PL/SQL block?

    SQL
    DECLARE
      i NUMBER := 1;
      s NUMBER := 0;
    BEGIN
      LOOP
        i := i + 1;
        CONTINUE WHEN MOD(i, 2) = 0;
        s := s + i;
        EXIT WHEN i >= 5;
      END LOOP;
      DBMS_OUTPUT.PUT_LINE(s);
    END;

  55. Question 55 of 60 Implementation of procedures in PL/SQL Hard

    Without NOCOPY, what does this block print?

    SQL
    DECLARE
      v NUMBER := 10;
      PROCEDURE bump(p IN OUT NUMBER) IS
      BEGIN
        p := p + 1;
        RAISE_APPLICATION_ERROR(-20001, 'stop');
      END;
    BEGIN
      BEGIN
        bump(v);
      EXCEPTION
        WHEN OTHERS THEN NULL;
      END;
      DBMS_OUTPUT.PUT_LINE(v);
    END;

  56. Question 56 of 60 Implementation of functions in PL/SQL Hard

    A stored function invoked as SELECT adjust_salary(10) FROM dual executes an UPDATE statement and is neither autonomous nor otherwise exempted. What is the expected result?

  57. Question 57 of 60 Functional dependency Hard

    Given , which is a minimal equivalent cover?

  58. Question 58 of 60 Concept of normalization Hard

    Using the minimal cover for , which relation set is produced by the standard dependency-preserving 3NF synthesis algorithm before optional removal of subsumed relations?

  59. Question 59 of 60 Introduction to transactions Hard

    Classify the schedule w1(X), r2(X), c1, c2, where r2(X) reads the value written by .

  60. Question 60 of 60 Implementation of functions in PL/SQL Hard

    What occurs when f(0) is called for the following PL/SQL function?

    SQL
    CREATE OR REPLACE FUNCTION f(p NUMBER)
    RETURN NUMBER IS
    BEGIN
      IF p > 0 THEN
        RETURN p;
      END IF;
    END;

That's unit 6

Answer a few questions and your score shows up here.