0% found this document useful (0 votes)
50 views15 pages

DCM Module 2 MCQS

The document contains a series of multiple-choice questions related to the subject of Database Creation and Maintenance, covering various topics such as entity sets, attributes, relational calculus, and SQL commands. Each question is followed by options, with the correct answers indicated. The content is structured to assess knowledge in database concepts and operations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views15 pages

DCM Module 2 MCQS

The document contains a series of multiple-choice questions related to the subject of Database Creation and Maintenance, covering various topics such as entity sets, attributes, relational calculus, and SQL commands. Each question is followed by options, with the correct answers indicated. The content is structured to assess knowledge in database concepts and operations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

CENTURION UNIVERSITY OF TECHNOLOGY & MANAGEMENT

ANDHRA PRADESH

EXAMINATION CELL

SUBJECT NAME: Database Creation and Maintenance

SUBJECT CODE: CUTM1033

MODULE NO: 2
S. MCQ Image if any
NO
1 An ________ is a set of entities of the
same type that share the same
properties, or attributes.

A Entity set YES

B Attribute set

C Relation set

D Entity model

2 Entity is a _________

A Object of relation YES

B Present working model

C Thing in real world

D Model of relation

3 The attribute AGE is calculated from


DATE_OF_BIRTH. The attribute
AGE is

A Single valued

B Multi valued

C Composite

D Derived YES

4 Not applicable condition can be


represented in relation entry as

A NA

B 0

C NULL YES

D Blank Space
5 Which of the following can be a
multivalued attribute?

A Phone_number YES

B Name

C Date_of_birth

D All of the mentioned

6 In a relation between the entities the


type and condition of the relation
should be specified. That is called
as______attribute.

A Desciptive YES

B Derived

C Recursive

D Relative

7 A query in the tuple relational calculus


is expressed as:

A {t | P() | t}

B {P(t) | t }

C {t | P(t)} YES

D All of the mentioned

8 Which of the following symbol is used


in the place of except?

A ^

B V

C ¬ YES

D ~

9 Which of the following is the


comparison operator in tuple relational
calculus

A ⇒

B = YES

C ε

D All of the mentioned

10 In domain relaional calculus “there


exist” can be expressed as

A (P1(x))

B (P1(x)) Э x

C V x (P1(x))

D Э x (P1(x)) YES

11 A set of possible data values is called

A Attribute

B Degree

C Tuple

D Domain YES

12 Which type of data can be stored in the


database?

A Image oriented data

B Text, files containing data

C Data in the form of audio or video

D All of the above YES

13 Why the following statement is


erroneous?

SELECT dept_name, ID, avg (salary)


FROM instructor
GROUP BY dept_name;

A Dept_id should not be used in group YES


by clause

B Group by clause is not valid in this


query

C Avg(salary) should not be selected

D None

14 What is the function of the following


command?

Delete from r where P;

A Clears entries from relation

B Deletes relation

C Deletes particular tuple from relation YES

D All of the mentioned

15 Which of the following is the best way


to represent the attributes in a large
db?

A Dot representation

B Concatenation YES

C Relational-and

D All of the mentioned

16 Which of the following functions


construct histograms and use buckets
for ranking?

A Ntil() YES
B Newtil()
C Rank()

D All of the mentioned

17 Evaluate the statements issued by the


DBA in the given sequence if OE and
SCOTT are the users and the
ORDERS table is owned by OE.

CREATE ROLE r1;


GRANT SELECT, INSERT ON oe.
orders TO r1;
GRANT r1 TO scott;
GRANT SELECT ON oe. orders TO
scott;
REVOKE SELECT ON oe.orders
FROM scott;
What would be the outcome after
executing the statements?

A The REVOKE statement would give


an error because the SELECT privilege
has been granted to the role R1

B The REVOKE statement would


remove the SELECT privilege from
SCOTT as well as from the role R1

C SCOTT would be able to query the YES


OE.ORDERS table

D SCOTT would not be able to query the


OE.ORDERS table

18 Student(ID, name, dept name,


tot_cred)

A In this query which attributes form the


primary key?

B Name

C Dept

D Tot_cred YES
19 The ______ can be used to explain
data independence.
A One-schema architecture
B Two-schema architecture
C Three-schema architecture YES
D Four-schema architecture
20 An independent database is a system
that permits __________ modifications
on one level without affecting the
____________ on the next level up.
A Instance
B Schema YES
C Both a and b

D None
21 How many types of data independence
are there?

A 1 YES
B 2

C 3

D 4

22 Separating external data from ____


data is achieved using logical data
independence.

A Logical

B Conceptual YES
C Analytical

D Physical

23 What is TRUE about Logical Data


Independence?

A We wouldn't impact the user view of


the data if we changed the conceptual
view of the data.

