0% found this document useful (0 votes)
75 views64 pages

DBMS Questions Answers

Uploaded by

jaspreet12321
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views64 pages

DBMS Questions Answers

Uploaded by

jaspreet12321
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 64

c 





 c
  
 

 
   


c  c  

       
   

        
     
 
  
 
  



c  
 


  
  
  
   
   
  


c   

     
    
 
   
  
 
  
 


c   

   
   
    
     c 
   
   
 
  



c  

    
  
  
 




c   

c  
    

     c  
 



   
 
   


c 
 

  

  
   
 
  

    



c   

!   
   


c  

        c
 



c  
         
 
   


c 
 
   c   
  



c   
  

    
      


c    
     
     
 c         
"   


c     
     c 
  c    

c 



c     

 
# 
     

  

  c         
    
   

 


$ 
   c       
      

  
       

 
 c 
 

%   
      c        
   c  c 
 
      
   



c 
  
c
     
 

&'#     ($$)'
*' 
    
  
($+)'
,'    ($%)'


c   

$ 
    c  
    $$)


-       

#  
  $$)
 
c         
  
    
 
     
 




- $+) 

!$+)    
 
    
  
c  
&'  $+)   c 
 c 
*'   $+)   c 
c    c 


c  

   
 


c  
    $+)   
  



c   $.+/ 
       
       


c /0) 
 (' &123.+/0)
c  
  


c   /0) 
   
 
 
 c 

    /0)


c/0)   
/0) c


c   
/0)       
 


c  
 c      
   


c   
  
  


c 
     
4
  


     c  
 
 /0)  
 

   c


c  

      


      
!)#54
 
 cc 
 
  


c c 
    /0)  

  c


c  
 

 c    



c   
 

   
 
  
 

     




c   
 

   
 
   
  67
$



c .%86 
.    
 



c   
 

 c  
   


c  

    


$5)5#5


c  

  
$49:#!.)5


c  

   
8/54#8#9


c  

 /0) 
;:$!#5


c 

 
 


   

         
  
 c 

    


c  
 
         



c   
   



c    /0) 
!<=('+8('+!>('%9;8#('/;+('


c  

    



c    

  
 c
 


c   
  c c   c    
  



c     
      



c  
c    c 
 
 
  


-  
 c    


-    
 
!   
  c     
 c     c 




- c    





 
    
  c     " c 
 c/ 
&'!     
c 

   #   c  
  
  
  
*'9     
  
     
 

  c 


-      

#             
     # 
      c  
 
     


c     
       
    
 
  
 


c   
         
       c  
     (&&&


'



0;5/#98&
-  
!8/-54
!       c 

 
 
   c 
c   c     
 
0;5/#98*
- $.+/ 
!8/-54
4   
;   
: 
  
5   
:    
0;5/#983
- $

!8/-54
# $.+/ c   $


0;5/#98?
$6: /

!8/-54
$ @  
$  
$  
$
%     
/ : 

0;5/#98A
$       
!8/-54
#     
:  #  c     c
 
)  #       
c  c    

 
<c#         

0;5/#982
$ BB
!8/-54
# c 
5/  :
   8;))
 
4/  6 C  
8;))  :
C    
0;5/#98D
-    
!8/-54
5  
   
 # 
 
    
  
   
0;5/#981
- /
4 - c 
 
 
!8/-54
/
4c     &12321
.+/E 4 %    
 c 
   4 
/
   
  
  
c   
 
   


c 

4 / 
/
4 $/

0;5/#98&F
G c   /
4
  
  
!8/-54
;4 
/
4
$
  
5  
    
5  
   
4   
0;5/#98&&
- $   
!8/-54
$  
        
        c 
#  
  
   
    
    
#c   $  
:  $  +     
      
)  $  +     
   c
89#5)  $  
   
0;5/#98&*
- c G c    
!8/-54
!c
     
   c 

 
  c   
     c  
c   
= c     c
#  c 
    
 c  G     
  
0;5/#98&,
- $+  
!8/-54
!          
   
  
0;5/#98&3
- 54
 
!8/-54
# 
 c     
       
    
5  
0;5/#98&?
- 9  9
 
!8/-54
# 
        !    
  c     !   
            # 
    
 9    

   

      

