You are on page 1of 46

“AtoZ Telugu News”- Mobile App.

✓ పో టీపరీక్షలకు ప్రిప్ేరయ్యే అభ్ేరధులకు "AtoZ Telugu News" App చాలా ఉపయోగపడుత ుంది.
ఈ APP లో పితిరోజు LATEST JOBS, డైలీ Curent Affairs, ఎపపటికపపపడు జరిగే మొతత ుం విదాే
సమాచారాన్ని ఈ APP లో UPDATE చేసత త ఉుంటాము.
✓ ఎపపటికపపపడు మీ చుటటుపకకల జరిగే తాజా వారత లను కూడా చతడవచుు. ఇపపడే మా App ను
Download చేసుక ుండి.

➢ App Link:
https://play.google.com/store/apps/details?id=com.app.atoznews

2. Data Base management Systems


DBMS IMPORTANT & PREVIOUS EXAMS BITS:
1. In the relational model, cardinality is termed as:

(A) A number of tuples.

(B) A number of attributes.

(C) A number of tables.

(D) A number of constraints.

Ans: A

2. Relational calculus is a

(A) Procedural language.

(B) Non- Procedural language.

(C) Data definition language.

(D) High-level language.

Ans: B

3. The view of total database content is

“AtoZ Telugu News- Mobile App”


(A) Conceptual view.

(B) Internal view.

(C) External view.

(D) Physical View.

Ans: A

4. Cartesian product in relational algebra is

(A) a Unary operator.

(B) a Binary operator.

(C) a Ternary operator.

(D) not defined.

Ans: B

5. DML is provided for

(A) Description of the logical structure of a database.

(B) The addition of new structures in the database system.

(C) Manipulation & processing of the database.

(D) Definition of a physical structure of the database system.

Ans: C

6. ‘AS’ clause is used in SQL for

(A) Selection operation.

(B) Rename operation.

(C) Join operation.

(D) Projection operation.

“AtoZ Telugu News- Mobile App”


Ans: B

7. ODBC stands for

(A) Object Database Connectivity.

(B) Oral Database Connectivity.

(C) Oracle Database Connectivity.

(D) Open Database Connectivity.

Ans: D

Q.8 Architecture of the database can be viewed as

(A) two levels.

(B) four levels.

(C) three levels.

(D) one level.

Ans: C

Q.9 In a relational model, relations are termed as

(A) Tuples.

(B) Attributes

(C) Tables.

(D) Rows.

Ans:c

Q.10 The database schema is written in

(A) HLL

“AtoZ Telugu News- Mobile App”


(B) DML

(C) DDL

(D) DCL

Ans: C

Q.11 In the architecture of a database system external level is the

(A) physical level.

(B) logical level.

(C) conceptual level

(D) view level.

Ans: D

Q.12 An entity set that does not have sufficient attributes to form a primary key is a

(A) strong entity set.

(B) weak entity set.

(C) simple entity set.

(D) primary entity set.

Ans: B

Q.13 In Hierarchical model records are organised as

(A) Graph.

(B) List.

(C) Links.

(D) Tree.

Ans: D

“AtoZ Telugu News- Mobile App”


Q.14 In an E-R diagram attributes are represented by

(A) rectangle.

(B) square.

(C) ellipse.

(D) triangle.

Ans: C

Q.15 In case of entity integrity, the primary key may be

(A) not Null

(B) Null

(C) both Null & not Null.

(D) any value.

Ans: A

Q.16 In tuple relational calculus P1 ®P2 is equivalent to

(A) ¬P1 Ú P2

(B) P1 Ú P2

(C) P1 Ù P2

(D) P1 Ù¬P2

Ans: A

Q.17 The language used in application programs to request data from the DBMS is referred to as the

(A) DML

(B) DDL

“AtoZ Telugu News- Mobile App”


(C) VDL

(D) SDL

Ans: A

Q.18 A logical schema

(A) is the entire database.

(B) is a standard way of organising information into accessible parts.

(C) describes how data is actually stored on disk.

(D) both (A) and (C)

Ans: A

Q.19 Related fields in a database are grouped to form a

(A) data file.

(B) data record.

(C) menu.

(D) bank.

Ans: B

Q.20 The database environment has all of the following components except:

(A) users.

(B) separate files.

(C) database.

(D) database administrator.

Ans: A.

“AtoZ Telugu News- Mobile App”


Q.21 The language which has recently become the defacto standard for interfacing application programs
with relational database system is

(A) Oracle. (B) SQL.

(C) DBase. (D) 4GL.

