Professional Documents
Culture Documents
1
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ
Chọn một:
a. Database Management System (DBMS)
b. Database System
c. Database
Phản hồi
Câu hỏi 2
Sai
Đạt điểm 0,00 trên 1,00
Đặt cờ
Chọn một:
a. Candidate keys
b. Superkeys
c. Foreign keys
d. Attribute keys
Phản hồi
Câu hỏi 3
Sai
Đạt điểm 0,00 trên 1,00
Đặt cờ
Chọn một:
a. Both run automatically.
b. Both have to be called to operate.
c. Both consist of procedural code
d. Both are stored in the database.
Phản hồi
Câu hỏi 4
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ
Chọn một:
a. 2NF
b. 3NF
c. 4NF
d. 1NF
Phản hồi
Câu hỏi 5
Sai
Đạt điểm 0,00 trên 1,00
Đặt cờ
Chọn một:
a. A way to establish an assignment in SQL
b. A way to establish an IF-THEN-ELSE in SQL.
c. A way to establish a data definition in SQL.
d. A way to establish a loop in SQL.
Phản hồi
Câu hỏi 6
Sai
Đạt điểm 0,00 trên 1,00
Đặt cờ
Chọn một:
a. Programmer, Database Admin, Database Application, Database
b. Programmer, Data, DBMS, Database Application
c. Users, Data, DBMS, Information
d. Users, Database application, DBMS, Database
Phản hồi
Câu hỏi 7
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ
Chọn một:
a. Data contained in a file system
b. Data rejected during the installation of a new system
c. Data contained in a newly-installed system
d. Data contained by a system used prior to the installation of a new system
Phản hồi
Đáp án đúng là: Data contained by a system used prior to the installation of a new system
Câu hỏi 8
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ
Chọn một:
a. Read uncommitted, Read committed, Repeatable read, Serializable
b. Atomicity, Isolation, Concurrency, Durability
c. Atomicity, Isolation, Consistency, Durability
Phản hồi
Câu hỏi 9
Đúng một phần
Đạt điểm 0,50 trên 1,00
Đặt cờ
Câu trả lời đúng là: NULL values are ignored for all the aggregate functions, When an aggregate
function is included in the SELECT clause, all other expressions in the SELECT clause must either
be aggregate functions or included in a GROUP BY clause.
Câu hỏi 10
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ
Chọn một:
a.
Atomicity, Consistency, Isolation, Durability
b.
Atomicity, Concurrency, Isolation, Durable
c.
Atomicity, Concurrency, Isolation, Durability
d.
Read uncommitted, Read committed,repeatable read, serializable
Phản hồi
Câu hỏi 11
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ
Given relation R(ABCDE) with functional dependencies set F=( A->B, B->D, BC->E ) Compute B+
Chọn một:
a. BC
b. BCD
c. BD
d. ABCDE
Phản hồi
Câu hỏi 12
Sai
Đạt điểm 0,00 trên 1,00
Đặt cờ
Chọn một:
a. You do not create them with SQL.
b. They have an event, condition, and action.
c. They cannot cascade (cause another trigger to fire).
d. They execute against only some applications that access a database.
Phản hồi
Câu hỏi 13
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ
Chọn một:
a. AE
b. ADE
c. AD
d. D
Phản hồi
Câu hỏi 14
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ
Chọn một:
a. Certain operations on Null can return values if the value of Null is not relevant to the outcome of
the operation
b. SQL not allows attributes to have a NULL value.
c. Null means 'nothing' or without value or consequence
d. The NULL constraint determines whether or not data has to be entered into a column.
Phản hồi
Đáp án đúng là: SQL not allows attributes to have a NULL value.
Câu hỏi 15
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ
Chọn một:
a.
Substring is ‘QL_’ and x=2
b.
Substring is ‘_S’ and x=2
c.
Substring is ‘QL_’ and x=3
d.
Substring is ‘SQL’ and x=3
Phản hồi
Câu hỏi 16
Sai
Đạt điểm 0,00 trên 1,00
Đặt cờ
Chọn một:
a.
All of the others
b.
Triggers run every time the database fields are inserted/updated/deleted, so it adds overhead to system
c.
Unlike stored procedure, parameters cannot be used with triggers.
d.
Triggers execute invisible to client application. It is called by the database server automatically, not by
the client application or user
Phản hồi
Câu hỏi 17
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ
Suppose we want to have an index on attribute year for the relation Movies. Select the correct
answer
Chọn một:
a.
CREATE INDEX YearIndex ON Movies(year);
b.
MAKE INDEX YearIndex IN Movies(year);
c.
CREATE INDEX YearIndex IN Movies(year);
d.
MAKE INDEX YearIndex ON Movies(year);
Phản hồi
Câu hỏi 18
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ
Đoạn văn câu hỏi
Which of the following relational algebra operations require that both tables involved have the exact
same attribute/data types?
Chọn một:
a. Join, Projection
b. Project, Selection, Rename
c. Multiplication and Division
d. Union, Intersection, Minus
Phản hồi
Câu hỏi 19
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ
Chọn một:
a. The WHERE clause is used to restrict the rows that you select
b. The HAVING clause is used to restrict groups
c. In SQL Server, the HAVING clause can precede the GROUP BY clause
Phản hồi
Đáp án đúng là: In SQL Server, the HAVING clause can precede the GROUP BY clause
Câu hỏi 20
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ
b.
Tables
c.
Fields
d.
Keys
Phản hồi
Câu hỏi 21
Sai
Đạt điểm 0,00 trên 1,00
Đặt cờ
Which SQL fail statement when you want to returns the highest purchase price?
Chọn một:
a.
select MaVT from VATTU where GiaMua>= all(select GiaMua from VATTU)
b.
select MaVT from VATTU where GiaMua=(select max(GiaMua) from VATTU)
c.
select top 1 MaVT from VATTU Order by GiaMua desc
d.
select max(GiaMua) from VATTU
Phản hồi
Câu hỏi 22
Sai
Đạt điểm 0,00 trên 1,00
Đặt cờ
Chọn một:
a. Yes.
b. No.
Phản hồi
Câu hỏi 23
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ
Chọn một:
a. Select unique
b. Select indentity
c. Select distinct
d. Select different
Phản hồi
Câu hỏi 24
Sai
Đạt điểm 0,00 trên 1,00
Đặt cờ
Đoạn văn câu hỏi
The people whose jobs require access to the database for querying,
updating, and generating reports; the database primarily exists for their using. What type of this
user?
Chọn một:
a. End users
b. System Analysts and Application Programmers
c. Database designer
d. DBA
Phản hồi
Câu hỏi 25
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ
A domain of PaymentMethod attributes in Invoice relation have 2 types: Cash, Transfer. Which
statement is used to validate the data entries?
Chọn một:
a.
…CHECK PaymentMethod IN (‘Cash’,’Transfer’)
b.
…CHECK PaymentMethod = (‘Cash’,’Transfer’)
c.
…CHECK (PaymentMethod = ‘Cash’ AND PaymentMethod = ‘Transfer’)
d.
…CHECK (PaymentMethod IN ('Cash','Transfer'))
Phản hồi
Câu hỏi 26
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ
A rule that states that each foreign key value must match a primary key value in other relation is
called the __________
Chọn một:
a. Foreign/primary match rule
b. Referential integrity constraint
c. Entity key group rule
d. Key match rule
Phản hồi
Câu hỏi 27
Sai
Đạt điểm 0,00 trên 1,00
Đặt cờ
In SQL, how can you return the number of records in the "Persons" table? (Persons(P_ID, P_Name,
Age, Sex)) (choose two)
Câu trả lời đúng là: Select Count(*) From Persons, Select Count(P_ID) From Persons
Câu hỏi 28
Sai
Đạt điểm 0,00 trên 1,00
Đặt cờ
Chọn một:
a. A many – one relationship
b. A many – many relationship
c. An one – one relationship
d. An ISA relationship
Phản hồi
Câu hỏi 29
Sai
Đạt điểm 0,00 trên 1,00
Đặt cờ
Chọn một:
a.
INDEX2
b.
HASH
c.
BTREE
d.
EXACT
Phản hồi
Câu hỏi 30
Sai
Đạt điểm 0,00 trên 1,00
Đặt cờ
Suppose the relation Project(number, name, department, location). Evaluate the following statement:
SELECT distinct p1.location
FROM Project p1, Project p2
WHERE p1.location=p2.location AND p1.number<>p2.number;
Chọn một:
a.
The query cannot be executed
b.
The query can be executed and returns all those locations where there is only one project
c.
The query can be executed and return all those locations where there are exactly two projects
d.
The query can be executed and returns all those locations where there are more than one projects
Phản hồi
Câu hỏi 31
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ
A collection of programs that enables users to create and maintain a database, this is a definition of
Chọn một:
a. DBMS
b. Database
c. Meta-data
d. Application program
Phản hồi
Câu hỏi 32
Không trả lời
Đạt điểm 1,00
Đặt cờ
Chọn một:
a. Substring is ‘SQL’ and x =3
b. Substring is ‘_S’ and x=2
c. Substring is ‘QL_’ and x =3
d. Substring is ‘QL_’ and x=2
Phản hồi
Câu hỏi 33
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ
Suppose relation R(ABCD) with functional dependencies set F=(A ->B, B->C, BC->D). Which of the
highest Normal form of R?
Chọn một:
a. 3NF
b. 1NF
c. 4NF
d. 2NF
Phản hồi
Câu hỏi 34
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ
Chọn một:
a. Relationship
b. Entity
c. Key
d. Attribute
Phản hồi
Câu hỏi 35
Sai
Đặt cờ
Which SQL statement allows you to list all stores with sales totals over 5000?
Table CELLING (StoreID, DateOfSale, Sales)
Chọn một:
a. SELECT StoreID, SUM(Sales)
FROM SELLING
GROUP BY StoreID
HAVING SUM(Sales) > 5000;
Phản hồi
Câu hỏi 36
Sai
Đặt cờ
a.
Delete statement
b.
Insert statement
c.
All of the others
d.
Update statement
Phản hồi
Đặt cờ
Chọn một:
a. Multi-valued attribute
b. Composite attribute
c. Simple attribute
d. Derived attribute
Phản hồi
Câu hỏi 38
Sai
Chọn một:
a. Durability
b. Consistency
c. Isolation
d. Atomicity
Phản hồi
Câu hỏi 39
Sai
Đặt cờ
Chọn một:
a. Addition
b. Project
c. Union
d. Rename
Phản hồi
Câu hỏi 40
Đúng
Đặt cờ
Chọn một:
a. VIEW is a database.
b. VIEW is a virtual table in the database whose content is defined through some SQL statement.
Phản hồi
Đáp án đúng là: VIEW is a virtual table in the database whose content is defined through some SQL
statement.
Câu hỏi 41
Sai
Đặt cờ
a.
False
b.
True
Phản hồi
True
Câu hỏi 42
Đúng
Đặt cờ
a.
many-many relationship
b.
ISA relationship
c.
supporting relationship
d.
weak relationship
Phản hồi
supporting relationship
Câu hỏi 43
Không trả lời
Đặt cờ
a.
b.
Stored procedures can enhance security control (users can be granted permission to execute a stored
procedure independently of underlying table permissions)
c.
d.
Stored procedures can replace stored functions to improve performance
Phản hồi
Đặt cờ
Chọn một:
a. Equi-join
b. Outer join
c. Natural join
d. Cartesian join
Phản hồi
Câu hỏi 45
Đúng
Đặt cờ
A data manipulation command that combines the records from one or more tables is
called____________
Chọn một:
a. JOIN
b. SELECTION
c. PROJECTION
d. PRODUCT
Phản hồi
Câu hỏi 46
Sai
Đạt điểm 0,00 trên 1,00
Đặt cờ
If every non-key attribute is fully functional dependent on the primary key, the relation will be on
Chọn một:
Phản hồi
Câu hỏi 47
Không trả lời
Đặt cờ
Chọn một:
a. A database represents some aspect of the real world, sometimes called the miniworld or the
universe of discourse (UoD). Changes to the miniworld
are reflected in the database.
d. A database is a logically coherent collection of data with some inherent meaning. A random
assortment of data cannot correctly be referred to as a
database.
Phản hồi
Câu hỏi 48
Không trả lời
Đặt cờ
When you add an index to a field in a database table, how are performance and storage affected?
Chọn một:
a.
Read performance is faster, insert performance is slower and extra storage is required
b.
Read performance is faster, insert performance is the same and no extra storage is required
c.
Read performance is the faster, insert performance is faster and extra storage is required
d.
Read performance is the same, insert performance is faster and no extra storage is required
Phản hồi
Read performance is faster, insert performance is slower and extra storage is required
Câu hỏi 49
Không trả lời
Đạt điểm 1,00
Đặt cờ
a.
Atomicity
b.
Serialization
c.
Concurrency
d.
Isolation
Phản hồi
Concurrency,
Serialization
Câu hỏi 50
Đúng
Đặt cờ
An attribute is a(n)
Chọn một:
a.
A column of a table
b.
a table
c.
A row of a table
Phản hồi
A column of a table