0;5/#98&A
- 5 
!8/-54
H H c c   
0;5/#98&2
- 5  
!8/-54
   ('   

0;5/#98&D
- 5 
!8/-54
         

0;5/#98&1
- 5    
!8/-54
#           
   
0;5/#98*F
- -5 
!8/-54
!
     
 

 


  

    -5

0;5/#98*&
-  
!8/-54
    c    
0;5/#98**
- 4 / 
4  
!8/-54
! / 
 4(!&!* !'
   
 
4  !  !
   )  c  
 (&*,'5   
I(&*'
0;5/#98*,
-  4  
!8/-54
 
    

0;5/#98*3
- 4   
!8/-54
  
c  

0;5/#98*?
- 4    
!8/-54
#    ( ' 
   
0;5/#98*A
- 4     
!8/-54
4           

  
0;5/#98*2
-  4     
!8/-54
 
     
0;5/#98*D
- $/ $ ) 
!8/-54
#    
 

        
$$)   
0;5/#98*1
- $+)($+  )' 
!8/-54
#     
 
  

: $+) ) c$+)   
c  c  
8 : $+) G $+) 
  c c    c  

0;5/#98,F
- <$)(<c$ )' 
!8/-54
  c 
      
 

0;5/#98,&
- $+)%
 
!8/-54
$+)
  c
      
0;5/#98,*
- 0  
!8/-54
  c  

0;5/#98,,
- $$)  
!8/-54
 $$)
  
 


0;5/#98,3
- 4 
 
!8/-54
# ) c : $+)    
 
  #    
4 

0;5/#98,?
- /
 /  
!8/-54
# G  8   $+)   

 $+)
#   
 /
 / 
0;5/#98,A
- 4 ! 
!8/-54
       
   c      c 
0;5/#98,2
- 4 %  
!8/-54
          
   56% 5 
 $/)!):G!0;5)
0;5/#98,D
G c #     


   
!8/-54
#      
c   
    5
0;5)
# 
    

   
   
5))$5$;%5
0;5/#98,1
-  
"  
!8/-54
      
 
 6  $  (6$' 
  
   
+
" 
+
"   

0;5/#983F
- 6  $   
!8/-54
!6     >Jcc  
>J  4    
      
  4# 
 c  &*&K>LI*K>L 
  &KJLI*KJL# 
  >
 
 
  
J
0;5/#983&
-     6 

 
!8/-54
5  6    

-      >!6c   
J!c J   >  
    6
-  
  
6  
    6
0;5/#983*
- +   
!8/-54
+   >J    
 
4c >J   4   
  c    4c  &*
  &K>LI*K>L ,3  
c    c  
,KLI3K>LI&K>LI*K>L
,KJLI&KJL3KJLI*KJL
,KMLI*KML3KMLI&KML
c KMI(4(>;J''L
0;5/#983,
- )     
!8/-54
         
c      

 
0;5/#9833
- &86(8 
6 
' 
!8/-54
# 
 
  
 (

'
0;5/#983?
- 66     
!8/-54
         !  
  >J    
 
!
>
       


0;5/#983A
- *86 
!8/-54
!  
4*86&86  

!4     

0;5/#9832
- ,86 
!8/-54
!  
4,86*86 6$>
!     c
>/  4
! 
 4
  c   
 
   

0;5/#983D
- .%86(.  % 8 
6 
' 
!8/-54
!  
4.%86,86
    6$>!>


0;5/#9831
- 386 
!8/-54
!  
4 386 +
  >J   4    c
>  ( '>JI4
> 
0;5/#98?F
- ?86 
!8/-54
!4  
4 ?86  
  N4&4*4O  4    c

4I4 

#    
  6$ 4
c    4


TEST Paper 3
$.+/

&6  c  $.+/ 
4   
 "  
$    
  @
*    
'&'* ','3
,#          

:  '   'c'   
3!          
   

  
'
'54
 '    
' 
?# 
 c     
   
    
    
'
'54
 '    
' 
A!H H c c   
''
 '  '   
2! 
     
 
   
'$$)'<$) '$+)'/$)
D#       

'$$)'<$) '$+)'/$)
1#       
 
 6  
$   c
'$  ' 
"  '  ' 
&F!  
4&86 


!4     

'&86'*86 ',86'.%86
&&!  
4,86
 
  6$>!>
 
'&86'*86 ',86'.%86
&*#    c
 
 
 c
':' ' '

&,!%C  :
C c

':' ' '

&3-    
 c   
"  

   
'' '
' 
&?#   
 c     
  c
' 
" '
  ''   
&A8
   
'&'3 '?'*
&2#        
  
 
  
' ' 
"  '  
' 
&D#    c   
   c
   
   
'
 '  ' '  
&1. $.+/   
 c 
  
    
' '
  ' '   
*F8
    
'&'* ','3
*&%     c  c  c
  
'   '  ' '   
**%     c
   c

  
'   '  ' '   
*,+    

''   '  '  
*3:)P/0)    
 
   