Ans: B

Q.22 The way a particular application views the data from the database that the application uses is a

(A) module. (B) relational model.

(C) schema. (D) subschema.

Ans: D

Q.23 In an E-R diagram an entity set is represent by a

(A) rectangle.

(B) ellipse.

(C) diamond box.

(D) circle.

Ans: A

Q.24 A report generator is used to

(A) update files.

(B) print files on paper.

(C) data entry.

(D) delete files.

Ans: B

Q.25 The property/properties of a database is/are:

“AtoZ Telugu News- Mobile App”


(A) It is an integrated collection of logically related records.

(B) It consolidates separate files into a common pool of data records.

(C) Data stored in a database is independent of the application programs using it.

(D) All of the above.

Ans: D

Q.26 The DBMS language component which can be embedded in a program is

(A) The data definition language (DDL).

(B) The data manipulation language (DML).

(C) The database administrator (DBA).

(D) A query language.

Ans: B

Q.27 A relational database developer refers to a record as

(A) Criteria.

(B) a relation.

(C) a tuple.

(D) an attribute.

Ans: C

Q.28 The relational model feature is that there

(A) is no need for primary key data.

(B) is much more data independence than some other database models.

(C) are explicit relationships among records.

(D) are tables with many dimensions.

“AtoZ Telugu News- Mobile App”


Ans: B

Q.29 Conceptual design

(A) is a documentation technique.

(B) needs data volume and processing frequencies to determine the size of the database.

(C) involves modelling independent of the DBMS.

(D) is designing the relational model.

Ans:C

Q.30 The method in which records are physically stored in a specified order according to a key

field in each record is

(A) hash.

(B) direct.

(C) sequential.

(D) all of the above.

Ans: A

Q.31 A subschema expresses

(A) the logical view.

(B) the physical view.

(C) the external view.

(D) all of the above.

Ans: C

Q.32 Count function in SQL returns the number of

“AtoZ Telugu News- Mobile App”


(A) values.

(B) distinct values.

(C) groups.

(D) columns.

Ans: A

Q.33 Which one of the following statements is false?

(A) The data dictionary is normally maintained by the database administrator.

(B) Data elements in the database can be modified by changing the data dictionary.

(C) The data dictionary contains the name and description of each data element.

(D) A data dictionary is a tool used exclusively by the database administrator.

Ans: B

Q.34 An advantage of the database management approach is

(A) data is dependent on programs.

(B) data redundancy increases.

(C) data is integrated and can be accessed by multiple programs.

(D) none of the above.

Ans: C

Q.35 A DBMS query language is designed to

(A) support end users who use English-like commands.

(B) support in the development of complex applications software.

(C) specify the structure of a database.

(D) all of the above.

“AtoZ Telugu News- Mobile App”


Ans: D

Q.36 Transaction processing is associated with everything below except

(A) producing detail, summary, or exception reports.

(B) recording a business activity.

(C) confirming an action or triggering a response.

(D) maintaining data.

Ans: C

Q.37 It is possible to define a schema completely using

(A) VDL and DDL.

(B) DDL and DML.

(C) SDL and DDL.

(D) VDL and DML.

Ans: B

Q.38 The method of access which uses key transformation is known as

(A) direct.

(B) hash.

(C) random

. (D) sequential.

Ans: B

Q.39 Data independence me Ans

(A) data is defined separately and not included in programs.

“AtoZ Telugu News- Mobile App”


(B) programs are not dependent on the physical attributes of data.

(C) programs are not dependent on the logical attributes of data.

(D) both (B) and (C).

Ans: D both (B) and (C)

Q.40 The statement in SQL which allows changing the definition of a table is

(A) Alter.

(B) Update.

(C) Create.

(D) select.

Ans: A.

Set:- 3 MCQ on DBMS

Q.41 E-R model uses this symbol to represent a weak entity set?

(A) Dotted rectangle.

(B) Diamond

(C) Doubly outlined rectangle

(D) None of these

Ans: C

Q.42 SET concept is used in:

(A) Network Model

(B) Hierarchical Model

(C) Relational Model

(D) None of these

“AtoZ Telugu News- Mobile App”


Ans: A

Q.43 Relational Algebra is

(A) Data Definition Language.

(B) Meta Language

(C) Procedural query Language

(D) None of the above

Ans: C

Q.44 Key to represent the relationship between tables is called

(A) Primary key

(B) Secondary Key

(C) Foreign Key

(D) None of these

Ans: C

Q.45 _______ produces the relation that has attributes of R1 and R2

