You are on page 1of 3

MODEL QUESTIONS

Name of the Paper: MI1112 Time: 2 Hrs. Total Marks: 140

Total no. of questions in each part: PART A = 40 questio s! PART " = 20 questio s! PART # = 1$ questio s

PART A
E%&' questio &%rries o e (1) *%r+ 1. $% &% C% )% '. $% &% C% )% *. $% &% C% )% In C++, _______ b tes require! to store an unsi"ne! short int #alue 1 ' ( * The follo+in" operators cannot be o#erloa!e! ::, si,e of, -: ::, ., -: ::, ++, -: ::, ., -: $ table can ha#e multiple _____ locks +hile it can ha#e onl one _____ lock /hare, up!ate 01clusi#e, up!ate 01clusi#e, share /hare, e1clusi#e

PART " E%&' questio &%rries t,o (2) *%r+s


1. 2hen a class usin" templates is use! as a base class, the s nta1 to be follo+e! for the !eri#e! class is 1. class !eri#e!_class : public base_class3#alues of ar"ument4 5 67 '. class !eri#e!_class 3#alues of ar"ument4 : public base_class 5 67 1 onl ' onl &oth None of them class !eri#e!_class : pri#ate base_class here the ke +or! 8pri#ate9 in!icates that 1. :b;ects of !eri#e!_class cannot access public members of the base class '. :b;ects of !eri#e!_class cannot access protecte! members of the base class 1 onl ' onl &oth None

$% &% C% )% '.

$% &% C% )%

*.

I!entif the line +here the error e1ists line 1 : create table 3table<name4 = line ' : fiel!<name1 fiel!<t pe=+i!th% P>IM$>? @0?, line * : fiel!<name' fiel!<t pe=+i!th% N:T NABB, line ( : fiel!<name* fiel!<t pe=+i!th% CC0C@=fiel!<name in =8a9,DbD,DcD%%%7 line ' onl line * onl line ( onl line ' an! line * onl

$% &% C% )%

PART #
E%&' questio &%rries -our (4) *%r+s 1. Pre!ict the output of the follo+in" pro"ram: E inclu!e 3iostream.h4 class sample 5 pri#ate : int #ariable17 public : sample = % 5 #ariable1 . F76 int "et_#alue = % 5 return #ariable176 #oi! operator ++= % 5 cout 33 en!l7 #ariable1 ++7 6 67 #oi! main = % 5 sample s1, s'7 cout 33 8Gn s1 . 9 33 s1."et_#alue= %7 cout 33 8Gt s' . 933s'."et_#alue = %7 s1 ++7 s'++7 ++s'7 cout 33 8Gn s1 . 933s1."et_#alue= %7 cout 33 8Gt s' . 9 33s'."et_#alue= %7 6 s1 . 1 s1 . ' s1 . F s1 . 1 s1 . F s1 . 1 s1 . F s1 . 1 s' . 1 s' . * s' . 1 s' . * s' . F s' . 1 s' . F s' . '

$% &% C% )% '.

:utputs of the follo+in" pro"ram are _____ E inclu!e 3iostream. h 4 #oi! main = % 5 int #ar1, #ar'7 int H ptr7 ptr . I #ar17 H ptr . *J7 #ar' . H ptr7 cout33 8#ar1 . 833#ar17 cout 33 8Gn933#ar ' . 833 #ar'7 Ki#en that #ar1 is store! at JL)' an! #ar' at JL)( of the memor a!!ress JL)' *J *J

$% &%

C% )% *.

JL)( JL)' JL)( *J *J Match the follo+in" sets : Set A a. >eferential inte"rit b. :uter ;oin c. >oll back !. )eco!e Set " 1. Celps un!o part or all of a transaction '. Kuarantees that #alues from one column !epen! on #alues in another column *. )ata not a#ailable in the secon! file +ill be presente! as null #alues (. Ase! to e1pen! an abbre#iations use! in the table M. Nee! to substitute an null #alue +ith a user specifie! #alue a<1, b<', c<*, !<( a<(, b<M, c<*, !<' a<', b<*, c<1, !<( !<M, b<(, c<1, !<'

$% &% C% )%