You are on page 1of 29

Câu hỏi 

1
Đúng
Đạt điểm 1,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

A software package/system to facilitate the creation and maintenance of a computerized database is


called

Chọn một:
a. Database Management System (DBMS) 
b. Database System
c. Database
Phản hồi

Đáp án đúng là: Database Management System (DBMS)

Câu hỏi 2
Sai
Đạt điểm 0,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

The minimal set of super keys are called?

Chọn một:
a. Candidate keys
b. Superkeys 
c. Foreign keys
d. Attribute keys
Phản hồi

Đáp án đúng là: Candidate keys

Câu hỏi 3
Sai
Đạt điểm 0,00 trên 1,00
Đặt cờ

Đoạn văn câu hỏi

Which of the following statements is true concerning routines and triggers?

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

Đáp án đúng là: Both consist of procedural code

Câu hỏi 4
Đúng
Đạt điểm 1,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

Which normal form is considered as adequate for usual database design?

Chọn một:
a. 2NF
b. 3NF 
c. 4NF
d. 1NF
Phản hồi

Đáp án đúng là: 3NF

Câu hỏi 5
Sai
Đạt điểm 0,00 trên 1,00
Đặt cờ

Đoạn văn câu hỏi

A CASE SQL statement is which of the following?

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

Đáp án đúng là: A way to establish an IF-THEN-ELSE in SQL.

Câu hỏi 6
Sai
Đạt điểm 0,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

The components of Database system:

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

Đáp án đúng là: Users, Database application, DBMS, Database

Câu hỏi 7
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ

Đoạn văn câu hỏi

Legacy data is which of the following?

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ờ

Đoạn văn câu hỏi

Four characteristics of transactions are _________

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

Đáp án đúng là: Atomicity, Isolation, Consistency, Durability

Câu hỏi 9
Đúng một phần
Đạt điểm 0,50 trên 1,00
Đặt cờ

Đoạn văn câu hỏi

Which of the following is true? (choose two)

Chọn một hoặc nhiều


a. NULL values are ignored for all the aggregate functions
b. NULL values are included for all the aggregate functions 
c. 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. 
Phản hồi

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ờ

Đoạn văn câu hỏi

Four characteristics of transactions are ....

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

Đáp án đúng là:


Atomicity, Consistency, Isolation, Durability

Câu hỏi 11
Đúng
Đạt điểm 1,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

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

Đáp án đúng là: BD

Câu hỏi 12
Sai
Đạt điểm 0,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

Which of the following is true concerning triggers?

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

Đáp án đúng là: They have an event, condition, and action.

Câu hỏi 13
Đúng
Đạt điểm 1,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

Suppose relation R(A,B,C,D,E) with functional dependencies:


D → C, CE → A, C → B, AE → D
Which of the following is a key?

Chọn một:
a. AE 
b. ADE
c. AD
d. D
Phản hồi

Đáp án đúng là: AE

Câu hỏi 14
Đúng
Đạt điểm 1,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

Choose the WRONG statement.

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ờ

Đoạn văn câu hỏi

SELECT SUBSTRING('SQL_SERVER', 2, 3) AS 'Substring', len(SUBSTRING('SQL_SERVER', 2,


3)) AS 'x'

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

Đáp án đúng là:


Substring is ‘QL_’ and x=3

Câu hỏi 16
Sai
Đạt điểm 0,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

Which of the following is considered disadvantage of triggers?

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

Đáp án đúng là:


All of the others

Câu hỏi 17
Đúng
Đạt điểm 1,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

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

Đáp án đúng là:


CREATE INDEX YearIndex ON Movies(year);

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

Đáp án đúng là: Union, Intersection, Minus

Câu hỏi 19
Đúng
Đạt điểm 1,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

What statement is FALSE

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ờ

Đoạn văn câu hỏi

A relational dabtabase consists of a collection of 


Chọn một:
a.
Records

b.
Tables 

c.
Fields