(A) Cartesian product

(B) Difference

(C) Intersection

D) Product

Ans: A

Q.46 The file organisation that provides very fast access to any arbitrary record of a file is

(A) Ordered file

“AtoZ Telugu News- Mobile App”


(B) Unordered file

(C) Hashed file

(D) B-tree

Ans: C

Q.47 DBMS helps achieve

(A) Data independence

(B) Centralised control of data

(C) Neither (A) or (B)

(D) both (A) and (B)

Ans: D

Q.48 Which of the following are the properties of entities?

(A) Groups

(B) Table

(C) Attributes

(D) Switchboards

Ans: C

Q.49 In a relation

(A) Ordering of rows is immaterial

(B) No two rows are identical

(C) (A) and (B) both are true

(D) None of these.

Ans: C

“AtoZ Telugu News- Mobile App”


Q.50 Which of the following is correct:

(A) a SQL query automatically eliminates duplicates.

(B) SQL permits attribute names to be repeated in the same relation.

(C) a SQL query will not work if there are no indexes on the relations

(D) None of these

Ans: D

Q.51 It is better to use files than a DBMS when there are

(A) Stringent real-time requirements.

(B) Multiple users wish to access the data.

(C) Complex relationships among data.

(D) All of the above.

Ans: B

Q.52 The conceptual model is

(A) dependent on hardware.

(B) dependent on software.

(C) dependent on both hardware and software.

(D) independent of both hardware and software.

Ans: D

Q.53 What is a relationship called when it is maintained between two entities?

(A) Unary

(B) Binary

“AtoZ Telugu News- Mobile App”


(C) Ternary

(D) Quaternary

Ans: B

Q.54 Which of the following operation is used if we are interested in only certain columns of a table?

(A) PROJECTION

(B) SELECTION

(C) UNION

(D) JOIN

Ans: A

Q.55 Which of the following is a valid SQL type?

(A) CHARACTER

(B) NUMERIC

(C) FLOAT

(D) All of the above

Ans: D

Q.56 The RDBMS terminology for a row is

(A) tuple.

(B) relation.

(C) attribute.

D) degree.

Ans: A

“AtoZ Telugu News- Mobile App”


Q.57 Which of the following operations need the participating relations to be union compatible?

(A) UNION

(B) INTERSECTION

(C) DIFFERENCEqq

(D) All of the above

Ans: D

Q.58 The full form of DDL is

