DBMS MCQ SET 8


 1. In the relational modes, cardinality is termed as:

(A)  Number of                                      (B)    Number of attributes.

(C)   Number of tables.                         (D)    Number of constraints.

Ans: A 


2 .  Relational calculus is a

(A)Procedural                                       (B)    Non- Procedural language.

(C)   Data definition language.              (D)   High level language.

Ans: B


3. The view of total database content is

(A)Conceptual                                   (B)  Internal view.

(C) External view.                                (D)  Physical View.

Ans: A


4. Cartesian product in relational algebra is

(A) Unary                                       (B)  a Binary operator.

(C)  a Ternary operator.                         (D)  not defined.

Ans: B Cartesian product in relational algebra is a binary operator. (It requires two operands. e.g., P X Q)


5. DML is provided for

Description of logical structure of

B Addition of new structures in the database

C Manipulation & processing of

D Definition of physical structure of database

Ans: C   DML is provided for manipulation & processing of database.

(Data stored in the database is processed or manipulated using data manipulation language commands as its name)


Q.6 ‘AS’ clause is used in SQL for  
  (A)    Selection operation. (B)  Rename operation.
  (C)    Join operation. (D)  Projection operation.

Ans: B   ‘AS’ clause is used in SQL for rename operation. (e.g., SELECT ENO AS EMPLOYEE_NO FROM EMP)


7. ODBC stands for

  • Object Database
  • Oral Database
  • Oracle Database
  • Open Database CONNECTIVITY

8. Architecture of the database can be viewed as

(A)    two levels.

(C)    three levels.

(B)

(D)

four levels.

one level.

Ans: C    
 

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

  (A) Tuples.

(C) Tables.

(B)

(D)

Attributes

Rows.

  Ans: C    
Q.10 The database schema is written in

(A)    HLL

 

(B)

 

DML

  (C)    DDL (D) DCL
  Ans: C    
         

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

(A) physical                                          (B)    logical level.

(C) conceptual level                             (D)    view level.

Ans: D


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

(A) strong entity                                 (B)  weak entity set.

(C)  simple entity set.                             (D)  primary entity set.

Ans: B


13. In a Hierarchical model records are organized as

(A) ARRAY                                             (B) List.

(C) Links.                                              (D)    Tree.

Ans: D


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

(A) circle                                          (B) square.

(C)    ellipse.                                           (D) triangle.

Ans: C


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

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

(A) DML                                               (B) DDL

(C)   VDL                                              (D) SDL

Ans: A


 17. A logical schema

  • is the entire
  • is a standard way of organizing information into accessible
  • describes how data is actually stored on
  • both (A) and (C)

18. Related fields in a database are grouped to form a

(A)data file.                                           (B)    data

(C) menu.                                              (D)    bank.

Ans: B Related data fields in a database are grouped to form a data record. (A record is a collection of related fields)

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

(A) users                                                   (B)  separate files.

(C) database.                                         (D)  database administrator.

Ans: A


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

(A) Rbase                                                (B)    SQL.

(C)   DBase.                                           (D)    4GL.

Ans: B


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

(a) users                                             (B)    relational model.

(C)    schema.                                          (D)   sub schema.

Ans: D


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

(a) rectangle                                      (B)    ellipse.

(C)     diamond box.                               (D)    circle.

Ans: A


 

  • A report generator is used to
    • update (B)    print files on paper.

(C)    data entry.                                     (D)   delete files.

Ans: B

 

  • The property / properties of a database is / are :
    • It is an integrated collection of logically related
    • It consolidates separate files into a common pool of data
    • Data stored in a database is independent of the application programs using
    • All of the

Ans: D

 

  • The DBMS language component which can be embedded in a program is
    • The data definition language (DDL).
    • The data manipulation language (DML).
    • The database administrator (DBA).
    • A query

Ans: B

 

  • A relational database developer refers to a record as
    • a (B)    a relation.

(C) a tuple.                                            (D)    an attribute.

