Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Part 1 of 1 -
A. Rectangle.
B. Triangle.
C. Square.
D. Ellipse.
Question 3 of 20
The conceptual model is:
A. Dependent on hardware.
B. Dependent on both hardware and software.
C. Dependent on software.
D. Independent of both hardware and software.
Question 4 of 20
The following data model has been created as a part of a library reservation
system. Which is the correct description for it? In this question, 1 * means one-tomany cardinality and the underlined attributes in the table definition are primary
keys
A. File
B. Organization
C. Entity set
D. Entity instance
5.0/ 5.0 Points
Question 7 of 20
You are building a new database for a company with 10 departments. Each
department contains multiple employees. In addition, each employee might work
for several departments. How should you logically model the relationship between
the department entity and the employee entity?
A. Create a new entry, create a one-to-many relationship from the new entry
to the employee entry, and then create a one-to-many relationship from the entry
to the department entry.
B. Create a mandatory one-to-many relationship between department and
employee.
C. Create a new entry, create a one-to-many relationship from the employee
to the new entry, and create a one-to-many relationship from the department
entry to the new entry.
D. Create an optional one-to-many relationship between department and
employee.
Question 8 of 20
Conceptual design
A. Involves modelling independent of the DBMS.
A. Rectangle.
B. Ellipse.
C. Circle.
D. Diamond box.
Question 10 of 20
In E-R diagram generalization is represented by
A. Dashed ellipse
B. Ellipse
C. Rectangle
D. Triangle
Question 11 of 20
In case of entity integrity, the primary key may be:
A. Not Null
B. Both Null & not Null.
C. Null
Question 12 of 20
The following are functions of a DBMS except _______ .
A. creating databases
B. administrating databases
A. Dotted rectangle.
B. Diamond.
C. Doubly outlined rectangle.
D. None of these.
0.0/ 5.0 Points
Question 16 of 20
Which of the following is not a restriction for a table to be a relation?
A. Unique key
B. Secondary key
C. Alternate key
D. Primary key
Question 19 of 20
It is better to use files than a DBMS when there are:
A. Switchboards
B. Groups
C. Table
D. Attributes
Question 3 of 20
In the ERD diagram, the one-to-many relationship, "a company has multiple
employees," is expressed as follows:
5.0/ 5.0
Points
0.0/ 5.0
Points
A.
5.0/ 5.0
Points
A. Column.
B. one-dimensional table.
C. two-dimensional table.
D. three-dimensional table.
5.0/ 5.0 Points
Question 9 of 20
The file organization that provides very fast access to any arbitrary record of a file
is:
A. Hashed file.
B. B-tree.
C. Unordered file.
D. Ordered file.
Question 10 of 20
Which of the following is another name for weak entity?
A. Child
B. Owner
C. Dominant
D. All of the above
5.0/ 5.0 Points
Question 11 of 20
The database environment has all of the following components except:
A. Users.
B. Database administrator.
C. Separate files.
D. Database.
Question 13 of 20
In the relational modes, cardinality is termed as:
A. Number of constraints.
B. Number of attributes.
C. Number of tables.
D. Number of tuples
Question 15 of 20
What is data integrity?
A. It is the data contained in database that is shared.
B. It is the data contained in database that is accurate and
consistent.
C. It is the data contained in database that is secured.
D. It is the data contained in database that is non redundant.
5.0/ 5.0
Question 18 of 20
Points
Which of the following appropriately describes a schema in a relational database
management system?
A. It is a set of data definitions such as the data properties, format,
relationship with other data, etc.
B. It is the general term for various conditions and constraints that
are used to maintain the database in absolutely perfect condition.
C. It is the general term for database operations such as data
insertion, updating, deletion, search, etc.
D. It is not an actual table but a virtual table from the perspective of
the user.
Question 20 of 20
5.0/ 5.0
Points
If the condition given below applies, which of the following is appropriate as an ER diagram showing the departments employees belong to?
p n ng
Question 2 of 20
Which of the following are the properties of entities?
A. Switchboards
B. Groups
C. Table
D. Attributes
Question 4 of 20
Question 18 of 20
You are tasked with creating a database to manage where computers are installed
at a company that has offices in several buildings. You create an asset table, a
room table, and a building table, and link each of them together. When new
data is entered, the data in the referenced table must already exist. Which of the
following is the appropriate order of in-put? Here, the underlined items in each
table are either primary or foreign keys.
A. Columns
B. Groups
C. Values
D. Distinct values
5.0/ 5.0 Points
Question 2 of 20
The statement in SQL which allows change the definition of a table is:
A. Create.
B. Select
C. Update.
D. Alter.
Question 3 of 20
D. SELECT COUNT(*)
FROM Purchases
WHERE CONVERT(VARCHAR, PurchaseTime, 112) =
CONVERT(VARCHAR, GETDATE(), 112)
Question 6 of 20
Which of the following is a legal expression in SQL?
A. =
B. LIKE
C. BETWEEN
D. All of the above
0.0/ 5.0 Points
Question 8 of 20
You develop a Microsoft SQL Server 2012 database. The database is used by two
web applications that access a table named Products. You want to create an object
that will prevent the applications from accessing the table directly while still
providing access to the required data. You need to ensure that the following
requirements are met:
Future modifications to the table definition will not affect the applications' ability
to access data.
The new object can accommodate data retrieval and data modification.
You need to achieve this goal by using the minimum amount of changes to the
existing applications.
What should you create for each application?
A. Views
B. Table partitions
C. Table-valued functions
D. Stored procedures
Question 9 of 20
DML is provided for:
You are a database developer of a Microsoft SQL Server 2012 database. You are
designing a table that will store Customer data from different sources. The table
will include a column that contains the CustomerID from the source system and a
column that contains the SourceID. A sample of this data is as shown in the
following table.
You need to ensure that the table has no duplicate CustomerID within a SourceID.
You also need to ensure that the data in the table is in the order of SourceID and
then CustomerID. Which Transact- SQL statement should you use?
A.
You are a database developer of a Microsoft SQL Server database. The database
contains a table named Customers that has the following definition:
You need to ensure that the CustomerId column in the Orders table contains only
values that exist in the CustomerId column of the Customer table. Which
Transact-SQL statement should you use?
A.
ALTER TABLE Customer
ADD OrderId INT NOT NULL;
B.
ALTER TABLE Orders
ADD CONSTRAINT FX_Orders_CustomerID FOREIGN KEY (CustomerId)
REFERENCES Customer (CustomerId)
C.
ALTER TABLE Customer
ADD CONSTRAINT FK_Customer_OrderID FOREIGN KEY (CrderlD)
REFERENCES Orders (CrderlD);
ALTER TABLE Orders
ADD CONSTRAINT PK Orders CustomerId PRIMARY KEY (CustomerID)
D.
ALTER TABLE Orders
ADD CONSTRAINT CK_Crders_CustomerID
CHECK (CustomerId IN (SELECT CustomerId FROM Customer))
E.
ALTER TABLE Customer
ADD CONSTRAINT FK_Customer_CustomerID FOREIGN KEY
{CustomerID) REFERENCES Orders (CustomerId)
Question 12 of 20
Which of the following SQL statements for the stated table Shipment_Record
produces the largest value as a result of its execution?
Question 14 of 20
A. DCL
B. DDL
C. HLL
D. DML
5.0/ 5.0 Points
Question 16 of 20
The ______ operator is used to compare a value to a list of literals values that
have been specified.
A. BETWEEN
B. IN
C. ANY
D. ALL
5.0/ 5.0 Points
Question 17 of 20
You want to create a table to store Microsoft Word documents. You need to
ensure that the documents must only be accessible via Transact-SQL queries.
Which Transact-SQL statement should you use?
A. CREATE TABLE DocumentStore
(
[Id] INT NOT NULL PRIMARY KEY,
[Document] VARBINARY(MAX) NULL
)
GO
B. ) CREATE TABLE DocumentStore AS FileTable
C. CREATE TABLE DocumentStore
(
[Id] [uniqueidentifier] ROWGUIDCOL NOT NULL UNIQUE,
[Document] VARBINARY(MAX) FILESTREAM NULL
)
GO
D. CREATE TABLE DocumentStore
(
[Id] hierarchyid,
[Document] NVARCHAR NOT NULL
)
GO
Question 18 of 20
A. DELETE
B. INSERT
C. CREATE
D. SELECT
Question 20 of 20
SQL is:
A. a programming language
B. an operating system
C. a DBMS.
D. a data sublanguage.
5.0/
5.0
Question 2 of 20
Point
s
Which is the SQL constraint that allows inputting NULL in a specified column in a
DBMS table but that does not allow inputting the already entered value?
A. UNIQUE
B. CHECK
C. REFERENCES
D. PRIMARY KEY
Question 5 of 20
A primary key is combined with a foreign key creates:
5.0/ 5.0
Points
Which of the following is the appropriate SQL statement that is used to create
Table A from Persons Table?
5.0/ 5.0
Points
Question 11 of 20
Which of the following is not the SQL statement?
A. CREATE
B. INSERT
C. DELETE
D. DIVIDE
Question 13 of 20
There is a student score table shown below with basic and advanced subject codes
which begin with letters B and A respectively. Which of the following SQL
statements can be used to retrieve students, from the score table, whose basic
subject score is 70 or more and examination date is 2007-05-04?
Question 14 of 20
SQL query and modification commands make up a(n) ________________
5.0/ 5.0
Points
A. DML
B. DDL
C. XML
D. HTML
Question 16 of 20
5.0/ 5.0
Points
5.0 Points
A. Selection operation.
B. Join operation.
C. Rename operation.
D. Projection operation.
Question 2 of 20
Which of the following product groups can be found when searching the Product
Inventory table for products with a sales price of 500 dollars or more per unit and
an inventory of less than 10 units?
Question 14 of 20
5.0/ 5.0
Points
You develop a database for a travel application. You need to design tables and
other database objects. You create a view that displays the dates and times of the
airline schedules on a report. You need to display dates and times in several
international formats. What should you do?
A. Use the DATETIME data type.