(A Dynamic Data Language

(B) Detailed Data Language

(C) Data Definition Language

(D) Data Derivation Language

Ans: C

Q.59 Which of the following is an advantage of view?

(A) Data security

(B) Derived columns

(C) Hiding of complex queries

(D) All of the above

Ans: D

Q.60 Which of the following is a legal expression in SQL?

(A) SELECT NULL FROM EMPLOYEE;

(B) SELECT NAME FROM EMPLOYEE;

(C) SELECT NAME FROM EMPLOYEE WHERE SALARY = NULL;

“AtoZ Telugu News- Mobile App”


(D) None of the above

Ans: B

Q.61 The users who use the easy-to-use menu are called

(A) Sophisticated end users.

(B) Naïve users.

(C) Stand-alone users.

(D) Casual end users.

Ans: B

Q.62 Which database level is closest to the users?

(A) External

(B) Internal

(C) Physical

(D) Conceptual

Ans: A

Q.63 Which are the two ways in which entities can participate in a relationship?

(A) Passive and active

(B) Total and partial

(C) Simple and Complex

(D) All of the above

Ans: B

Q.64 The result of the UNION operation between R1 and R2 is a relation that includes

“AtoZ Telugu News- Mobile App”


(A) all the tuples of R1

(B) all the tuples of R2

(C) all the tuples of R1 and R2

(D) all the tuples of R1 and R2 which have common columns

Ans: D

Q.65 Which of the following is a comparison operator in SQL?

(A) =

(B) LIKE

(C) BETWEEN

(D) All of the above

Ans: D

Q.66 A set of possible data values is called

(A) attribute.

(B) degree.

(C) tuple.

(D) domain.

Ans: D

Q.67 Which of the operations constitute a basic set of operations for manipulating relational data?

(A) Predicate calculus

(B) Relational calculus

(C) Relational algebra

(D) None of the above

“AtoZ Telugu News- Mobile App”


Ans:C

Q.68 Which of the following is another name for the weak entity?

(A) Child

(B) Owner

(C) Dominant

(D) All of the above

Ans: A

Q.69 Which of the following database object does not physically exist?

(A) base table (B) index

(C) view

(D) none of the above

Ans: C

Q.70 NULL is

(A) the same as 0 for integer

(B) the same as blank for character

(C) the same as 0 for integer and blank for character

(D) not a value

Ans: D

Q.71 Which of the following is a record based logical model?

(A) Network Model

(B) Object-oriented model

“AtoZ Telugu News- Mobile App”


(C) E-R Model

(D) None of these

Ans: A

Q.72 A data dictionary is a special file that contains:

(A) The name of all fields in all files.

(B) The width of all fields in all files.

(C) The data type of all fields in all files.

(D) All of the above.

Ans: D

Q.73 A file manipulation command that extracts some of the records from a file is called

(A) SELECT

(B) PROJECT

(C) JOIN

(D) PRODUCT

Ans: A

Q.74 The physical location of a record is determined by a mathematical formula that transforms a file
key into a record location is:

(A) B-Tree File

(B) Hashed File

(C) Indexed File

(D) Sequential file.

Ans: B

“AtoZ Telugu News- Mobile App”


Q.75 Using Relational Algebra the query that finds customers, who have a balance of over 1000 is

(A) PCustomer_name(s balance >1000(Deposit))

(B) s Customer_name(Pbalance >1000(Deposit))

(C) PCustomer_name(s balance >1000(Borrow))

(D) s Customer_name(Pbalance >1000(Borrow))

Ans: A

Q.76 A primary key is combined with a foreign key creates

(A) Parent-Child relationship between the tables that connect them.

(B) Many to many relationships between the tables that connect them.

(C) Network model between the tables that connect them.

(D) None of the above.

Ans: A

Q.77 In E-R Diagram derived attribute is represented by

(A) Ellipse

(B) Dashed ellipse

(C) Rectangle

(D) Triangle

Ans: B

Q.78 Cross Product is a:

(A) Unary Operator

(B) Ternary Operator

(C) Binary Operator

“AtoZ Telugu News- Mobile App”


(D) Not an operator

Ans: C

Q.79 An instance of relational schema R (A, B, C) has distinct values of A, including NULL values. Which
one of the following is true?

(A) A is a candidate key

(B) A is not a candidate key

(C) A is a primary Key

(D) Both (A) and (C)

Ans: B

Q.80 Consider the join of a relation R with relation S. If R has m tuples and S has n tuples, then the
maximum size of join is:

(A) mn

(B) m+n

(C) (m+n)/2

(D) 2(m+n)

Ans: A.

Set:- 5 MCQ on DBMS.

Q.81 The natural join is equal to:

(A) Cartesian Product

(B) Combination of Union and Cartesian product

(C) Combination of selection and Cartesian product

(D) Combination of projection and Cartesian product

Ans: D

“AtoZ Telugu News- Mobile App”


Q.82 Which one of the following is not true for a view:

(A) A view is derived from other tables.

(B) A view is a virtual table.

(C) A view definition is permanently stored as part of the database.

(D) The view never contains derived columns.

Ans: C

Q.83 A primary key, if combined with a foreign key, creates

(A) Parent-Child relationship between the tables that connect them.

(B) Many to many relationships between the tables that connect them.

(C) Network model between the tables that connect them.

(D) None of the above.

Ans: A

Q.84 In E-R Diagram relationship type is represented by

(A) Ellipse

(B) Dashed ellipse

(C) Rectangle

(D) Diamond

Ans: D

Q.85 Hierarchical model is also called

(A) Tree structure

(B) Plex Structure

“AtoZ Telugu News- Mobile App”


(C) Normalise Structure

(D) Table Structure

Ans: A

Q.86 To delete a particular column in a relation the command used is:

(A) UPDATE

(B) DROP

(C) ALTER

(D) DELETE

Ans: C

Q.87 The ______ operator is used to compare a value to a list of literals values that have been specified.

(A) BETWEEN

(B) ANY

(C) IN

(D) ALL

Ans: A

Q.88 A logical schema

A) is the entire database

B) is a standard way of organising information into an accessible part

C) describe how data is actually stored on disk

D) none of these

Ans: D

“AtoZ Telugu News- Mobile App”


Q.89 A B-tree of order m has maximum of _____________ children

(A) m

(B) m+1

(C) m-1

(D) m/2

Ans: A

Q.90 _____________ function divides one numeric expression by another and returns the remainder.

(A) POWER

(B) MOD

(C) ROUND

(D) REMAINDER

Ans: B

Q.91 A data manipulation command the combines the records from one or more tables is called

(A) SELECT

(B) PROJECT