Ans: C

 

  • The relational model feature is that there
  • is no need for primary key
  • is much more data independence than some other database
  • are explicit relationships among
  • are tables with many

Ans: B

 

  • Conceptual design
    • is a documentation
    • needs data volume and processing frequencies to determine the size of the
    • involves modelling independent of the
    • is designing the relational

Ans:C

 

  • The method in which records are physically stored in a specified order according to a key field in each record is
    • (B) direct.

(C)    sequential.                                     (D)  all of the above.

Ans: A  A method in which records are physically stored in a specified order according   to a key field in each record is hash.

(In hash method, a hash function is performed on the key value to determine the unique physical address of the record to store or retrieve)

Q.31 A subschema expresses  
  (A)    the logical view. (B)    the physical view.
  (C)    the external view. (D)    all of the above.

Ans: C   A subschema expresses the external view.

(External schemas are called also called as subschemas)

  • Count function in SQL returns the number of
    • (B)    distinct values.

(C)    groups.                                          (D)    columns.

Ans: A   Count function in SQL returns the number of values.

(Count function counts all the not null values in the specific column. If we want to count only distinct values than the DISTINCT keyword is also to be used)

  • Which one of the following statements is false?
    • The data dictionary is normally maintained by the database administrator.
    • Data elements in the database can be modified by changing the data
    • The data dictionary contains the name and description of each data
    • The data dictionary is a tool used exclusively by the database

Ans: B

 

  • An advantage of the database management approach is
    • data is dependent on
    • data redundancy
    • data is integrated and can be accessed by multiple
    • none of the

Ans: C

 

  • A DBMS query language is designed to
    • support end users who use English-like
    • support in the development of complex applications
    • specify the structure of a
    • all of the

Ans: D

 

  • Transaction processing is associated with everything below except
    • producing detail, summary, or exception
    • recording a business
    • confirming an action or triggering a
    • maintaining

Ans: C

 

  • It is possible to define a schema completely using
    • VDL and (B)  DDL and DML.

(C)  SDL and DDL.                               (D)  VDL and DML.

Ans: B

 

  • The method of access which uses key transformation is known as
    • (B) hash.

(C)    random.                                         (D)  sequential.

Ans: B

 

  • Data independence means
    • data is defined separately and not included in
    • programs are not dependent on the physical attributes of
    • programs are not dependent on the logical attributes of
    • both (B) and (C).

Ans: D   both (B) and (C)

  • The statement in SQL which allows to change the definition of a table is
    • (B)    Update.

(C)    Create.                                           (D)    select.

Ans: A

6

 

  • E-R model uses this symbol to represent weak entity set ?
    • Dotted
    • Diamond
    • Doubly outlined rectangle
    • None of these

Ans: C

 

  • SET concept is used in :
    • Network Model
    • Hierarchical Model
    • Relational Model
    • None of these

Ans: A

 

  • Relational Algebra is
    • Data Definition Language .
    • Meta Language
    • Procedural query Language
    • None of the above

Ans: C

 

  • Key to represent relationship between tables is called
    • Primary key (B)    Secondary Key

(C)   Foreign Key                                  (D)   None of these

Ans: C

 

  • produces the relation that has attributes of R1 and R2
    • Cartesian product (B) Difference

(C)    Intersection                                   (D) Product

Ans: A

 

  • The file organization that provides very fast access to any arbitrary record of a file is
    • Ordered file (B)    Unordered file

(C)    Hashed file                                    (D)    B-tree

Ans: C

 

  • DBMS helps achieve
    • Data independence (B) Centralized control of data

(C)    Neither (A) nor (B)                       (D)    both (A) and (B)

Ans: D

 

  • Which of the following are the properties of entities?
    • Groups (B) Table

(C)    Attributes                                      (D)  Switchboards

Ans:       C

 

  • In a relation
    • Ordering of rows is immaterial
    • No two rows are identical
    • (A) and (B) both are true
    • None of these. Ans: C
  • Which of the following is correct:
    • a SQL query automatically eliminates
    • SQL permits attribute names to be repeated in the same
    • a SQL query will not work if there are no indexes on the relations
    • None of these