d.
Keys
Phản hồi

Đáp án đúng là:


Tables

Câu hỏi 21
Sai
Đạt điểm 0,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

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

Đáp án đúng là:


select max(GiaMua) from VATTU

Câu hỏi 22
Sai
Đạt điểm 0,00 trên 1,00
Đặt cờ

Đoạn văn câu hỏi

The order in which the tuples of a relation are presented is important

Chọn một:
a. Yes. 
b. No.
Phản hồi

Đáp án đúng là: No.

Câu hỏi 23
Đúng
Đạt điểm 1,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

Which SQL statement is used to return only different values?

Chọn một:
a. Select unique
b. Select indentity
c. Select distinct 
d. Select different
Phản hồi

Đáp án đúng là: Select distinct

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

Đáp án đúng là: End users

Câu hỏi 25
Đúng
Đạt điểm 1,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

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

Đáp án đúng là:


…CHECK (PaymentMethod IN ('Cash','Transfer'))

Câu hỏi 26
Đúng
Đạt điểm 1,00 trên 1,00
Đặt cờ

Đoạn văn câu hỏi

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

Đáp án đúng là: Referential integrity constraint

Câu hỏi 27
Sai
Đạt điểm 0,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

In SQL, how can you return the number of records in the "Persons" table? (Persons(P_ID, P_Name,
Age, Sex)) (choose two)

Chọn một hoặc nhiều


a. Select * From Persons 
b. Select Count(P_ID) From Persons
c. Select Column(*) From Persons
d. Select Count(*) From Persons
Phản hồi

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ờ

Đoạn văn câu hỏi

A relationship Order from Custommers to Products should be

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

Đáp án đúng là: A many – many relationship

Câu hỏi 29
Sai
Đạt điểm 0,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

Which of the following indexes would be best for fast look up


for exact key matches but not so good for prefix lookups or
sorting?

Chọn một:
a.
INDEX2 

b.
HASH

c.
BTREE

d.
EXACT
Phản hồi

Đáp án đúng là:


HASH

Câu hỏi 30
Sai
Đạt điểm 0,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

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

Đáp án đúng là:


The query can be executed and returns all those locations where there are more than one projects

Câu hỏi 31
Đúng
Đạt điểm 1,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

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

Đáp án đúng là: DBMS

Câu hỏi 32
Không trả lời
Đạt điểm 1,00

Đặt cờ

Đoạn văn câu hỏi

SELECT SUBSTRING('SQL_SERVER', 2, 3) AS 'Substring', len(SUBSTRING('SQL_SERVER', 2,


3)) AS 'x'

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

Đáp án đúng là: Substring is ‘QL_’ and x =3

Câu hỏi 33
Đúng
Đạt điểm 1,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

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

Đáp án đúng là: 2NF

Câu hỏi 34
Đúng
Đạt điểm 1,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

In ERD using Chen notation, the rectangle symbol is used to represent an

Chọn một:
a. Relationship
b. Entity 
c. Key
d. Attribute
Phản hồi

Đáp án đúng là: Entity

Câu hỏi 35
Sai

Đạt điểm 0,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

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;

b. SELECT StoreID, SUM(Sales)


FROM SELLING
WHERE Sales > 5000
GROUP BY StoreID; 

c. SELECT StoreID, SUM(Sales)


FROM SELLING
WHERE SUM(Sales) > 5000
GROUP BY StoreID;

d. SELECT StoreID, SUM(Sales)


FROM SELLING
GROUP BY StoreID
HAVING Sales > 5000;

Phản hồi

Đáp án đúng là: SELECT StoreID, SUM(Sales)


FROM SELLING
GROUP BY StoreID
HAVING SUM(Sales) > 5000;

Câu hỏi 36
Sai

Đạt điểm 0,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

Which of the following statements can be used in PSM's body?


Chọn một:

a.

Delete statement 

b.
 Insert statement

c.
All of the others

d.

Update statement
Phản hồi