(C) JOIN (D) PRODUCT

Ans: C

Q.92 In E-R diagram generalisation is represented by

(A) Ellipse

(B) Dashed ellipse

(C) Rectangle

(D) Triangle

“AtoZ Telugu News- Mobile App”


Ans: D

Q.93 _________ is a virtual table that draws its data from the result of an SQL SELECT statement.

(A) View

(B) Synonym

(C) Sequence

(D) TrAnsaction

Ans: A

Q.94 The method of access which uses key transformation is known as

(A) Direct

(B) Hash

(C) Random

(D) Sequential

Ans: B

Q.95 A table joined with itself is called

(A) Join

(B) Self Join

(C) Outer Join

(D) Equi Join

Ans: B

Q.96 _________ data type can store unstructured data

(A) RAW

“AtoZ Telugu News- Mobile App”


(B) CHAR

(C) NUMERIC

(D) VARCHAR

Ans: A

OHTER MULTIPLE CHOICE BITS ON DBMS TOPICS:

Relational Database and Database Schema

1. A relational database consists of a collection of


a) Tables
b) Fields
c) Records
d) Keys
Answer: a
Explanation: Fields are the column of the relation or tables. Records are each row in a
relation. Keys are the constraints in a relation.

2. A ________ in a table represents a relationship among a set of values.


a) Column
b) Key
c) Row
d) Entry
View Answer
Answer: c
Explanation: Column has only one set of values. Keys are constraints and row is one
whole set of attributes. Entry is just a piece of data.

3. The term _______ is used to refer to a row.


a) Attribute
b) Tuple
c) Field
d) Instance
View Answer
Answer: b
Explanation: Tuple is one entry of the relation with several attributes which are fields.

4. The term attribute refers to a ___________ of a table.


a) Record
b) Column

“AtoZ Telugu News- Mobile App”


c) Tuple
d) Key
View Answer
Answer: b
Explanation: Attribute is a specific domain in the relation which has entries of all tuples.

5. For each attribute of a relation, there is a set of permitted values, called the
________ of that attribute.
a) Domain
b) Relation
c) Set
d) Schema
View Answer
Answer: a
Explanation: The values of the attribute should be present in the domain. Domain is a
set of values permitted.

6. Database __________ which is the logical design of the database, and the database
_______ which is a snapshot of the data in the database at a given instant in time.
a) Instance, Schema
b) Relation, Schema
c) Relation, Domain
d) Schema, Instance
View Answer
Answer: d
Explanation: Instance is an instance of time and schema is a representation.

7. Course(course_id,sec_id,semester)
Here the course_id,sec_id and semester are __________ and course is a _________
a) Relations, Attribute
b) Attributes, Relation
c) Tuple, Relation
d) Tuple, Attributes
View Answer
Answer: b
Explanation: The relation course has a set of attributes course_id,sec_id,semester .
advertisement
8. Department (dept name, building, budget) and Employee (employee_id, name, dept
name, salary)
Here the dept_name attribute appears in both the relations. Here using common
attributes in relation schema is one way of relating ___________ relations.
a) Attributes of common
b) Tuple of common

“AtoZ Telugu News- Mobile App”


c) Tuple of distinct
d) Attributes of distinct
View Answer
Answer: c
Explanation: Here the relations are connected by the common attributes.

9. A domain is atomic if elements of the domain are considered to be ____________


units.
a) Different
b) Indivisbile
c) Constant
d) Divisible
View Answer
Answer: b
Explanation: None.

10. The tuples of the relations can be of ________ order.


a) Any
b) Same
c) Sorted
d) Constant
View Answer
Answer: a
Explanation: The values only count. The order of the tuples does not matter.

Database Questions and Answers – Keys


1. Which one of the following is a set of one or more attributes taken collectively to
uniquely identify a record?
a) Candidate key
b) Sub key
c) Super key
d) Foreign key

Answer: c
Explanation: Super key is the superset of all the keys in a relation.

2. Consider attributes ID, CITY and NAME. Which one of this can be considered as a
super key?
a) NAME
b) ID
c) CITY

“AtoZ Telugu News- Mobile App”


d) CITY, ID
View Answer
Answer: b
Explanation: Here the id is the only attribute which can be taken as a key. Other
attributes are not uniquely identified.

3. The subset of a super key is a candidate key under what condition?


a) No proper subset is a super key
b) All subsets are super keys
c) Subset is a super key
d) Each subset is a super key
View Answer
Answer: a
Explanation: The subset of a set cannot be the same set. Candidate key is a set from a
super key which cannot be the whole of the super set.