'' '  '   
*?/    
'  c  
'4
 c  
'  c  
'  c  
*A#
 54$
'!  

'!c&86
'%  

'+ 


*2/   
  
. 
" 
#  
; 
 
'@'@
'@'@

*D!.% #     
  c
!.7.
!%7%
%7.
'&86
'*86
',86
'.%86
*1
  54$ $6$
'54$    P 
$6$
'$6$   54$
' 54$ & &      
$6$
'   54$ & &     c
$6$
,F!
 
'  8&8   
'  &&8   
'  &&   
'    c && &8   
,&/ H894#GH%;/#9+546
%;/#$#)/- 
45=98IH8H9.
%;/#9+54; / H5!/#H%;/#9+546

%;/#$#)/- 45=98IH5H9.%;/#9+54
#  
'8  
'5   H894#GHH/9;#GH
'5     
'5 94$54.J 
,*  

     c
  c 
     

  


' 

'

'  

'

,,  

c     

  



 c    


' 

'

'  

'

,3  

c   

  

        
c   
' 

'

'  

'

,?  

c  
    
    
    
   
' 

'

'  

'

,A    (  
 'c  
   c c
'   '   
,2-    /0)

 
 
9 $  
 
'$$)'$+) '<$)'$/)
,D-     
 
  
')C5'8;)) '89#8;))'/8;))
,1- c       c 
/5)5%#
$5%9$5(#4!8/)!#5(H!HH&*,3?A2D1FHH&&&&&&&&&&H'
H&HHJ5/HH89H'Q
'&'J5/ '89'J5/89
3F- c       c 
/5)5%#45:)!%5(#4!8/)!#5()#4+(4#4+(HRR!#G58
RRHHRH'HRH'H!8HHSSH'HSHH#49;.)5H'649+$;!)Q
'#49;.)5
'!#G58#49;.)5
'#G5#49;.)5
'#49;.)5#G5#49;.)5






TEST PAPER 5

 PPc* 
PP

 c 


TEST PAPER F DS
 PPc* 
P P   



