The principle of database system classroom quiz 1

Multiple choice

  1. Regarding the database system, the following statement is correct.
    A. The composition of database system includes computer/network basic system, database and database management system
    B. The composition of database system includes computer/network basic system, database, database management system and database application program
    C. The composition of database system includes computer/network Basic systems, databases, database applications, and database administrators
    D. The composition of the database system includes databases, database management systems, database applications, database administrators, and basic computer and network systems

  2. Which of the following functions is not a function of the database management system __________.
    A. Concurrency control
    B. Integrity control
    C. CPU control
    D. Failure recovery

  3. In the three-level mode and two-level image architecture of the database, the "global mode" refers to __________.
    A. User mode
    B. Internal mode
    C. Conceptual model
    D. Outer mode

Book P5

  1. Regarding data independence, the following statement is correct as __________.
    A. The mapping from the outer mode to the inner mode realizes the physical independence of the data
    B. The mapping from the outer mode to the conceptual mode realizes the physical independence of the data
    The mapping of C conceptual mode to inner mode realizes the physical independence of data
    D. None of the above statements are correct

Book P5

  1. The collection of information stored in the database at a specific time is called a _______________ of the database.
    A. Physical mode
    B. Logical mode
    C. Sub-mode
    D. Examples

Book P5

  1. Which of the following statements is correct is _______.
    A. R(A1, A2,…, An ), this description is also known as the relational mode, where Ai refers to the domain corresponding to the attribute
    B. The relational mode and the relational instance are not changed over time
    C. The same relational mode The next relationship instance is unique
    D. Two identical columns are not allowed in the relational table

  2. Regarding student relations, which of the following attributes is suitable as a candidate code _______.
    A. Age
    B. Gender
    C. Student ID
    D. Class

  3. In the relational model, which of the following statements about candidate codes is correct is _______.
    A. Can be composed of multiple arbitrary attributes
    B. At most, composed of one attribute whose value can uniquely identify any tuple of the relationship
    C. It can be composed of one or more attributes whose value can uniquely identify any tuple in the relationship
    D. None of the rest

  4. In the relational model, the association between different relations is achieved through ________.
    A. Domain
    B. Tuple
    C. Candidate code
    D. Outer code

  5. Which of the following operations is not a basic relational algebra operation ______.
    A. Choose
    B. and
    C. Hand in
    D. Cartesian product

The five basic relational algebra operations are: union, difference, Cartesian product, projection and selection;

  1. Expressions "extract rows that meet certain conditions from all rows of a relationship", "extract certain columns from all columns of a relationship", "extract all tuples that belong to one relationship but do not belong to another relationship" "The order of operations is __________.
    1. Choose 2, Project 3, Union 4, Difference 5, Cartesian Product

A. 1、2、3
B. 1、2、4
C. 2、3、4
D. 1、2、5

12. Natural connection is an effective way to form a new relationship. In general, when using natural connections for the relations R and S, it is required that R and S contain one or more _______ in common.
A. Tuples
B. Properties
C. Main code
D. Foreign code

  1. Suppose the number of attributes of the relations R and S are n and m, respectively, then the number of attributes of the R×S operation result is ________.
    A. n×m
    B. n+m
    C. n-m
    D. max(n,m)

  2. Suppose the relations R, S, and W each have 10 tuples, then the number of tuples of the Cartesian product of these three relations is _________.
    A. 10
    B. 30
    C. 1000
    D. Not sure

  3. Assuming that the relationship R and the relationship S have the same number of attributes, and the values ​​of the corresponding attributes are taken from the same domain, then R-(RS) is equal to _________.
    A. R∩S
    B. R∪S
    C. S – R
    D. S

  4. The following statement is correct __________.
    A. The results of the R∪S and S∪R operations are not the same relationship
    B. The results of the R-S and S-R operations are the same relationship
    C. The result of R x S and S x R operations is the same relationship
    D. Other claims are wrong

  5. Known student relationship S (student number S#, name Sname, age Sage), elective relationship SC (student number S#, course number C#, score Score). The meaning of the following relational algebraic expression is ________.
    Insert picture description here
    A. Query the name and age of the students who
    have taken the course number "002" B. Query the name and age of the students who have not taken the course number "002"
    C. Query not only the number of the students who have taken the course number "002" Name and age of the student
    D. Everything else is wrong

  6. Known student relationship S (student number S#, name Sname, gender Ssex), course relationship C (course number C#, course name Cname, teacher Cteacher), elective relationship SC (student number S#, course number C#, score Score) , To find the names of female students who have taken the "COMPUTER" course, the correct relational algebra expression is ________.
    A.
    Insert picture description here
    B.
    Insert picture description here
    C.
    Insert picture description here
    D. Everything else is wrong

  7. According to the following relationship, find the result of table R⋈W_______.
    R
    Insert picture description here
    W
    Insert picture description here
    A.
    Insert picture description here
    B.
    Insert picture description here
    C.
    Insert picture description here

  8. The student relationship R is shown in the following figure. Use relational algebra to query the student ID and name of all students who are studying in the "03" department and whose age is less than 21. The correct expression is ________.
    Insert picture description here
    A.
    Insert picture description here
    B.
    Insert picture description here
    C.
    Insert picture description here
    D.
    Insert picture description here

Guess you like

Origin blog.csdn.net/Jessieeeeeee/article/details/115216422