4. A _____ is a property of the entire relation, rather than of the individual tuples in
which each tuple is unique.
a) Rows
b) Key
c) Attribute
d) Fields
View Answer
Answer: b
Explanation: Key is the constraint which specifies uniqueness.

5. Which one of the following attribute can be taken as a primary key?


a) Name
b) Street
c) Id
d) Department
View Answer
Answer: c
Explanation: The attributes name, street and department can repeat for some tuples.
But the id attribute has to be unique. So it forms a primary key.

6. Which one of the following cannot be taken as a primary key?


a) Id
b) Register number
c) Dept_id
d) Street
View Answer

“AtoZ Telugu News- Mobile App”


Answer: d
Explanation: Street is the only attribute which can occur more than once.

7. An attribute in a relation is a foreign key if the _______ key from one relation is used
as an attribute in that relation.
a) Candidate
b) Primary
c) Super
d) Sub
View Answer
Answer: b
Explanation: The primary key has to be referred in the other relation to form a foreign
key in that relation.
advertisement
8. The relation with the attribute which is the primary key is referenced in another
relation. The relation which has the attribute as a primary key is called
a) Referential relation
b) Referencing relation
c) Referenced relation
d) Referred relation
View Answer
Answer: b
Explanation: None.

9. The ______ is the one in which the primary key of one relation is used as a normal
attribute in another relation.
a) Referential relation
b) Referencing relation
c) Referenced relation
d) Referred relation
View Answer
Answer: c
Explanation: None.

10. A _________ integrity constraint requires that the values appearing in specified
attributes of any tuple in the referencing relation also appear in specified attributes of at
least one tuple in the referenced relation.
a) Referential
b) Referencing
c) Specific
d) Primary
View Answer

“AtoZ Telugu News- Mobile App”


Answer: a
Explanation: A relation, say r1, may include among its attributes the primary key of
another relation, say r2. This attribute is called a foreign key from r1, referencing r2. The
relation r1 is also called the referencing relation of the foreign key dependency, and r2
is called the referenced relation of the foreign key.

Database Questions and Answers – Set Operations

1. The union operation is represented by


a) ∩
b) U
c) –
d) *

Answer: b
Explanation: Union operator combines the relations.

2. The intersection operator is used to get the _____ tuples.


a) Different
b) Common
c) All
d) Repeating

Answer: b
Explanation: Intersection operator ignores unique tuples and takes only common ones.

3. The union operation automatically __________ unlike the select clause.


a) Adds tuples
b) Eliminates unique tuples
c) Adds common tuples
d) Eliminates duplicate
View Answer

“AtoZ Telugu News- Mobile App”


Answer: d
Explanation: None.

4. If we want to retain all duplicates, we must write ________ in place of union.


a) Union all
b) Union some
c) Intersect all
d) Intersect some
View Answer
Answer: a
Explanation: Union all will combine all the tuples including duplicates.
5.
(SELECT course id
FROM SECTION
WHERE semester = ’Fall’ AND YEAR= 2009)
EXCEPT
(SELECT course id
FROM SECTION
WHERE semester = ’Spring’ AND YEAR= 2010);
This query displays
a) Only tuples from second part
b) Only tuples from the first part which has the tuples from second part
c) Tuples from both the parts
d) Tuples from first part which do not have second part
View Answer
Answer: d
Explanation: Except keyword is used to ignore the values.

6. For like predicate which of the following is true.


i) % matches zero OF more characters.
ii) _ matches exactly one CHARACTER.
a) i-only
b) ii-only
c) i & ii
d) None of the mentioned
View Answer
Answer: a
Explanation:% is used with like and _ is used to fill in the character.

7. The number of attributes in relation is called as its


a) Cardinality
b) Degree

“AtoZ Telugu News- Mobile App”


c) Tuples
d) Entity
View Answer
Answer: b
Explanation: None.

8. _____ clause is an additional filter that is applied to the result.


a) Select
b) Group-by
c) Having
d) Order by
View Answer
Answer: c
Explanation: Having is used to provide additional aggregate filtration to the query.

9. _________ joins are SQL server default


a) Outer
b) Inner
c) Equi
d) None of the mentioned
View Answer
Answer: b
Explanation: It is optional to give the inner keyword with the join as it is default.

10. The _____________ is essentially used to search for patterns in target string.
a) Like Predicate
b) Null Predicate
c) In Predicate
d) Out Predicate
View Answer
Answer: a
Explanation: Like predicate matches the string in the given pattern.

DDL –DML Command