Ans: D

 

  • It is better to use files than a DBMS when there are
    • Stringent real-time
    • Multiple users wish to access the
    • Complex relationships among
    • All of the

Ans: B

 

  • The conceptual model is
    • dependent on
    • dependent on
    • dependent on both hardware and software .
    • independent of both hardware and

Ans: D

 

  • What is a relationship called when it is maintained between two entities?
    • Unary (B) Binary

(C) Ternary                                            (D) Quaternary

Ans: B

 

  • Which of the following operation is used if we are interested in only certain columns of a table?
    • PROJECTION (B) SELECTION

(C)    UNION                                         (D) JOIN

Ans: A

 

  • Which of the following is a valid SQL type?
    • CHARACTER (B) NUMERIC

(C) FLOAT                                           (D)  All of the above

Ans: D

 

  • The RDBMS terminology for a row is
    • (B) relation.

(C) attribute.                                         (D) degree.

Ans: A

 

  • Which of the following operations need the participating relations to be union compatible?
  (A)    UNION

(C)    DIFFERENCE

(B)

(D)

INTERSECTION

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

 

  • Which of the following is an advantage of view?
    • Data security (B) Derived columns

(C)    Hiding of complex queries            (D) All of the above

Ans: D

 

  • Which of the following is a legal expression in SQL?
    • SELECT NULL FROM EMPLOYEE;
    • SELECT NAME FROM EMPLOYEE;
    • SELECT NAME FROM EMPLOYEE WHERE SALARY = NULL;
    • None of the above

Ans: B

 

  • The users who use easy-to-use menu are called
    • Sophisticated end (B)  Naïve users.

(C)    Stand-alone users.                         (D)    Casual end users.

Ans: B

 

  • Which database level is closest to the users?
    • External (B) Internal

(C)    Physical                                         (D)    Conceptual

Ans: A

 

  • Which are the two ways in which entities can participate in a relationship?
    • Passive and active (B)  Total and partial

(C)    Simple and Complex                     (D)    All of the above

Ans: B

 

  • The result of the UNION operation between R1 and R2 is a relation that includes
    • all the tuples of R1
    • all the tuples of R2
    • all the tuples of R1 and R2
    • all the tuples of R1 and R2 which have common columns

Ans: D

 

  • Which of the following is a comparison operator in SQL?

(A)   =                                                    (B) LIKE

(C) BETWEEN                                    (D)   All of the above

Ans: D

 

  • A set of possible data values is called
    • (B) degree.

(C) tuple.                                               (D) domain.

Ans: D

 

  • Which of the operations constitute a basic set of operations for manipulating relational data?
    • Predicate calculus (B)  Relational calculus

(C)   Relational algebra                          (D)  None of the above

Ans:C

 

  • Which of the following is another name for weak entity?
    • Child (B) Owner

(C)    Dominant                                      (D) All of the above

Ans: A

 

  • Which of the following database object does not physically exist?
    • base table (B)    index

(C)    view                                              (D)    none of the above

Ans: C

 

  • NULL is
    • the same as 0 for integer
    • the same as blank for character
    • the same as 0 for integer and blank for character

10

 

  • not a value

Ans: D

 

  • Which of the following is record based logical model?
    • Network Model (B)  Object oriented model

(C)   E-R Model                                    (D)  None of these

Ans: A

 

  • A data dictionary is a special file that contains:
    • The name of all fields in all
    • The width of all fields in all
    • The data type of all fields in all
    • All of the

Ans: D

 

  • A file manipulation command that extracts some of the records from a file is called
    • SELECT (B) PROJECT

(C)    JOIN                                             (D) PRODUCT

Ans: A

 

  • The physical location of a record is determined by a mathematical formula that transforms a file key into a record location is :
    • B-Tree File (B) Hashed File

(C) Indexed File                                   (D) Sequential file.