Đáp án đúng là:

All of the others


Câu hỏi 37
Đúng

Đạt điểm 1,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

The attribute that can be divided into other attributes is called?

Chọn một:

a. Multi-valued attribute

b. Composite attribute 

c. Simple attribute

d. Derived attribute

Phản hồi

Đáp án đúng là: Composite attribute

Câu hỏi 38
Sai

Đạt điểm 0,00 trên 1,00


Đặt cờ

Đoạn văn câu hỏi

Which of transaction properties refers to its permanence regardless of system failure?

Chọn một:

a. Durability

b. Consistency 

c. Isolation

d. Atomicity

Phản hồi

Đáp án đúng là: Durability

Câu hỏi 39
Sai

Đạt điểm 0,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

Which of the following is not a relation-algebra operation?

Chọn một:

a. Addition

b. Project

c. Union

d. Rename 
Phản hồi

Đáp án đúng là: Addition

Câu hỏi 40
Đúng

Đạt điểm 1,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

What does VIEW in SQL mean?

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. 

c. VIEW is a special stored procedure that happens when something happens.

d. VIEW is a real table.

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 điểm 0,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

A FD is contraint between two sets of attributes in a relation


Chọn một:

a.

False 

b.

True
Phản hồi

Đáp án đúng là:

True
Câu hỏi 42
Đúng

Đạt điểm 1,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

Weak entity set best evolves to


Chọn một:

a.

many-many relationship

b.

ISA relationship

c.

supporting relationship 

d.

weak relationship
Phản hồi

Đáp án đúng là:

supporting relationship
Câu hỏi 43
Không trả lời

Đạt điểm 1,00

Đặt cờ

Đoạn văn câu hỏi

Which of the following is not true about stored procedure?


Chọn một:

a.

None of the others

b.

Stored procedures can enhance security control (users can be granted permission to execute a stored
procedure independently of underlying table permissions)

c.

 Stored procedures can reduce/avoid network traffic

d.
Stored procedures can replace stored functions to improve performance
Phản hồi

Đáp án đúng là:

Stored procedures can replace stored functions to improve performance


Câu hỏi 44
Không trả lời

Đạt điểm 1,00

Đặt cờ

Đoạn văn câu hỏi


The following SQL in which type of join: Select Student.StudentID, Test.StudentID, S_Name From
Student, Test;

Chọn một:

a. Equi-join

b. Outer join

c. Natural join

d. Cartesian join

Phản hồi

Đáp án đúng là: Cartesian join

Câu hỏi 45
Đúng

Đạt điểm 1,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

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

Đáp án đúng là: JOIN

Câu hỏi 46
Sai
Đạt điểm 0,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

If every non-key attribute is fully functional dependent on the primary key, the relation will be on

Chọn một:

a. First normal form 

b. Third normal form

c. Fourth normal form

d. Second normal form

Phản hồi

Đáp án đúng là: Second normal form

Câu hỏi 47
Không trả lời

Đạt điểm 1,00

Đặt cờ

Đoạn văn câu hỏi

Which of the below statements is true regarding databases?

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.

b. All of these statements.


c. A database is designed, built, and populated with data for a specific purpose.It has an intended
group of users and some preconceived applications in which these users are interested.

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

Đáp án đúng là: All of these statements.

Câu hỏi 48
Không trả lời

Đạt điểm 1,00

Đặt cờ

Đoạn văn câu hỏi

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

Đáp án đúng là:

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ờ

Đoạn văn câu hỏi

Which of the followings is not a characteristics of transactions?


Chọn một hoặc nhiều

a.

Atomicity

b.

Serialization

c.

Concurrency

d.

Isolation
Phản hồi

Câu trả lời đúng là:

Concurrency,
Serialization
Câu hỏi 50
Đúng

Đạt điểm 1,00 trên 1,00

Đặt cờ

Đoạn văn câu hỏi

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

Đáp án đúng là:

A column of a table

You might also like