$+
/
. 0 3
-: 
/*AE*FFD&1**

u %*FFP?
u 
u &
u *
u ,
u 3
u ?
4þ P?(? '

 What is 4NF? 
!  
4 386 +
  >J   4    c
S>  ( '>JI4
S> 



þ What is 5NF? 
!4  
4 ?86  
  N4&4*4O  4    c

S4I4 

S#    
  6$ 4
c    4



3 What is Domain-Key Normal Form? 


!  $C86 
          
  
   
 
   




4 What are partial, alternate,, artificial, compound and


natural key? 
]   
   c
  
 c

 
$ 
 

  
!%C  :
C c
!C

    
      

    
 

      #   c
  
  
 
  c 
  

 
  
     c 

   
-    
 c   "
  
   




5 What is indexing and what are the different kinds of
indexing? 
  
 c    
 
# 
S. 
S.#
S
S+

S#




6 What is system catalog or catalog relation? How is better
known as? 
!4$.+/
       
 
     # 
 
       
 

 
    



7 What is meant by query optimization? 


#        
   
  

" 




8 What is join dependency and inclusion dependency? 


ý    
!E   "  +
  !E$N4&4*4O    
44&4*4,4  
  4
#    
  E 
$  
     
!  $  
   
 


      
! 
 
     




9 What is durability in DBMS? 


9  $.+/ 
     
 
    

      # 
  




 What do you mean by atomicity and aggregation? 

  
5       ;  
 c     
  $.+/
      
  


  
!   c   
   c
      c c 
    
   



 Spurious tuples may occur due to 
. 
" 
#  
; 
 
'@'@
'@'@


 ('@    


  
  





þ A B C is a set of attributes The functional dependency is
as follows 





'&86
'*86
',86
'.%86


 ('&86 (!%'IN!.%O  !% 



/ %.6$c  %C
 . 
  ,866 . 
    !%  *86#  
6$&86




3 In mapping of ERD to DFD 


'54$    P 
$6$
'$6$   54$
' 54$ & &      
$6$
'   54$ & &     c
$6$


 ('54$    


P $6$




4 A dominant entity is the entity 


'  8&8   
'  &&8   
'  &&   
'    c && &8   


 ('  &&8   





5 Select 'NORTH', CUSTOMER From CUST_DTLS Where
REGION = 'N' Order By
CUSTOMER Union Select 'EAST', CUSTOMER From
CUST_DTLS Where REGION = 'E' Order By CUSTOMER
The above is 
'8  
'5   H894#GHH/9;#GH
'5     
'5 94$54.J 


 ('5  94$54.J / 94$54.J


  ;898/




6 What is Storage Manager? 


  

     c 
 c      


  




7 What is Buffer Manager? 


  

c     

  


 c  
 




8 What is Transaction Manager? 
  

c   

 
    
    c   



9 What is File Manager? 


  

c  
       
     
 
  



þ What is Authorization and Integrity manager? 


   

c       
        



þ What are stand-alone procedures? 
:        c
    ! 
 
    c/0)S6 
   
#        

 9  !  
     
  

c   c  


þþ What are cursors give different types of cursors 
:)P/0)    
  

#   c     
S
 
S5  



þ3 What is cold backup and hot backup (in case of Oracle)? 
½  
    (  
 'c     c#  

    J 
  c
        
 
       
  
   !c 
 
       

½  
/
( c c 
'
   c c 
     
#       / 

   


T    
/0)

   9    


           
#    
   

   9     


P c       P   

       
 # 
!4%G<5)9=

          
         
        c 
#    
 c 
  

  



þ4 What are Armstrong rules? How do we say that they are


complete and/or sound 
# !
 !45c c  
6  $  

½    
J  > >J

½
    
>J >MJM

½!   
N>JJMO >M

½   
>JM >J

½"  
  
N>J>MO >JM

½]!   
N>J-JMO ->M
9    c!
 4# 
     6$  # 
 
   c 
  



þ5 How can you find the minimal key of relational schema? 
+
 c       
  
6  


        
     
    


#  $%&  $&   ''



&/>I>
*/9>I>
,6  6$JM6J  > M >
34  *,9>I>


#        (  &  


 ''