Ans: B

 

  • Using Relational Algebra the query that finds customers, who have a balance of over 1000 is
    • PCustomer_name( s balance >1000(Deposit))
    • sCustomer_name( P balance >1000(Deposit))
    • PCustomer_name( s balance >1000(Borrow))
    • sCustomer_name( P balance >1000(Borrow))

Ans: A

 

  • A primary key is combined with a foreign key creates
    • Parent-Child relation ship between the tables that connect
    • Many to many relationship between the tables that connect
    • Network model between the tables that connect
    • None of the

Ans: A

 

  • In E-R Diagram derived attribute are represented by
  • Ellipse (B)  Dashed ellipse

(C) Rectangle                                        (D) Triangle

Ans  B

 

  • Cross Product is a:
    • Unary Operator (B)  Ternary Operator

(C) Binary Operator                              (D)  Not an operator

Ans: C

 

  • 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 is a candidate key (B)    A is not a candidate key

(C)  A is a primary Key                         (D)    Both (A) and (C)

Ans: B

 

  • 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:
    • mn (B) m+n

(C)    (m+n)/2                                          (D) 2(m+n)

Ans: A

 

  • The natural join is equal to :
    • Cartesian Product
    • Combination of Union and Cartesian product
    • Combination of selection and Cartesian product
    • Combination of projection and Cartesian product

Ans: D

 

  • Which one of the following is not true for a view:
    • View is derived from other
    • View is a virtual
    • A view definition is permanently stored as part of the
    • View never contains derived

Ans: C

 

  • A primary key if combined with a foreign key creates
    • Parent-Child relationship between the tables that connect
    • Many to many relationship between the tables that connect
    • Network model between the tables that connect
    • None of the

Ans: A

 

  • In E-R Diagram relationship type is represented by
  (A)    Ellipse

(C) Rectangle

(B)

(D)

Dashed ellipse

Diamond

Ans: D    
Q.85 Hierarchical model is also called

(A)    Tree structure

 

(B)

 

Plex Structure

  (C)    Normalize Structure (D) Table Structure

Ans: A

 

  • To delete a particular column in a relation the command used is:
    • UPDATE (B)    DROP

(C)    ALTER                                         (D)    DELETE

Ans: C

 

  • The operator is used to compare a value to a list of literals values that have been specified.
    • BETWEEN (B) ANY

(C) IN                                                   (D) ALL

Ans: A

 

  • A logical schema
  1. is the entire database
  2. is a standard way of organizing information into a accessible part
  3. describe how data is actually stored on disk
  4. none of these

Ans: D

 

  • A B-tree of order m has maximum of children
    • m (B)    m+1

(C)    m-1                                                (D)    m/2

Ans: A

 

  •  function  divides  one  numeric  expression  by  another  and returns the remainder.
    • POWER (B)    MOD

(C)    ROUND                                       (D)    REMAINDER

Ans: B

 

  • A data manipulation command the combines the records from one or more tables is called
    • SELECT (B)    PROJECT

(C)    JOIN                                             (D)    PRODUCT

Ans: C

 

  • In E-R diagram generalization is represented by
    • Ellipse (B)    Dashed ellipse

(C)   Rectangle                                      (D)    Triangle

Ans: D

 

  • is a virtual table that draws its data from the result of an SQL SELECT
    • View (B)    Synonym

(C)    Sequence                                       (D)    Transaction

Ans: A

 

  • The method of access which uses key transformation is known as
    • Direct (B)    Hash

(C) Random                                           (D)    Sequential

Ans: B

 

  • A table joined with itself is called
    • Join (B) Self Join

(C) Outer Join                                        (D) Equi Join

Ans: B

 

  • data type can store unstructured data
    • RAW (B)    CHAR

(C)    NUMERIC                                   (D)    VARCHAR

Ans: A

 

  • Which two files are used during operation of the DBMS
    • Query languages and utilities
    • DML and query language
    • Data dictionary and transaction log
    • Data dictionary and query language

Ans: C

Leave a comment