1. Which is the subset of SQL commands used to manipulate Oracle Database structures,
including tables?

a) Data Definition Language(DDL)

“AtoZ Telugu News- Mobile App”


b) Data Manipulation Language(DML)

c) DML and DDL

d) None of the Mentioned

Answer: a

Explanation: The DDL is used to manage table and index structure.CREATE, ALTER, RENAME,
DROP and TRUNCATE statements are the names of few data definition elements.

2. Which of the following is/are the DDL statements?

A) Create

B) Drop

C) Alter

D) All of the Mentioned

Answer: d

Explanation: All the mentioned commands are the part of DDL statements.

3. In SQL, which command(s) is(are) used to change a table’s storage characteristics?

a) ALTER TABLE

b) MODIFY TABLE

c) CHANGE TABLE

d) All of the Mentioned

Answer: a

Explanation: To change the structure of the table we use ALTER TABLE Syntax:

ALTER TABLE “table_name” ADD “column_name” datatype

OR

ALTER TABLE “table_name” DROP COLUMN “column_name”.

“AtoZ Telugu News- Mobile App”


4. In SQL, which of the following is not a data definition language commands?

a) RENAME

b) REVOKE

c) GRANT

d) UPDATE

Answer: a

Explanation: With RENAME statement you can rename a table.RENAME, REVOKE and GRANT
are DDL commands and UPDATE is DML command.

5. ________clause is an additional filter that is applied to the result.

a) Select

b) Group-by

c) Having

d) Order by

View Answer

Answer: c

Explanation: The HAVING clause was added to SQL because the WHERE keyword could not be
used with aggregate functions.

advertisement

6. ___________ defines rules regarding the values allowed in columns and is the standard
mechanism for enforcing database integrity.

a) Column

b) Constraint

c) Index

“AtoZ Telugu News- Mobile App”


d) Trigger

View Answer

Answer: b

Explanation: SQL constraints are used to specify rules for the data in a table.If there is any
violation between the constraint and the data action, the action is aborted by the constraint.

7. SQL has how many main commands for DDL:

a) 1

b) 2

c) 3

d) 4

Answer: c

Explanation: Create, Delete, Alter these are 3 main command.

8. Which command defines its columns, integrity constraint in create table:

a) Create command

b) Drop table command

c) Alter table command

d) All of the Mentioned

Answer: a

Explanation: The CREATE TABLE statement is used to create a table in a database.Tables are
organized into rows and columns.

9. Which command is used for removing a table and all its data from the database:

a) Create command

“AtoZ Telugu News- Mobile App”


b) Drop table command

c) Alter table command

d) All of the Mentioned

Answer: b

Explanation: The DROP INDEX statement is used to delete an index in a table.

10. Which command allows the removal of all rows from a table but flushes a table more
efficiently since no rollback information is retained:

a) TRUNCATE command

b) Create command

c) Drop table command

d) Alter table command

Answer: a

Explanation: The SQL TRUNCATE TABLE command is used to delete complete data from an
existing table.You can also use DROP TABLE command to delete complete table but it would
remove complete table structure form the database and you would need to re-create this table
once again if you wish you store some data.

DML Command…………………………………….

1. The language used application programs to request data from the DBMS is referred to as
__________

a) DML

b) DDL

c) Query language

d) All of the Mentioned

“AtoZ Telugu News- Mobile App”


Answer: a

Explanation: Data Manipulation Language (DML) statements are used for managing data in
database. DML commands are not auto-committed. It means changes made by DML command
are not permanent to database, it can be rolled back.

2. In SQL, which of the following is not a data Manipulation Language Commands?

a) Delete

b) Truncate

c) Update

d) Create

Answer: b

Explanation: The SQL TRUNCATE TABLE command is used to delete complete data from an
existing table.You can also use DROP TABLE command to delete complete table but it would
remove complete table structure form the database and you would need to re-create this table
once again if you wish you store some data.

3. Which of the following is not a type of SQL statement?

a) Data Manipulation Language (DML)

b) Data Definition Language (DDL)

c) Data Control Language (DCL)

d) Data Communication Language (DCL)

Answer: d

Explanation: Data Communication Language (DCL) is not a type of SQL statement.

4. Which of the following is not included in DML (Data Manipulation Language)

a) INSERT

b) UPDATE

c) DELETE

“AtoZ Telugu News- Mobile App”


d) CREATE

Answer: d

Explanation: The CREATE TABLE statement is used to create a table in a database.Tables are
organized into rows and columns; and each table must have a name.