&/C 4 
C 4
*6  !C
%
(CU!'c    6
(CU!'I4 CI(CU!'
       
  
 #       
  
   # 

  $.+/   c  
 
      

$+
/
. 0 ,
-: 
/*AE*FFD&D?D

u %&?FP?
u 
u &
u *
u ,
u 3
u ?
4 5P?(3 '

 What is Relationship type? 
4           

  



þ What is degree of Relationship type? 
 
     




3 What is DDL (Data Definition Language)? 


! 
     
   $$)




4 What is VDL (View Definition Language)? 


  c 
      
 





5 What is Data Storage - Definition Language? 
#    
 

        
$$)   




6 What is DML (Data Manipulation Language)? 
#     
 
  

S: $+) ) c$+)   
c  c  
S8 : $+) G $+) 
  c c    c  





7 What is DML Compiler? 


$+)
  c
      




8 What is Query evaluation engine? 
  c  





9 What is DDL Interpreter?


 $$)
  
 






 What is Record-at-a-time? 
# ) c : $+)    
 
  #    
4 





 What is Set-at-a-time or Set-oriented? 


# G  8   $+)   

 $+)
#   
 /
 / 




þ What is Relational Algebra?
       
   c      c 




3 What is Relational Calculus? 
          
   56% 5 
 $/)!):G!0;5)




4 How does Tuple-oriented relational calculus differ from


domain-oriented relational calculus ?
#      
c   
    5
0;5)
# 
    

   
   
5))$5$;%5




5 What is normalization? 
      
 
 6  $  (6$' 
  
   
S+
" 
S+
"   





6 What is Functional Dependency?
!6     >Jcc  
>J  4    
      
  4# 
 c  &*&K>LI*K>L 
  &KJLI*KJL# 
  >
 
 
  
J


7 When is a functional dependency F said to be minimal? 
S5  6    

S-      >!6c   
J!c J   >  
    6
S-  
  
6  
    6



8 What is Multivalued dependency? 


+   >J    
 
4c >J   4   
  c    4c  &*
  &K>LI*K>L ,3  
c    c  
S,KLI3K>LI&K>LI*K>L
S,KJLI&KJL3KJLI*KJL
S,KMLI*KML3KMLI&KML
c KMI(4(>;J''L



9 What is Lossless join property? 


         
c      

 


þ What is  NF (Normal Form)? 
# 
 
  
 (

'



þ What is Fully Functional dependency? 


         !  
  >J    
 
!
>
       





þþ What is þNF? 
!  
4*86&86  

!4     




þ3 What is 3NF? 
!  
4,86*86 6$>
!     c
S>/  4
S! 
 4
  c   
 
   




þ4 What is BCNF (Boyce-Codd Normal Form)? 


!  
4.%86,86
    6$>7!>






þ5 What is SDL (Storage Definition Language)? 


#      
# 

   
 cc  


$+
/
. 0 *
-: 
/*AE*FFD&D3&

u %&*?P?
u 
u &
u *
u ,
u 3
u ?
4 3P?(3 '

 What is database? 
!       c 

 
 
   c 
c   c     
 


þ What is DBMS? 
      
   

  c    c


    c       

       


3 What is a Database system? 


# $.+/ c   $




4 Advantages of DBMS? 
S4   
S;   
S: 
  
S5   
S:    


5 Disadvantage in File Processing System? 
S$ @  
S$  
S$  
S$
S%     
S/ : 



6 Describe the three levels of data abstraction? 
#     
S](   #  c     c
 
S)   #       
c  c    

 
½*  #         



7 Define the "integrity rules" 


# c 
S5/ V:
   8;))
W
S4/ V6 C  
8;))  :
C    


8 What is extension and intension? 
'  
 
    # 

 

   
   
   
 


9 What is System R? What are its two major subsystems? 


/
4c     &12321
.+/E 4 %      
c 
   4 /

   
  
 
c   
 
   


c 

S4 / 
S/
4 $/



 How is the data structure of System R different from the


relational structure? 
;4 
/
4
S$
  
S5  
    
S5  
   
S4   


 What is Data Independence? 
$  
 V      
     W  c 
#  
  
   
    
    
#c   $  
S:  $  +     
      
S)  $  +      
  c
+!'
)  $  
   


þ What is a view? How it is related to data independence? 
!c
     
   c 

 
  c   
     c  
c   
= c     c
#  c 
    
 c  G     
  


3 What is Data Model? 
!          
   
  


4 What is E-R model? 
# 
 c     
       
    
5  


5 What is Object Oriented model? 
# 
        !    
  c     !   
            # 
    
 9    

   

      



6 What is an Entity? 
H H c c   


7 What is an Entity type? 


   ('   



8 What is an Entity set? 
         



9 What is an Extension of entity type? 


#           
   

þ What is Weak Entity set? 
!
     
 

 


  

    -5



þ What is an attribute? 
    c    


þþ What is a Relation Schema and a Relation? 
! / 
 4(!&!*X!'
  
  
4  !  !
   )  c  
 (&*,'5   
I(&*'

þ3 What is degree of a Relation? 
 
    


þ4 What is Relationship? 
  
c  


þ5 What is Relationship set? 
#    ( ' 
      
 

$+
/
. 0 &
-
 
+ ,FE*FFD&A3A

u %,&3P?
u 
u &
u *
u ,
u 3
u ?
43 P?(2 '
 What is a Database Management System(DBMS)?
!


($.+/'    
   
   # 
      
 
   #  
  
$.+/   c  
 
      
þ What do you mean by legacy databases?
6  c 
 #   c    "
 
     
 ,F 
3 What is an Entity?
!   c      
5   /


 /% =
4 What is a Weak Entity Set?
!       



c6 c
 

 c   
   c
5 What do you mean by a discriminator in the context of a
Weak Entity Set?
5  c    
 
    c 
      #  
  
c   c    


6 What do you mean by an attribute?
!    

    
   !
     
7 List the different categories of attributes 
#     
/


8 What do you mean by a relationship?
!         
     c    
  c
9 What are the types of relationships?
#         c

9  (&&'
9 
(&
' +  (
&'
+ 
(


 What are subtypes and supertypes?
!    6     
 5
  c   
 


 c
 G 
5
    
 c

  











You might also like