B User interfaces are logically


independent of data.

C Both A and B YES


D None of the above

24 What is the output of the following


statement?

span class="sy0"> * (defun book-


author (book) (second book))
* (setf book-example-1 '((Artificial
Intelligence) (Patrick) (Technical AI)))
* (book-author book-example-1)

A Artificial Intelligence

B Patrick YES
C Technical AI

D None of the mentioned

25 Which one is not the OPTIONAL


Clause in SELECT statement?

A WHERE

B ORDER BY

C HAVE YES
D HAVING

26 Which clause is used to retrieve a


unique element from the table?

A SELECT UNIQUE

B SELECT DISTINCT
C Both A) and B) YES
D None of the above

27 Which function combines the two


different columns?

A ADD

B MERGE

C CONCAT YES
D None of the above

28 What is the difference between MIN


and MAX function?

A MIN function is used to show the YES


minimum data and MAX function is
used to show the maximum data.

B MIN function is used to show the


maximum data and MAX function is
used to show the minimum data.

C Both of the above

D None of the above

29 What is the clause to delete all rows


from the table?
A SQL DELETE ALL ROWS
Table_Name;
B SQL DELETE ROWS Table_Name;
C DELETE FROM ALL ROWS
Table_Name;
D DELETE FROM Table_Name; YES
30 SQL CREATE DATABASE is used
to,

A Create a table

B Create a database YES


C Create a column

D Create a row

31 In an E-R diagram an entity set is


represent by a

A Rectangle YES
B Ellipse

C Diamond box

D Circle

32 E-R model uses this symbol to


represent weak entity set ?

A Dotted rectangle

B Diamond

C Doubly outlined rectangle YES


D None of the Mentioned

33 For a weak entity set to be meaningful,


it must be associated with another
entity set, called the

A Identifying set YES


B Owner set

C Neighbour set

D Strong entity set

34 The entity relationship set is


represented in E-R diagram as

A Double diamonds

B Undivided rectangles

C Dashed lines
D Diamond YES
35 The Rectangles divided into two parts
represents

A Entity set YES


B Relationship set

C Attributes of a relationship set

D Primary key

36 The system variable in MySQL server


that enables to configure the SQL
mode is __________

A sql_config

B sql_mode YES
C sql_server

D sql_enable

37 How do the STRICT_ALL_TABLES


and STRICT_TRANS_TABLES mode
values deal with bad data?

A reject them YES


B accept them

C change them to the closest legal value


and accept

D change them to the closest legal value


and reject

38 Condition defined generalization


constraint is also said to be ________

A Attribute defined YES


B Constraint defined
C Value defined

D Undefined

39 ________ is an abstraction through


which relationships are treated as
higher level entities

A Creation

B Superseding

C Attribute separation

D Aggregation YES
40 Which of the following is the valid
component of the predictor?

A data

B question

C algorithm

D all of the mentioned YES


41 Which of the following shows correct
relative order of importance?

A question->features->data->algorithms

B question->data->features->algorithms YES
C algorithms->data->features->question

D none of the mentioned

42 Which of the following expression is


true?

A In sample error < out sample error YES


B In sample error > out sample error

C In sample error = out sample error


D All of the mentioned

43 One to one mapping constraint is


denoted as -

A M:1

B 1:M

C M:M

D 1:1 YES
44 One-to-one mapping constraint is
shown by symbol -

A Arrow YES
B Line

C Pipe

D Square

45 There are more ___ in generalization.

A Subclasses YES
B Superclasses

C Both a and b

D None of the above

46 What is the difference between


Generalization and Specialization?

A Generalization and Specialization is


like the Bottom-Up Approach

B Generalization and Specialization is


like the Top-Down Approach

C Generalization is like the Top-Down


approach and Specialization is like the
Bottom-Up Approach
D Generalization is like a Bottom-Up YES
approach and Specialization is like a
Top-Down Approach

47 In contemporary databases, the top


level of the hierarchy consists of
______ each of which can contain
_____

A Catalogs, schemas YES


B Schemas, catalogs

C Environment, schemas

D Schemas, Environment

48 Suppose the user finds the usage of


room number and phone number in a
relational schema there is
confusion.This is reduced by

A Unique-role assumption YES


B Unique-key assignment

C Role intergral assignment

D None of the mentioned

49 In the schema (dept name, size) we


have relations total inst 2007, total inst
2008. Which dependency have lead to
this relation ?

A Dept name, year->size YES


B Year->size

C Dept name->size

D Size->year

50 Representations such as the in the dept


year relation, with one column for each
value of an attribute, are called
_______ they are widely used in
spreadsheets and reports and in data
analysis tools.

A Cross-tabs YES
B Snapshot

C Both Cross-tabs and Snapshot

D All of the mentioned

You might also like