5. TRUNCATE statement in SQL is a –

a) DML statement

b) DDL statement

c) DCL statement

d) TCL statement

Answer: b

Explanation: The SQL TRUNCATE TABLE command is used to delete complete data from an
existing table.so its a DDL statement.

6. In SQL, which command is used to add new rows to a table?

a) Alter Table

b) Add row

c) Insert

d) Append

Answer: c

Explanation: Alter Table will change the structure of the table.

7. Stack is also called __________

a) First In First Out (LIFO)

b) Last In First Out (FIFO)

c) First In Last Out (FILO)

d) First Come First Served (FCFS)

“AtoZ Telugu News- Mobile App”


Answer: c

Explanation: Stack works on the First In Last Out.

8. A table that displays data redundancies yields ____________ anomalies.

a) Update

b) Insertion

c) Deletion

d) All of the Mentioned

Answer: d

Explanation: Table that displays data redundancies yields update, insertion, deletion anomalies.

9. A type of query that is placed within a WHERE or HAVING clause of another query is called

a) Master query

b) Sub query

c) Super query

d) Multi-query

Answer: b

Explanation: Sub-query that is placed within a WHERE or HAVING clause of another query.

10. The three language components of a database management system (DBMS) like DDL, DCL,
DML.

Two different types of people (users and practitioners) are concerned with them. Which of
them do users of a DBMS usually deal with?

a) DDL

b) DML

c) DDL and DCL

d) DCL and DML

“AtoZ Telugu News- Mobile App”


Answer: b

Explanation: The users and practitioners are concerned with only Data manipulation language
component of DBMS.

This set of Oracle Database Multiple Choice Questions & Answers (MCQs) focuses on “DCL
,TCL Command”.

1. DCL stands for :

a) Data Control Language

b) Data Console Language

c) Data Console Level

d) Data Control Level

Answer: a

Explanation: DCL stands for Data Control Language.

2. TCL stands for:

a) Transaction control languages

b) Transaction command languages

c) Transaction connect languages

d) None of the Mentioned

Answer: a

Explanation: TCL for Transaction control languages.

3. _________commands in SQL allow controlling access to data within database.

a) Database

“AtoZ Telugu News- Mobile App”


b) Data

c) Data control

d) All of the Mentioned

Answer: c

Explanation: Data control is used for the controlling the access to database.

4. In an SQL statement, which of the following parts states the conditions for row selection?

a) Where

b) From

c) Order By

d) Group By

Answer: a

Explanation: In an SQL statement where clause states the conditions for row selection.

5. A transaction completes its execution is said to be

a) Committed

b) Aborted

c) Rolled back

d) Failed

Answer: a

Explanation: A transaction the completes its execution is said to be Committed.

6. Which of the following keyword is used with Data Control Language (DCL) statements?

“AtoZ Telugu News- Mobile App”


a) SELECT

b) INSERT

c) DELETE

d) GRANT

Answer: d

Explanation: GRANT is the keyword which is used with Data Control Language statements.

7. DCL Provides Commands To Perform Actions Like _____________

a) Change The Structure Of Tables

b) Insert, Update Or Delete Records And Data Values

c) Authorizing Access And Other Control Over Database

d) None of the Mentioned

Answer: c

Explanation: DCL is used to perform the action like authorization, Access and other control over
database.

8. The Database Language That Allows You To Access Or Maintain Data In A Database

a) DCL

b) DML

c) DDL

d) All of the Mentioned

Answer: a

Explanation: DCL command like Grant and Revoke is used for to give access on the database.

9. A Database Language Concerned With The Definition Of The Whole Database Structure And
Schema Is ________

a) DCL

“AtoZ Telugu News- Mobile App”


b) DML

c) DDL

d) All of the Mentioned

Answer: c

Explanation: Data Definition Language is used for the to define the data structure of the Table.

10. To obtain the structure of an Oracle table, the command to use is:

a) STRUCTURE [TableName].

b) DESCRIBE [TableName].

c) DESCRIBE STRUCTURE [TableName].

d) DESC TABLE [TableName].

Answer: b

Explanation: DESCRIBE command is used to get the structure of the Oracle Table.

This is prepared By:


AtoZ Telugu News – Mobile App
Short News – Study- photos
Gmail: atoztelugunews566@gmail.com
App link: https://play.google.com/store/apps/details?id=com.app.atoznews

Please Download “AtoZ Telugu News” App in Playstore For Daily Study Updates. Thank you.

…………………………………..THE END………………………………………………..

“AtoZ Telugu News- Mobile App”

You might also like