1000 tech. interviewquestions

Upload: sun-surya

Post on 06-Jul-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/17/2019 1000 Tech. InterviewQuestions

    1/72

    S No

    1

    2

    3

    4

    56

    7

    8

    9

    10

    11

    12

    13

    1415

    16

    17

    18

    19

    20

    21

    22

    2324

    25

    26

    27

    28

    29

    30

    31

    32

    33

    34

    35

    36

    37

    38

    39

    40

  • 8/17/2019 1000 Tech. InterviewQuestions

    2/72

    41

    42

    43

    44

    45

    4647

    48

    49

    50

    51

    52

    53

    54

    55

    5657

    58

    59

    60

    61

    62

    63

    64

    65

    6667

    68

    69

    70

    71

    72

    74

    75

    76

    77

    78

    79

    80

    81

    82

    83

  • 8/17/2019 1000 Tech. InterviewQuestions

    3/72

    84

    85

    86

    87

    88

    8990

    91

    92

    93

    94

    95

    96

    97

    98

    99100

    101

    102

    103

    104

    105

    106

    107

    108

    109110

    111

    112

    113

    114

    115

    116

    117

    118

    119

    120

    121

    122

    123

    124

    125

  • 8/17/2019 1000 Tech. InterviewQuestions

    4/72

    126

    127

    128

    129

    130

    131132

    133

    134

    135

    136

    137

    138

    139

    140

    141142

    143

    144

    145

    146

    147

    148

    149

    150

    151152

    153

    154

    155

    156

    157

    158

    159

    160

    161

    162

    163

    164

    165

    166

    167

    168

  • 8/17/2019 1000 Tech. InterviewQuestions

    5/72

    169

  • 8/17/2019 1000 Tech. InterviewQuestions

    6/72

    Questions

    what is the diference between do get/doost

    diference between !orward and sendredirect

    can it ossib"e to #a"idate !or$ %e"d be!ore e&ecution o! a ser#"et ser#ice $ethod i! 'es how((

    can an'bod' send $e )2ee so!twares such as to$cat*web"ogic ser#er *netbeans

    can we o#erride ser#ice $ethod in $' ser#"et c"ass++(( i! 'es or no wh' ((,an we write a constructor !or a Ser#"et c"ass ( i! 'es how ( i! no wh' not (

    -! we disab"e coo.ies in our web age* what wi"" haen(

    "ease gi#e ur" to get orina" so!tware !or -net cr'sta" c"ear )a#a reort too"s(

    hat is a arser+ hat does a arser do with a ( h' do we need it(

    can # create a constructor 4 ser#"et(

    hat is the use o! euestisatcher in ser#"et(

    ow $an' wa's to re$o#e the session ob)ect in the container

    ow do u authorie and authenticate without auth: o! web+&$"-s c"asses !o"der is co$u"sor' in webin!/ e#en though u r de"o'ing ur a"ication with war %

    hat is done a!ter de"o'ing a war %"e and be!ore c"ient gi#es a reuest

    -n )s custo$ tags !ro$ chi"d tags to how $an' "e#e"s o! arent tags 'ou can acess

    ow to get i address in )s "ogin age and how to #a"idate "i.e 127+1+0+1 a"" shou"d not be gre

    what is $eant b' ;ransaction -so"ation e#e"s(

    when the webcontainer creates Ser#e"et,on%g*Ser#"et,onte&t ob)ects( be!oure creating the S

    iference between web container < web ser#er+++++++++++ iference between web ser#er < a"

    hat is the diference between =et and >ost ethod(ow can a ser#"et re!resh auto$atica""' i! so$e new data has entered the database(

    what is the diference between Ser#"et,onte&t and Ser#"et,on%g

    how to use ser#"ets with )2ee (

    how a ser#"et is instantiated* whether the container ca""s init?@ or b' ca""ing an' other $ethod

    -s it ossib"e to send a $ai" !ro$ a ser#"et( A&"ain(

    ,an we use ser#"ets in Ba#aScrit(

    ,an we use )a#ascrit in Ser#"ets(

    hat is Sing"e ;hreaded ode" in Ser#"ets( A&"ain this with an e&a$"e(

    hat is =eneric Ser#"et and how it is diferent !ro$ tt Ser#"et(

    hat is connection oo"ing(

    hat is ;;> ;unne"ing(

    waht is the $ain di!erence b/w ser#e"ts and BS> (

    hat are diferent t'es o! Session;rac.ing(

    hat are the t'es o! Ser#"etAngines(

    hat are diferent t'es o! Ser#"ets(

    hat t'e o! rotoco"s are used in ttSer#"et(

    hat are the securit' issues in Ser#"ets(

     )a#a+"ang+-""ega"Crgu$entA&cetionD ;he ath o! an Eorward,on%g cannot be nu"" whi"e wor.in"s #er' ungent

    ow to wor. with ,hinese "ogin age ?internationa"iation@+i! he enters user na$e and asswocon#erted to Ang"ish and #a"idate in db( Cnd in re#erse it shou"d dis"a' we"co$e $essage in

  • 8/17/2019 1000 Tech. InterviewQuestions

    7/72

    hat are the $ethods in ttSession and their use(

    hat are the $ethods in ttSer#"et(

    hat are the e&cetions thrown b' Ser#"ets(

    Na$e the ser#ers that can be used to de#e"oe and de"o' Ser#"ets(

    hat are the c"asses and inter!aces !or ser#"ets(

    ow are Sessions are $ore ad#antage than using o! ,oo.ies or Feriting(hat is session #ariab"e in ser#"ets(

    hat are coo.ies and how wi"" 'ou use the$(

    hat haens* when c"ient reuests !or ser#er ob)ect* which is not 'et "oaded into the $e$or

    A&"ain "i!e c'c"e o! a Ser#"et(

    how a user session can be trac.ed in ser#"ets(

    hat is ser#"et tunne""ing(

    hat is ser#"et e&cetion(

    hat is Ser#"et,onte&t?@ and what is its use(

    hat are the ara$eters o! the ser#ice $ethod (

    hat is conte&t switching(hat is ,"ientSer#er ,o$uting(

    hat is a >ro&' Ser#er(

    hat is a Session -d(

    hat is F ewriting (

    hat is Ser#"et ,onte&t(

    A&"ain Ser#"et ,haining (

    hat is Ser#erSide -nc"udes(

    hat is ;;> Session (

    hat is SN and S'ste$ SN and what is the diference between the$(

    struts co$es under which "a'er o! three tire architecture in rea" ti$e ro)ects " i need e&"aiiference between struts1+2 and struts2+0(

    is it ossib"e to see actionser#"et in $' s'ste$+ i! 'es how

    what is the diference between age and age,onte&t i$"icit #ariab"es

    here can i get )ar %"e !or use the strutstags in struts2(

    ow can - $a.e own CctionSer#"et( with e&a$"e

    ow do 'ou custo$ie CctionSer#"et(

    -n web+&$" %"e instead o! G+do can i write G+ib$* Seci!' with e&a$"e

    $u"ti"e instances !or action c"ass is it ossib"e

    what is the diference between Ser#"et,onte&t and Ser#"et,on%g(

    -s Struts Cction c"ass ;hread Sa!e(

    hich arser is used in Struts to arse the Structcon%g+&$" %"e+

    "i!e c'c"e o! struts(

    ow data trans!ered !ro$ one !or$bean to another !or$bean(

    hat is euest isatcher and hat is reuest >rocessor((

    which H, architecture struts !o""ows and wh'(

    -! we c"ose the browser*when the seci%c user session is acti#e+Cgain i! we oen browse how twhat code i ha#e to da(((

  • 8/17/2019 1000 Tech. InterviewQuestions

    8/72

    where 'ou wi"" i$"e$ent the ti"es in struts(

    its a CctionEor$ contro""er or $ode"(

    whats is $ean Cctionerrors and Cctionerror(

    how the error can be showed in the )s age in struts(

    what are the t'e o! !orward c"ass in Struts(

    who wi"" run the e&ecute $ethod in struts(how wi"" 'ou #iew ur )s age to the c"ient b' using roerties %"e(

    what is $ean b' custo$ tag(

    wahts the dii! between #c1 and #c2(

    what are the actions in struts(

    what are ti"es in struts(

    how 'ou i$"e$ent and $aintain 'our struts ro)ect b' using H,2 arch(

    hat is use o! arseQuer'String(

    Na$e the webser#er that is used to run Ser#"ets(

    hat are setSecure?@ and getSecure?@ $ethods in ,oo.ies(

    hat are set,o$$ent and get,o$$ent $ethods in ,oo.ies(hat is the use o! Ser#"ets(

    hat is the ro"e o! the webser#er(

    hat is the rotoco" used b' Ser#er < ,"ient(

    A&"ain the $ethods in =eneric and ;;> Ser#"ets(

    A&"ain the diference between =A; and >IS; $ethods(

    hat is the diference between A&ecuteFdate and A&ecuteQuer'(

    what is the ad#antage o! using Ser#"ets o#er ,=- rogra$$ing(

    hat is the de!au"t tteuest $ethod(

    hat is the caacit' that do=et $ethod can send to the ser#er(

    hat is the ad#antage o! Ser#"ets when co$ared with other ser#er side techno"ogies(hat is the Ser#"et,on%g?@ and what is its use(

    ow to draw c"ass/ob)ect diagra$ !or C;

    ,an ,ontainer anaged Jeananaged ;ransaction (

    ,an ,ontainer $anaged Jeananaged >ersistence (

    ,an ,> $anage J> ;ransaction ( Antit' Jean i!e ,'c"e (

    diference b/w the h'bernate and entit' bean

    how can u integrate e)b and hibernate( ow can u ca"" hibernateCI $ethods in session bean

    ri#er $anager is a c"ass/inter!ace+

    what is an e)b ob)ect(

    can u e&"ain about design atterns "i.e sing"eton*bui"der*!actor'

    whatis the dif between e)b and ser#"et/)s

    what s the diference b/w ABJ 2+0 and ABJ 3+0 technica""'

    ,an the ri$ar' .e' in the entit' bean be a Ba#a ri$iti#e t'e such as int(

    ow can - ca"" one ABJ !ro$ inside o! another ABJ(

    hat is the erose o! ABJs(

    can an'one e&"ain $e the wor.Kow o! ABJ+- ha#e de#e"oed an a+ in SC using an e&a$session bean+Jut i a$ not ab"e to understand the basic Kow between difrent ac.ages+

  • 8/17/2019 1000 Tech. InterviewQuestions

    9/72

    how can u integrate e)b and hibernate( ow can u ca"" hibernateCI $ethods in session bean

    Na$e the inter!aces that 'ou used in Jeans(

    hat are the design goa"s o! ABJ Crchitecture(

    what are the c"asses 'ou used in Jeans(

    hat are the roerties in Jeans(

    can we sto the e&ecution o! a $ethod be!ore co$"etion(

    when de"o'ing an ABJ* does it ossib"e to seci!' $u"ti"e BN- na$es(

    ow can a ,IJC ob)ect* accessed !ro$ a ABJ(

    can we ha#e static initia"ier b"oc.s in ABJ(

    Cn ABJ c"ient* can $arsha"" an ob)ect o! the c"ass )a#a+"ang+,"ass to an ABJ(

    e)b,reate in Antit' bean and create $ethod in ABJ ho$e* ha#e the sa$e ara$eters(

    -n AJs the J state is $ore consistent than SJs wh'(

    -n an ABJ ro)ect* ow$an' tab"es and ow $an' entit' beans are used(

    Fsing ,ontainer $anaged entit' bean* how an entit' bean can be created(

    ow is an entit' bean created(ow entit' beans suort container $anaged ersistence(

    what is the e"ationshi between ABJ and ,IJC architecture(

    -n what wa'* the c"ient gets a re!erence to an e&isting entit' bean(

    ow L$essagingL suorted in ABJ 2+0 Seci%cation(

    ow does a container* $anage access* !ro$ $u"ti"e transactions on an entit' bean(

    ow State!u" Session bean wi"" store its State (

    ow does ABJ 2+0 i$ro#e suort !or interoerabi"it' between ABJ containers and other B2AA

    ow do identi!' two sa$e entit' beans(

    -n bean $anaged transactions* how session bean can be con%gured(

    ow state!u" session beans wi"" $aintain consistenc'* across transaction udates(ow ABJ co$onent can in interact with ,I/,I co$onents(

    ,an state!u" session beans are ersistent(

    A&"ain the architectura" re"ationshi between ABJ < (

    escribe c"ient #iew o! an Anterrise Ba#aJeans co$onent(

    hat is -ntrosection (

    A&"ain the Sotware Crchitechture o! ABJ(

    ow enterrise beans wi"" hand"e concurrent and "oobac. ca""s on entit' beans(

    hat are the i$"icit ob)ects(

    -s BS> techno"og' e&tensib"e(

    ow can - i$"e$ent a threadsa!e BS> age( hat are the ad#antages and isad#antages o!

    ow does BS> hand"e runti$e e&cetions(

    ow do - use co$$ents within a BS> age(

    ow do 'ou initia"ie a new"' instantiated bean using scri"et

    ow session $anage$ent is hand"ed in BS>

    ow to dec"are $ethods in BS> ages

    ow can - set the inacti#it' "ease eriod on a ersession basis(

    ,an we enab"e co$$unication between a Ser#"et and BS>( ow(

    -s it ossib"e to write two ABJs that ha#e diferent bean c"asses* but the' share sa$e e$ote i

    inter!aces(

  • 8/17/2019 1000 Tech. InterviewQuestions

    10/72

    hen data dis"a'ed !ro$ database to te&tbo& Lnu""L data aears as Lnu""L in the te&tbo&es+

  • 8/17/2019 1000 Tech. InterviewQuestions

    11/72

  • 8/17/2019 1000 Tech. InterviewQuestions

    12/72

  • 8/17/2019 1000 Tech. InterviewQuestions

    13/72

  • 8/17/2019 1000 Tech. InterviewQuestions

    14/72

  • 8/17/2019 1000 Tech. InterviewQuestions

    15/72

    ou"ating+

  • 8/17/2019 1000 Tech. InterviewQuestions

    16/72

    S No

    1

    2

    3

    4

    56

    7

    8

    9

    10

    11

    12

    13

    14

    1516

    17

    18

    19

    20

    21

    22

    2425

    26

    27

    28

    29

    30

    31

    32

    34

    35

    36

    37

    38

  • 8/17/2019 1000 Tech. InterviewQuestions

    17/72

    39

    40

    41

    42

    43

    44

    45

    47

    48

    49

    50

    52

    53

    54

    5556

    57

    58

    59

    60

    62

    63

    64

    65

    6667

    68

    69

    70

    71

    72

    73

    74

    75

    78

    79

    80

    81

  • 8/17/2019 1000 Tech. InterviewQuestions

    18/72

    83

    84

    86

    87

    88

    8990

    91

    92

    93

    94

    95

    96

    97

    98

    99100

    101

    102

    103

    104

    105

    106

    107

    108

    109110

    111

    112

    113

    114

    115

    116

    117

    118

    119

    120

    121

    122

    123

    124

    125

    126

  • 8/17/2019 1000 Tech. InterviewQuestions

    19/72

    127

    128

    129

    130

    131

    132133

    134

    136

    137

    138

    139

    140

    141

    142

    144145

    146

    147

    148

    149

    151

    152

    153

    154

    155156

    157

    158

    159

    160

    161

    162

    163

    164

    165

    166

    167

    168

    169

    170

    171

    172

  • 8/17/2019 1000 Tech. InterviewQuestions

    20/72

    173

    174

    175

    176

    177

    178179

    180

    181

    182

    183

    184

    185

    186

    187

    188

    189

    191

    192

    193

    194

    195

    196

    197

    198

    199

    200

    201

    202

    203

    204

    205

    206

    207

    208

    209

    210

    211

  • 8/17/2019 1000 Tech. InterviewQuestions

    21/72

    212

    213

    214

    215

    216

    217218

    219

    220

    221

    222

    223

    224

    225

    226

    227228

    229

  • 8/17/2019 1000 Tech. InterviewQuestions

    22/72

    Questions

    e%ne S'ste$+out+rint"n?@M +

    hat are the diference between String Jufer and String bui"der (

    hat is the diference between error and e&cetion in si$"e ter$s +

    h' canLt we $a.e )s as a contro""er and action ser#"et in struts(

    hat is the use o! %na""' .e'word(h' do inner c"ass cannot ha#e static dec"aration e&cet static nested c"ass(

    ow to write a rogra$ to count the nu$ber o! "etters !ro$ strings "i.e FNAS;CN (

    hich are thin and thicO wraer ,"asses in Ba#a(

    h' there can be $u"ti"e catches !or a tr' b"oc.(

    ow to con#ert a binar' search tree to a sorted doub"' "in.ed "ist in "ace+

    what is the diference between C; and S-N= ac.ages+ what is the ad#antage o! using swi

    what is the diference between )a#a and )2ee(

    ow can we i$"e$ent abstract and nonabstract $ehtods( A&"ain with source code+

    ow to o#erride eua"s?@ $ethod and what is the use(

    ow to dec"are uniue Crra'ist (hat is wraer c"ass in )a#a(A&"ain with e&a$"e+

    ow to write a source code !or rint(

    ow to a"' sha""ow c"oning and dee c"oning to create ob)ect(

    hich o! the #ariab"es and c"ass $e$bers o! a c"ass can be re!erenced b' #ariab"es o! c"ass b

    hat is the diference between this?@ and suer?@(

    ow two diferent c"ass threads co$$unicate with each other(A&"ain with source code+

    ow does the )a#a co$i"er co$e to .now about seci%cation o! ar.er inter!ace(

    ow to ca"" one constructor !ro$ another constructor(

    rite )a#a code to rint second $a& nu$ber in the arra'(

    hat is de!au"t seci%er* de!au"t constructor and de!au"t $ethod in )a#a(

    ,an we dec"are static #ariab"es in BS> age(

    hat are Cd#atages o! I#er"oading and I#erridding(

    -n , we use on"' co$i"er+ h' )a#a uses both co$i"er and interreter( hat is its signi%can

    ow to #a"idate the reuest ?AgDuser na$e and assword@ in session?htt session@( not in C

    h' cant we de%ne S'ste$+out+rint"n?@ inside a c"ass direct"'(

    -s it co$u"sor' to ha#e at"east one abstract $ethod in abstract c"ass(

    A&"ain the diference between abstract $ethods and inter!aces with rogra$$ing ?code@ e&a

     $ain?StringR args@ P unti$e run unti$e+getunti$e?@M tr' P >rocess run+e&ec?c$d sD/test+bat@M S'ste$+out+rint"n?+e&itHa"ue?@@M T catch ?A&cetion e@ P e+rintStac.;race?@M TS'ste$+out+rint"n?E-N-SA@M T T

    rite )a#a code to rint e""o how are 'ou ;hread1 shou"d ha#e e""o ;hread2 shou"d ha#eboth the threads shou"d start at the sa$e ti$e

    -! a"" the $ethods in abstract c"ass are dec"ared as abstract then what is diference between ain inter!ace(

      + + ub"ic static #oid $ain?String argsR@ P =arbage ob)new =arbage?@M S'ste$+gc?@M S'ste$+out,o""ected@M ob)+add?@M T T Cbo#e is a code in )a#a used !or garbage co""ection+ ob)ect ob) has bthe c"ass =arbage and s'ste$+gc $ethod is ca""ed+ Fsing that ob)ect add $ethod is ca""ed+S'sca""ed the ob) shou"d be garbage co""ected(

  • 8/17/2019 1000 Tech. InterviewQuestions

    23/72

    hat is the e&act diference between a"et and !ra$e(o we use $ain $ethod in !ra$es(

    ow to use cr'sta" reorts in )a#a(

    hat is the use o! o)o ?"ain o"d )a#a ob)ects@(ow it interacts with cr'sta" reorts(

    hat is the concet o! autobo&ing(

    h' ait and noti!' are .et in Ib)ect c"ass a"though the' are used on"' with ;hread ,"ass(

    h' const and goto are reser#ed .e'word in )a#a(

    wh' )a#a does not suort $u"ti"e inheritance(

    hat is the need to i$"e$ent Seria"iab"e inter!ace ?with no $ethods@ !or ob)ects which are

    -s it ossib"e to access ri#ate data outside the c"ass in )a#a rogra$$ing "anguage(

    ow to add two nu$bers with out using Crith$etic * union oerators in )a#a(

    what is ;hread(

    what is $utabi"it'(which one is $utab"e String or StringJufer(and wh'(A&"ain with e&a$"e

    hat is oerator(

    hat is unicode(what is the use o! re!erence #ariab"e(

    hat is the diference between +c Cnd +)a#a(

    A&"ain the "i!e c'c"e o! ;hread(

    ow to i$"e$ent garbage co""ection(

    hen to use %na" c"ass in )a#a(

    h' do we use ub"ic static with the $ain !unction in Ba#a(

    -s it ossib"e to inherit the constructor in a ,"ass(A&"ain with e&a$"e+

    hat is the !unctiona"it' o! ataIutut inter!ace in )a#a(

    ow $an' nu$ber o! ob)ects we can store in an Crra'ist(

    hat is the urose o! ri$iti#e data t'es in )a#a(hat is the diference between age,onte&t and age i$"icit ob)ects in )s(

    -s it sa!e !or adding 10*00*000 records/ob)ects to asha(

    ow to decrease nu$ber o! hashings in hash tab"e(

    ow to $a.e c"ass i$$utab"e(

    hat is an ob)ect(

    iference between String and String Jufer(

    -! two re!erences are ha#ing sa$e hash codes*then are re!ering to sa$e ob)ect(

    what is the use o! datasource in core )a#a(

    whats is the use o! %na"*in which situation %na" can be used in the a"ication(

    what is dif bet iterator and enu$eration(

    wht is custo$ised e&cetion(

    whats the "i!e c'c"e o! )s

    -! a $u"ti threaded Ba#a rogra$ has started nu$erous nu$ber o! threads* at an' oint in ti$which thread is current"' e&ecuting/running (

    ub"ic c"ass CboutStringsP ub"ic static #oid $ain?String argsR@P String s1he""oM String s2s3"oM String s4s2Us3M //to .now the hash codes o! s1*s4+ S'ste$+out+rint"n?s1+hash,ode

    S'ste$+out+rint"n?s4+hash,ode?@@M // these two s1 and s4 are ha#ing sa$e hashcodes+ i!?s1P S'ste$+out+rint"n?s1 and s4 are sa$e+@M Te"se S'ste$+out+rint"n?s1 and s4 are not sa$eoutut o! code does not show eua" #a"ues !or s1 and s4+A&"ain the reason(

  • 8/17/2019 1000 Tech. InterviewQuestions

    24/72

    what is $ean b' $ethod signature(

    whats the "i!e c'c"e o! )s

    what is $ean b' $ethod signature(

    who was the !ounder o! )a#a

    ow u dubugg ur ro)ect(

    how u do unit testing(ow to create an instance o! a c"ass without using new oerator( >" he" $e out roer"'+;

    ow to create an instance o! a c"ass i! the c"ass has ri#ate constructor(

    without using arthe$atic oeration *how can 'ou write the "ogic !or adding/substraction/$u"ti

    hat is $eans b' %"e $eans ( hat is the use o! %"e( hat are the contents o! %

    hat is e$ant b' C>-( is it re"ated to )a#a on"' or it is co$$on !or a"" II>S suorting "angua

    what is the diference b/w design attern and architecture

    what is an #irtua" !unction

    wh' a"et doesnLt ha#e $ain( isnLt ossib"e a rogra$ with out $ain(

    whatLs dif between struts 1+1 < 1+2

    can we ha#e #irtua" !unctions in )a#a(

    h' we need to seria"ie the ob)ect

    hich c"ass shou"d 'ou use to obtain design in!or$ation about an ob)ect

    hat is the diference between Strea$ eader and Strea$ riter(

    hat is the e&act diference in between Fnicast and u"ticast ob)ect (

     ;o what #a"ue is a #ariab"e o! the Joo"ean t'e auto$atica""' initia"ied(

    ow does seria"iation wor.

    hich ath $ethod is used to ca"cu"ate the abso"ute #a"ue o! a nu$ber(

    hen does the co$i"er su"' a de!au"t constructor !or a c"ass(

    what is Cssertion(what is )a#a

    e&"ain the c"assi%cation o! e&cetion and hoew to hand"e the e&cetions

    what are dericated $ethods in threads and e&"ain the "i!ec'c"e $ethods

    e&"ain the c"one $ethod and c"onab"e inter!ace

    wh' the constructor shou"d be used in c"ass*i! there is no constructor what wi"" haen(

    how can u create the ob)ect with out new oerator

    e&"ain oos concets with e&a$"es(

    when*where and how to use abstract c"ass and inter!ace

    what is diference between c"ass and ob)ect(

    when to use abstract c"ass and when to use inter!ace(

    how can i connect to database in a a"et (

    hat is the Si$"e;i$eVone c"ass(

    hat is the Set inter!ace(

    hat is the i$$ediate arent c"ass o! the C"et c"ass(

    hat is the i$$ediate suerc"ass o! enu(

    hat is esourceJund"e c"ass(

    hat is a inter!ace(

    hat is $ore ad#isab"e to create a thread* b' i$"e$enting a unnab"e inter!ace or b' e&tend

    c"ass(

  • 8/17/2019 1000 Tech. InterviewQuestions

    25/72

    hat is oca"e c"ass(

    ist inter!ace(

    hat is the a'out !or ;oo"Jar(

    hat is the =regorian,a"endar c"ass(

    hat is the ictionar' c"ass(

    hat is ,o""ections C>-(hat is ,o""ection inter!ace(

    hat is the W oerator(

    hat is sing"eton c"ass(

    hat is the diference between seria"iation and deseria"iation(

    hat is seria"iab"e inter!ace(

    hat is rotected and !riend"'(

    hat is rocedure o#er"oading(

    hat is ersistence (

    hat is nu$eric ro$otion(

    hat is $ethod I#er"oading in the ersecti#e o! II>S(A&"ain about #ector* dictionar'*hash tab"e* roert' c"asses(

    hat is static #ariab"e and static $ethod(

    hat is $eant b' seria"isation and deseria"isation(

    A&"ain the concet o! o"'$orhis$ with e&a$"es(

    hat is $eant b' ac.ages(

    hat is %"es $ani!esting(

    e%ne inter!ace(

    e&"ain the concet o! inheritance with an e&a$"e(

    hat is the diference between get,odeJase and getocu$entJase $ethods(

    hat is $eant b' %na" c"ass* $ethods and #ariab"es(hat is an e&cetion(

    hat is $eant b' e#ent hand"ing(

    A&"ain in detai" about encasu"ation with an e&a$"e(

    hat is istributed C"ication and what is its usage(

    hat is a dead"oc. (

    A&"ain coo.ies(

    hat is $eant b' contro"s and t'es(

    hat is $eant b' constructor(

    hen wi"" we use c"ass "oader(

    hat is $eant b' c"ass "oader and how $an' t'es are there(

    hat is L%na""'L $ethod in A&cetions(

    hat is %na""' .e'word(

    ow is rounding er!or$ed under integer di#ision(

    ow to do #a"idation o! the %e"ds in an' ro)ect (

    ow does a tr' state$ent deter$ine which catch c"ause shou"d be used to hand"e an e&cetio

    hat are the diferences between Ba#a 1+0 and Ba#a 2+0(

    ow do 'ou sing an C"et (

  • 8/17/2019 1000 Tech. InterviewQuestions

    26/72

    ow do 'ou "oad an ; age !ro$ an C"et (

    ow do 'ou co$are two strings( an' rede%ned $ethod !or this(

    ow C"ets < Ser#"ets wi"" co$$unicate with each other(

    hen garbage co""ector in#o.es ob)ect(s %na"ie?@ $ethod(

    hat is the de!au"t initia"ied #a"ue o! a boo"ean t'e #ariab"e(

    hat is the de!au"t initia"ied #a"ue o! String t'e #ariab"e(hat c"ass is used to i$"e$ent a ;hrowab"e arra'(

    hat is the $ini$u$ and $a&i$u$ "ength o! an identi%er(

    what is diference Jetween ,ore Ba#a and ad#ance )a#a

    can we write a rogra$ with out a c"ass in core )a#a(

    how to write a rogra$ !or chat !unction using core )a#a

    what is the use o! ri#ate constructor in core )a#a(

    what is the use o! datasource in core )a#a(

    ,an we $a.e a database connection !ro$ ; (

    -s there an' "i$itation !or no o! stat$ents e&ecuted with in batchudate(

    ow to hand"e when the database crashes whi"e reading the data !ro$ the database(

    A&"ain how data Kows !ro$ #iew to db and re#erse

    how to retrie#e s" e&cetions

    what is rowset(

    ca""ab"e is inter!ace or c"ass (

    rearedstate$ent new rearedstate$ent is it ossib"e (

    ow to %nd tota" co"u$n !ro$ a resu"tset(

    ow to %nd the co"u$n count in resu"tset(

    hat are reared staste$ents

    hen wi"" rearedstate$ents get co$"ied and how does it wor.+

    what are design atterns(

    how 'ou wi"" e&ecute the $an' tab"es data

    wahts is $ean b' ri$ar' .e' and uniue .e'(

    gi#e $e a )a#a code sniet to connect icroso!t e&ce" through++++ - a$ tr'ing a"ot+++ " he" $

    wa is connection oo"ing( how do u create connection oo"ing(wat is use connection oo"ing(

    what does the $ethod ,"ass+!orNa$e returns(

    what is connection oo"ing(

    is that co$u"sor' to ha#e >ri$ar'.e'!orign.e' !or )oints ?outer inner*eua"@

    what e&act"' haens when we e&ecute ,"ass+!orna$e?ri#er c"ass na$e@M(A&"ain indeta

    ow is database $idd"eware used to access "egac' databases(

    State$ent* >reareState$ent and ,a""ab"e a"" these are inter!aces+ ;hought it is a inter!ace hocreating ob)ects and ca""ing $ethods?rearestate$ent?@@ in it+ -n which c"ass this $ethod is

    "et $e .now+ ;han.s in ad#ance+ e&a$"eD >rearedState$ent re con+reareState$ent? SA; SCAS ( AA ,IEXNCA -OA (@M

    i ha#e 1000 records in resu"tset* how to get %rst 100 records !ro$ resu"tset* because resu"tsetrecords at a ti$e(

    which scenarios we go !or )dbc*and which scenario we go !or connection o""ing and wat r ad#disad#antages using connection oo"ing+

  • 8/17/2019 1000 Tech. InterviewQuestions

    27/72

    ow does BJ, difer !ro$ IJ,(

    hat is ;'e3 ri#er and when this dri#er is used(

    ,an we use the one instance o! Stat$ent to e&ecute $ore than one uer' (

    ow do 'ou create ,onnection(

    -n BJ,* C"" the C>-(s are inter!aces( here is the actua" i$"e$entation(

    what is $etadata and itLs use(what is ca""ab"e state$ent(

    hat is >rearedState$ent(

    ow $an' iso"ation "e#e"s are suorted in BJ, and what are the'(

    ow $an' t'es o! BJ, dri#ers are there and what are the'(

    iference between ser#"et and a"et $ethod(

    signature o! init $ethod(

    iference between =eneric Ser#"et and ;;> Ser#"et(

    what is $eant b' connection oo"ing(

    iference between irt'* co$$ited *hanto$*reeatab"e reads(

    write down e&cetions those aear in )a#a rogra$s when u write BJ, >rogra$s(Stored rocedure urose(

    iferent state$ents in BJ,(

  • 8/17/2019 1000 Tech. InterviewQuestions

    28/72

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    1213

    14

    15

    16

    17

    18

    19

    2021

    22

    24

    25

    26

    27

    28

    30

    3133

    34

    35

    36

    37

  • 8/17/2019 1000 Tech. InterviewQuestions

    29/72

    38

    39

    40

    41

    42

    4344

    45

    46

    47

    48

    49

    50

    51

    52

    53

    54

    55

    5758

    59

    60

    61

    62

    63

    64

    65

    66

    67

    68

    69

    70

    71

  • 8/17/2019 1000 Tech. InterviewQuestions

    30/72

    72

    73

    74

    75

    76

    7778

    79

    80

    81

    82

    83

    84

    85

    86

    8788

    89

    90

    91

    92

    93

    94

    9596

    97

    98

    99

    100

    101

    102

    103

    104

    105

    106

    107

    108

    109

    110

    111

    112

  • 8/17/2019 1000 Tech. InterviewQuestions

    31/72

    113

    114

    115

    116

  • 8/17/2019 1000 Tech. InterviewQuestions

    32/72

    ow to generate out o! QFAY(

    how can i #iew structure o! tab"e in s" ser#er( =i#e the uer'+

    Cccidenta""' i de"eted $' tab"e+ ow can i get that tab"e bac.(

    what is diference between ha#ing and where c"ause (

    can 'ou an' bod' te"" $e the how to decrease the "og%"e

    can 'ou an' bod' te"" $e which ser#ice ac. is insta""ed in the s" ser#er(

    Na$e three #ersion o! s" ser#er 2000 and a"so their diferences(

    hich #irtua" tab"e does a trigger use(ow do 'ou %nd the error* how can 'ou .now the nu$ber o! rows efected b' "ast SQ state$

    hat t'es o! integrit' are en!orced b' a !oreign.e' constraint

    interna" "anguage used in s" ser#er 2000(

    ,an we rewrite subueries into si$"e se"ect state$ents or with )oins( A&a$"e(

    hat is ,o#ering -nde&es( >" e&"ain with e&a$"e

    A&"ain the storage $ode"s o! IC>(=i#e the code to create rocedure !or ta.ing databse bac.u in s" ser#er+

    hich co$$and e&ecutes the contents o! a seci%ed %"e(

    hat is the diference between NII and I,OI(

    can an' one "ease send s" uries $ost used in a"ications+

    " send e#er' uer' in s" ser#er2000

    Sca"abi"it'* C#ai"abi"it'* -ntegration with internet* etc+@(

    ,an be used to access data(

    what is ac.age and it uses and how can u ca"" a ac.age

    hich co$$and dis"a's the SQ co$$and in the SQ bufer* and then e&ecutes it(

    s'nta& !or de"eting the database in ; SQ

    hat are the two t'es o! concurrenc'(

    i! a ara$eter is not send to a stored rocedure what t'e o! identi%er is to be used in St andara$eter is not !eed to the a uer' inside the St how to #a"idate with out useing -E conditio

    e$"o'ee tab"e has e$"o'ee id e$id 1 2 3 3 3 4 5 5 5 6 6 6 7 here the reeated two ti$es+how to se"ect the reeated #a"ues on"'+i+e 3*5*6 shou"d a"one co$e+

    - a#e A$"o'ee tab"e ha#ing co"u$n na$e as -*SCCY how to get second $a& sa"ar' !ro$tab"e with id e& - SCCY 1 20000 7 37000 2 5000

    -s it ossib"e to a""ow NF #a"ues in !oreign .e'( - s it ossib"e to use diferent constraints !or co"u$n in the tab"e ?i+e@ ?id int NI; NF*FN-QFAFA@

    ow to write the storerocedure with in the store rocedure( and how can we write the store in a trigger #ice #ersa( " ost $e the e&act answer(

    hat are the new !eatures introduced in SQ Ser#er 2000( hat changed between the re#ioSQ Ser#er and the current #ersion(

    rite a Se"ect Quer' to dis"a' tit"e !or each grou o! records* which are co""ected with ,o$utit"e%e"d co"u$nC co"u$nJ +++++ +++++ +++++ Su$ +++ tit"e%e"d co"u$nC co"u$nJ +++++ +++++ +++++ Su$ +

    =i#e so$e Scenario !or Non ,"usterd inde&( ,an we write s'ste$ de%ned !unctions in side ;heis the Fniue atat'e(

    hat is one o! the %rst things 'ou wou"d do to increase er!or$ance o! a uer'( Eor e&a$"e*'ou that (a uer' that ran 'esterda' too. 30 seconds* but toda' it ta.es 6 $inutes(

  • 8/17/2019 1000 Tech. InterviewQuestions

    33/72

    hat are e&"icit and i$"icit transactions(

    hat does the -NS;AC IE trigger do(

    hat are the two #irtua" tab"es SQ Ser#er $aintains !or triggers(

    hat are the $ain contro"o!Kow ;SQ constructs(

    hat t'es o! integrit' are en!orced b' a !oreign.e' constraint

    ou"d it be a good idea to create an inde& on a tab"e that a"wa's contains 10 records( h' orhat #a"ue cou"d be assigned to Harchar ;'e(

    what is the urose o! using a"ias na$e in s" ser#er( with certain e&a$"e(

    what is cursor(wi"" u " e&"ain $e in detai" with certain e&a$"e(

    what is the diference between #iew and cursor(

    ow to %nd the date and ti$e o! "ast udated tab"e(

    hat is stored rocedure(-ts signi%cance with e&a$"e(

    one tab"e has !our %e"d id*na$e*design*sa"ar'+ i ha#e to %nd $a&i$u$ sa"ar' +

    can 'ou an' bod' te"" $e si$"e reco#er'*!u"" reco#er'*bu". "ogged reco#er' where can use(

    can 'ou an' bod' te"" $e suose database is susect $ode+ how can ta.e to nor$a"(

    se"ect e$id e$na$e !ro$ e$"o'ee hat is the resu"t !or the about uer'(

    rite an SQ uer' i! u want to se"ect the data !ro$ one b"oc. which intern reKects in another

    where do 'ou use -so"ations(gi#e $e so$e e&$a"e(ow do we ro""bac. the tab"e data in SQ Ser#er

    hat is user stored rocedure < it urose(

    hich institute is best !or SQ Ser#er 2005 ;raining(

    ow to "in. u the te&t %"e to a atabase tab"e(

    ow to ebug a Stored >rocedure(

    hat is the diference between ;S and SS-S(

    what is the $ain diference between constraints?"i.e ri$ar' .e' etc++@< )oins(

    hat is the dif between Static Queries and 'na$ic ueries gi#e $e so$e e&a$"es

    how to de"ete du"icate rows !ro$ tab"e

    what is the dif between no"oc. oti$ier and read unco$$itted iso"ation(

    hat is Quer' A&ecution >"an( ow does it he" oti$ie or tune a database dri#en a"icatio

    what is the dif between re#o.e and den'(

    hat a"" db ob)ects can be !ound in SJ database o! a SQ Ser#er instance(

    -! we do an' change in #iew wi"" it afect the database*si$i"ar"' when we do changes in cursorthe databse(with certain e&a$"e(

    'ou are ro#ided with the sing"e tab"e ha#ing sa' 4 co" ie !na$e "na$e age cit' * now the a"" rdis"'ing o! on"' !na$e and "na$e is reuired but in this !or$at sa' $' na$e is abha' .hann

    "i.e this abha'.hanna rahu"ro' gaura#singh the abo#e !or$at is reuired

    i ha#e 4 tab"es++ ;1* ;2* ;3* ;4++ these tab"es ha#e the sa$e structure and the' store the in!orin diferent 'ears++ ;1 stored 2002* ;2 stored 2003* ;3 stored 2004 and ;4 stored 2005++ i wancontents in ;1 to ;2* ;2 to ;3* ;3 to ;4 and ;4 to ;1++ how do i do that( ;e$ tab"es cannot be

    =i#e so$e Scenario !or Non ,"usterd inde&( ,an we write s'ste$ de%ned !unctions in side ;heis the Fniue atat'e(

    hich is better in er!or$ance ,INS;C-N; or ;-==A o#er a co"u$n which restricts sa' aarticu"ar #a"ue in a co"u$n o! a tab"e(

  • 8/17/2019 1000 Tech. InterviewQuestions

    34/72

    hich databases are art o! SQ ser#er de!au"t insta""ation( A&"ain the usage o! each(

    hat is the diference between #iews and stored rocedures( ,an we ha#e inut ara$eters !

    an' one can e&"ain Se"! $aing e"egation e$ote ,redentia"s

    how to %nd nu$ber o! co"u$ns in a tab"e in s" ser#er 2000 and 2005 a"so

    what is $eant b' dea!u"t in s" ser#er(

    how to %nd nu$ber o! co"u$ns in a tab"e in s" ser#er 2000 and 2005 a"sowhtLs the diferece between s"ser#er05 and s"ser#er2000

    h' do we use a"ias !or the tab"e na$e( hat is its i$ortance(

    -s there an' reason !or which we cannot use C!ter trigger with a #iew(

    hat is the diference between windows authentication and s" ser#er authentication+

    ow is the error hand"ing in stored roc o! ;SQ

    hat is c"ustered inde& and nonc"ustered inde&(

    ow $an' c"ustered inde&es and nonc"ustered inde&es can be created in one tab"e(

    hat do we $ean b' atabase ;esting ( hat is the e&act $eaning o! atabase ;esting(

    what are the diferences between s"ser#er 2000 and s" ser#er 2005(

    ow to se"ect istinct co"u$ns !ro$ the tab"e* tab"e ha#ing 20 co"u$ns+

    hat is a transaction iso"ation "e#e" and hat is the ad#antage o! it(

    ow to dis"a' the tab"e data in !or$at using SQ Ser#er+

    ow do 'ou oti$ie stored rocedures (

    ,an we add or re$o#e ri#i"eges(

    when does the database return a constraint #io"ation(ow to uate the data in roduct tab"e* there are 50000 rows+ =i#e the scrit+

    what is ,onstraint( ow $an' t'es o! constraints in SQ (

    hat are inde&ed #iew or $ateria"ised #iew+

    when we use !unction instead o! rocedure(

    how insert se"ected co"u$n on"' (

    how to %nd the articu"ar row in tab"e(

    which uer' u can write to s" ser#er doesnLt wor. inbetween 7+00> to ne&tda' 9+00C

    how to write the uer' to se"ect the rows are in the order o! either 1*3*5*7+++ or 2*4*6*8*+++

    hat is -; ,A,O I>;-IN

    ow wi"" u get 5 'ears bac. record(

    ow to %nd the date and ti$e o! "ast udated tab"e(

    which inde& was created !or the !o""owing co$$and( ,reate inde& a on e$"o'ee?dno@

    what is re"ication( where do u use =o Oe'word(

    , -ntegration ( what is Noti%cation ser#ices (

    iferent ;'es o! Eunctions (

    what is nor$a"iation( what is denor$a"iation(

    iference Jetween #archar and n#archar datat'e(

    hat are the reuire$ents and data that shou"d be had be!ore creating tab"e re"ationshi usinatabase(

    Suose u ha#e a %e"d with FN-QFA OAY+ can u "ea#e two or $ore ce""s NF in SQ Ser#er 20h'+++i! NI; then h'+++++

    -! - ha#e 10 state$ents* indi#idua""' co$$itting each state$ent is eZcient or doing a bu". co10 state$ents at the end is eZcient+Sa' h'(

  • 8/17/2019 1000 Tech. InterviewQuestions

    35/72

    what are batch in s" ser#er(

    ow to de"ete articu"ar #a"ue in the co"u$n o! a tab"e+-s it ossib"e or not(i! ossib"e gi#e it a

    ow to de"ete du"icate records !ro$ a tab"e(?!or suose in a tab"e we ha#e 1000 ecords in200 du"icate ecords * so *how to %ndout that du"icate ecords * how to de"ete those ecordinto seuence order( one $ore thing that there is no ri$ar' .e' at a""@

    create rocedure roc1 ?[a int@ as begin i! [a1 create tab"e \te$?a1 int@ e"se create tab"eend whi"e e&ecuteing the abo#e code it shows error "i.e L\te$ a"read' e&istL +wh' it shows a

  • 8/17/2019 1000 Tech. InterviewQuestions

    36/72

    1

    2

    3

    4

    5

    67

    8

    9

    10

    11

    12

    1314

    15

    16

    18

    19

    20

    22

    23

    24

    25

    26

    27

    28

    29

    30

    31

    32

    33

    34

  • 8/17/2019 1000 Tech. InterviewQuestions

    37/72

    35

    36

    37

    38

    39

    40

    41

    42

    43

    44

    45

    46

    4748

    49

    50

    51

    52

    53

    54

    55

    56

    5758

    59

    60

    61

    62

    63

    64

    65

    66

    67

    68

    69

    70

    71

    72

    73

    74

  • 8/17/2019 1000 Tech. InterviewQuestions

    38/72

    75

    76

    77

    78

    79

    80

    81

    82

    83

    84

    85

    86

    87

    8889

    90

    91

    92

    93

    94

    95

    96

    97

    9899

    \

    \

    \

    \

    \

  • 8/17/2019 1000 Tech. InterviewQuestions

    39/72

    what is #irtua" !unction in cUU

    C; -S CJS;F,; C;C ;Y>A ( >ACSA A>C-N -;+

    C; -S ;A -EEAAN,A JA;AAN CJS;F,;-IN CN AN,C>SFC;-IN( >ACSA A>C-N -;

    ow is data securit' ro#ided in Ib)ect Iriented "anguages( (

    rite a rogra$ to de$onstrate the use o! L,o$ositionL in ,UU

    wht is $a)or dif b/w c and cUU(ow to de"o' web a"iction in web "ogic (

    hat are the ad#antanges o! $odu"arit'

    what is $u"tithreading in cUU * what is diference between $u"tithreading and sing"ethreadin

    what is diference b/w ob)ect based and ob)ect oriented rogra$$ing "anguage(

    hat is the diferances between a abstract ca"ss and inter!ace

    how can we design a $agic suare in cUU(or suggest $e the basic idea o! it+e&"ain d'na$ic binding b' drowing

    what is #irtua" destructor

    can 'ou e&"ain how to use Ba#aJean in >ro)ect

    what is the usage o! c"as te$"ates

    how to swa to #ariab"es without using thrid #ariab"e in )a#a(

    >"ease te"" $e the oos concet with detai"ed answer

    ow o 'ou ,ode ,o$osition and Cggregation in ,UU (

    how to %nd no o! instances o! an ob)ect in +NA;(

    swaing rogra$ does not use third #ariab"e

    A&"ain o"'$orhis$( hat r the t'es o! o"'$orhis$( "s gi#e e&a$"es(

    what is the diference b/w abstract and inter!ace(

    what is the !unction o! LthisL oerator (

    hat is -teration ierarch'( hat is what is Ib)ect beha#iora" concet(

    hat is the outco$e o! the "ine o! code coutabs? 16+5@M( 1@ 16 2@ 17 3@ 16+5

    ow to hand"e e&cetion in cUU* Eor e&a$"e in a !unctions i a$ assigning $e$or' to so$e #in ne&t instructions in a$ di#iding one #ariab"e a"so+ -! this !unctions generates a error whi"e ato those #ariab"e and a"so whi"e di#iding the #ariab"e i! i di#ide b' ero then catch b"oc. how itthis error has cone !ro$ erticu"ar instruction

    Jase c"ass has two ub"ic data $e$bers+ ow can i deri#e a new c"ass with one data$e$ber another data $e$ber as ri#ate(+

    write a code !or thisDtrai"er record-d contains a #a"ue other than 99* then the %"e $ust error wi]-n#a"id A,IX-^?Fser e%ned A&cetion@+

    write a code !or this+ seria"Xnu$ber contained in the header o! the %"e wi"" be read * i! this serithan a re#ious seria" nu$ber within a success!u""' rocessed %"e* or is the sa$e as another swithin a success!u""' rocessed %"e* or i! the %e"d contains an'thing other than 7 digits* then t

    with the reason ]-n#a"id SA-CXNFJA^+

     ;e"" $e the scenario*here we can use inter!aces or Cbstract c"ass+Cnd hat is the diferenceinter!aces and abstract c"ass(

    hat is the correct s'nta& !or inheritance( 1@ c"ass ac"ass D ub"ic suerc"ass 2@ c"ass ac"ass in3@ c"ass ac"ass suerc"ass

  • 8/17/2019 1000 Tech. InterviewQuestions

    40/72

    hat does the code cout?00@M rint( 1@ 0 2@ 1 3@ ,o$i"er errorD #a"ue reuired

    what is a ststic #ariab"e and stitic!unction brieK' e&"ain with e&$"e and in which case we us

    what is the #irtua" !unction o#erhead* and what is it used !or (

    e%nition o! Ib)ect Iriented >rogra$$ing in sing"e "ine(

    what is the need o! abstraction( what is abstraction(what is the abstraction !or stac.(

    h' u change co$an'(

    iference between new oerator and oerator new

    hat is e&tre$e rogra$$ing(

    hat is the diference between and inter!ace and an abstract c"ass (

    ad#antage and disad#antage in cUU::ooswrite a rogra$ !or !unction o#er"oading(

    what is the basic concet o! inheritance(

    hat is a $i&in c"ass(

    hat is an orthogona" base c"ass(

    hich is the on"' oerator in ,UU which can be o#er"oaded but NI; inherited(

    hen is it necessar' to use $e$berwise initia"iation "ist in ,UU(

    hich is the ara$eter that is added to e#er' nonstatic $e$ber !unction when it is ca""ed(

    rite a $acro !or swaing integers

    hat is 'na$ic >o"'$orhis$(

    hen wi"" a constructor e&ecuted(ow is e&cetion hand"ing carried out in cUU(

    hat is "ate bound !unction ca"" and ear"' bound !unction ca""( iferentiate+

    -n cUU there is on"' #irtua" destructors* no constructors+ h'(

    hat do 'ou $ean b' $u"ti"e inheritance and $u"ti"e#e" inheritance( iferentiate between

    hen is an ob)ect created and what is its "i!eti$e(

    hat do 'ou $ean b' ub"ic* ri#ate* rotected and !riend"'(

    hat do 'ou $ean b' in"ine !unction(

    hat is #irtua" c"ass and !riend c"ass(

    hat is !unction o#er"oading and oerator o#er"oading(

    hat do 'ou $ean b' binding o! data and !unctions(

    hat is encasu"ation(

    hat is o"'$orhis$( A&"ain with an e&a$"e+

    hat is abstraction(

    hat do 'ou $ean b' inheritance(

    hat is a scoe reso"ution oerator(

    hat is !riend !unction(

    hat are #irtua" !unctions(

    hat is the outut o! the !o""owing codeD int #?@ P int $0M return $UUM T int $ain?@ P cout,ode cannot co$i"e

    -n the !o""owing dec"aration o! $ain* int $ain?int argc* char Garg#R@* to what does arg#0R us1@ ;he %rst argu$ent assed into the rogra$ 2@ ;he rogra$ na$e 3@ You canLt de%ne $ain

    hat wi"" haen when the !o""owing code is runD int &M whi"e?&100@ P cout&M &UUM T 1@ ;houtut 0123+++99 2@ ;he co$uter wi"" outut 0123+++100 3@ ;he outut is unde%ned

  • 8/17/2019 1000 Tech. InterviewQuestions

    41/72

    hat is ub"ic* rotected* ri#ate(

    hat is the diference between c"ass and structure(

    hat is the diference between an ob)ect and a c"ass(

    hat is an ob)ect(

    hat is a c"ass(

    what is an instance o! a c"ass

    who is the !ounder o! cUU(

    what is ob)ect s"icing(

    h' a oerator?+++@ when there is a co' ctor(

    h' and when is a #irtua" destructor needed(

    hat nor$a" , constructs wor. diferent"' in ,UU(

    wh' cUU is ca""ed II>S( waht is inherutance( what is co$i"er(

    ,ontrast II> and SIC+ hat are tenets o! each(ow is the using?@ attern use!u"( hat is -isosab"e( ow does it suort deter$inistic %na

    hat is the diference between eb Ser#ices using CS and +NA; e$oting using SIC>

    escribe what an -nter!ace is and how it(s diferent !ro$ a ,"ass+

    escribe the diference between a ;hread and a >rocess(

    o"'$orhis$ $eans(

    -n which Scenario 'ou wi"" go !or -nter!ace or Cbstract ,"ass(

     You ha#e one base c"ass #irtua" !unction how wi"" ca"" that !unction !ro$ deri#ed c"ass(

    -n which cases 'ou use o#erride and new base(

    ,an we ca"" a base c"ass $ethod without creating instance(

    hat is ethod o#er"oading(hat is -nheritance* u"ti"e -nheritance* Shared and eeatab"e -nheritance(

    hat is Ib)ect and ,"ass( hat are the diferences between the$(

    hat are the II>S concets(

    is )a#a ure"' oo anguage(

    what is $eant b' %"es(

    hat is II>S and ow it is diferent !ro$ >rocedura" >rogra$$ing (

    //what is wrong with the rogra$$e(( \inc"udeiostrea$+h: te$"ate c"ass %rst: c"ass dd #oid set?@M #oid rint?@M TM #oid dd %rst:DD set?@ P cin::iM T #oid dd %rst:DDrint?@ P cout$ain?@ P dd char:gM g+set?@M g+rint?@M T

  • 8/17/2019 1000 Tech. InterviewQuestions

    42/72

    S No

    1

    2

    3

    4

    56

    7

    8

    9

    10

    11

    12

    13

    1415

    16

    17

    18

    19

    20

    21

    22

    23

    2425

    26

    27

    28

    29

    30

    31

    32

    33

    34

    35

    36

    37

    38

    39

    40

  • 8/17/2019 1000 Tech. InterviewQuestions

    43/72

    41

    42

    43

    44

    45

    4647

    48

    49

    50

    51

    52

    53

    54

    55

    5657

    58

    59

    60

    61

    62

    63

    64

    65

    6667

    68

    69

    70

    71

    72

    73

    74

    75

    76

    77

    78

    79

    80

    81

    82

  • 8/17/2019 1000 Tech. InterviewQuestions

    44/72

    83

  • 8/17/2019 1000 Tech. InterviewQuestions

    45/72

    Questions

    here are a"" +NA; ,o""ection c"asses "ocated (

    hat is isose $ethod in +NA; (

    hat does #irtua" .e'word $ean (

    -! we inherit a c"ass do the ri#ate #ariab"es a"so get inherited (

    -! we inherit a c"ass do the ri#ate #ariab"es a"so get inherited (ow can we achei#e inheritance in HJ+NA; (

    hat is short circuit "ogica" e#a"uation(

    Fse o! ,hec.ed and Fn,hec.ed oerators(

    hat is the use o! de!au"t and Fsing .e'word(

    hat is $ar.er inter!ace(

    id it ossib"e to cast a generic t'e o! deri#ed c"ass to generic t'e o! base c"ass(

    ow to throw an caught e&cetion !ro$ cath b"oc.(

    what is outut ara$eter and ara$eter arra'(what is the diference between assing a #a"ue ob)ect b' re!erence and a re!erence ob)ect b'

    hen co$i"er adds a de!au"t constructor to a c"ass(

    hen static constructor is in#o.ed(

    what is the diference between int and -nt32(

    use o! oerator o#er"oading o! i$"icit < e&"icit oerators(

    hat are #irtua" $ethods( ow are the' used(

    iference between disose and destructor(

    id a generic c"ass can be inherited b' a nor$a" c"ass(

     ;e"" $e so$ething about A&cetions+ hat is the co$$on e&cetion c"ass(

    A&"ain about throw .e'word(what is the diference between %na""' and disose $ethods(

    ow $an' catch b"oc.s can be there !or a sing"e tr' b"oc.(

    ,an we create instance !or Cbstract c"ass(

    hat is the diference between Cbstract and -nter!ace(

    write the S'nta& !or Eunction or ethod I#erriding(

    what is be the o#erhead* i! i use binar' trans$ission+ and wi"" it be sent using &$" te&t or how

    i! i want to trans$it binar' data***wi"" it be suort b' ebser#ices or an' e&cetions ( de%ne

    ,an u create $u"ti"e threads o! e&ecution (

    gi#e an e&a$"e !or susending* resu$ing* and stoing a thread (

    ow is the $e$or' $anaged in ,\+

    ow can we con#ert ata to ataJase ;ab"e in ,\+Net(

    hat is shared inheritance

    diference between .e'word interna" and rotected(

    what is a de"egate( what it is used !or(

    oes c\ suorts destructors(

    -s it ossib"e to i$"e$ent an inter!ace to a structure( -s it ossib"e to e&tend a struct( -s it oinherit a c"ass to struct(

    ow do 'ou re$o#e the ob)ects which are not in use(A&"icit"' or i$"icit"'(hat is the e&act going behind(

  • 8/17/2019 1000 Tech. InterviewQuestions

    46/72

    what is a constructor(

    wh' instance( what are the uses o! instance(

    what are the ad#antages o! c\ o#er #b+net(

    what is the diference between inter!ace and abstraction(

    ,an an Csse$b"' ha#e $u"ti"e #ersions

    iference between ,UU and ,\+netcoding !or de"egates(

    write code !or Eactoria"(

    rite code !or a"indro$e(

    hat haens in s'nchronisation(

    hat is Cbstraction(

    what is Ancasu"ation(

    hat is o#er"oading and how can this be done (

    Cbout a c"ass access seci%ers and $ethod access seci%ers (

    ,an we write one age in c\ and other in #b in one a"ication (

    Arror hand"ing and how this is done (Ios concets (

    hat are the t'es o! threading $ode"s (

    hat are the co""ection c"asses (

    hat is diference between inter!ace inheritance and c"ass inheritance (

    hat is abstract c"ass (

    hat is $ani!est (

    hat does asse$b"'in!o+cs consists (

    iference between $u"ti"e#e" and $u"ti"e inheritance(

    ow do 'ou i$"e$ent $u"ti"e inheritance in +NA;(

    iference between J'Ha" and J'e!(ow do 'ou create $u"ti"e inheritance in ,\(

    ,an 'ou o#erride ri#ate #irtua" $ethods(

    ,an 'ou dec"are the o#erride $ethod static whi"e the origina" $ethod is nonstatic(

    hat does the .e'word #irtua" $ean in the $ethod de%nition(

    ow(s $ethod o#erriding diferent !ro$ o#er"oading(

    hat(s the to +NA; c"ass that e#er'thing is deri#ed !ro$(

    Cre ri#ate c"ass"e#e" #ariab"es inherited(

    hen 'ou inherit a rotected c"ass"e#e" #ariab"e* who is it a#ai"ab"e to(

    oes ,\ suort $u"ti"e inheritance(

    ow do 'ou inherit !ro$ a c"ass in ,\(

    hat(s the i$"icit na$e o! the ara$eter that gets assed into the c"ass( set $ethod(

    ow does a !unction ointer returns a !unction ointer(

    hat(s diferent about switch state$ents in ,\(

    -s goto state$ent suorted in ,\( ow about Ba#a(

    A&"ain about >rotected and rotected interna"* (interna"( accessseci%er(

    7+ ,\ ro#ides a de!au"t constructor !or $e+ - write a constructor that ta.es a string as a ara$want to .ee the no ara$eter one+ ow $an' constructors shou"d - write(

  • 8/17/2019 1000 Tech. InterviewQuestions

    47/72

    hat are Sea"ed ,"asses in ,\(

  • 8/17/2019 1000 Tech. InterviewQuestions

    48/72

  • 8/17/2019 1000 Tech. InterviewQuestions

    49/72

  • 8/17/2019 1000 Tech. InterviewQuestions

    50/72

  • 8/17/2019 1000 Tech. InterviewQuestions

    51/72

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    18

    19

    2021

    22

    23

    24

    25

    26

    27

    28

    29

    30

    31

    32

    33

  • 8/17/2019 1000 Tech. InterviewQuestions

    52/72

    34

    35

    36

    37

    38

    39

    40

    41

    42

    43

    44

    45

    46

    47

    4849

    50

    51

    52

    53

    54

    55

    56

    57

    5859

    60

    61

    62

    63

    64

    65

    66

    67

    68

    69

    70

    71

    72

    73

    74

    75

  • 8/17/2019 1000 Tech. InterviewQuestions

    53/72

    76

    77

    78

    79

    80

    8182

    83

    84

    85

    86

    87

    88

    89

    90

    9192

    93

    94

    95

    96

    97

    98

    99

    \

    \\

    \

    \

    \

    \

    \

    \

    \

    \

    \

    \

    \

    \

    \

    \

  • 8/17/2019 1000 Tech. InterviewQuestions

    54/72

    \

    \

  • 8/17/2019 1000 Tech. InterviewQuestions

    55/72

    ow to ca"" the SQ co$$ands as'nchronous"' in CI+NA; #ersion 2+0

    what is t'ed and unt'ed dataset

    hat are the CI+NA; ,ontro"s(

    hat is the diference between a ataset and ataeader( ,an dataeader ho"d data !ro$ $

    how to create a ui so!tware using 4 otions to answer and how to chec. with answers in the

    what is $eant b' connection oo"ing and e#ent u$b"ing in ado+net

    how wou"d i i$"e$ent drodown"ist in grid#iew using c\

    hat are the three Ib)ects o! CI+

    what is bubb"ed e#ent can u "s e&"ain

    what is diferent between S",o$$and ob)ect and ,o$$and Jeha#iour Ib)ect

    hat is the $ain diference between CI and CI+Net

    h' s" ata eader ob)ect not created

    ow do we in#o.e ueries !ro$ the a"ication

    how to .ee trac. o! inde& in "istbo& ite$s+how do u connect ado+net to s" ser#er

    hen we are running the C"ication* i! an' errors occur in the Stored >rocedure then how wi"

    what is the s'nta& code to o"edb to connect orac"e

    what is the s'nta& code !or o"db to connect orac"e

    what is A&ecute NIn Quer'(

    what is e&ecute sca"ar(

    what is the s'nta& code !or o"db to connect orac"e(

    what is S" Nati#e ,"ient(

    hat is the de!au"t #iew o! ata =rid(

    Eeatures and disad#antages o! dataset(

    CI and CI+NA; diferences(

    what is data Cdater(

    i $a.ing a ro)ect using windows a"ication c\* i want to show user na$e* assword* and onc"ass +how its ossib"e + when i c"ic.ed $' "ogin button a"" ro)ect shou"d be oen+ "s c"eare $

    - "oaded the dataset with a tab"e o! 10 records+ Ine o! the records is de"eted !ro$ the bac.endrecords were resent whi"e udating the data?hich e#ent and stes@ and throw the e&cetio

    once data is !etched into dataset connection gets c"osed+ but in datareader connection is a"wa

    and $ain"' reco$$ended (

    hen $u"ti"e users atte$t to $odi!' data at the sa$e ti$e A& user 1 is udating record at sucess!u""'+now user1 has ress udate button + how to hand"e concurrenc'

      *c$dnew I"eb,o$$andJui"der?o"e@M o"e+Ei""?dataSet11*"ogin@M ataow drowdataSet11+;drow0Rte&tJo&1+;e&tM drow1Rte&tJo&2+;e&tM drow2Rte&tJo&3+;e&tM dataSet11+;ab"es"ogo"e+Fdate,o$$andc$d+=etFdate,o$$and?@M o"e+Fdate?dataSet11*"ogin@M essageJoe&cetion+how to so"#e it

    ow o a e o u$n n a a r s ng + a$ ge ng n#a as &ce on as co"u$n in a datagrid( -d*%rstna$e*"astna$e are the three co"u$ns o! $' datagrid resecti#e"co"u$n?"astna$e@ and udate it+ - did the !o""owing code in ata=ridLs udateco$$and?@*but

    #arid?int@ata=rid1+ataOe'se+-te$+-te$-nde&RM ;e&tJo& "n$?;e&tJo&@e+-te$+,e""s2R+,ontc$dnew S",o$$and?udate custo$er set "astna$eL U str U L where id U #arid U ata=rid1+Adit-te$-nde& 1M ata=rid1+ataJind?@M

  • 8/17/2019 1000 Tech. InterviewQuestions

    56/72

    what is a data#iew(wh' is it used !or(

    ow do 'ou %"ter the data in datagrid(

    ow do 'ou sort the data in datagrid(

    what are the diferences between dataset and datareader(

    what is a dataset(

    hich $ethod do 'ou in#o.e on the ataCdater contro" to "oad 'our generated dataset with

    ow 'ou wi"" set the datare"ation between two co"u$ns(

    ow do 'ou hand"e data concurrenc' in +NA; (

    A&"ain the CI + Net Crchitecture (

    hate are diferent t'es o! ,o$$ands a#ai"ab"e with ataCdater (

    A&"ain acid roerties(

    hat are the diferent row #ersions a#ai"ab"e(

    hich are the diferent -so"atione#e"s (

    ,an 'ou edit data in the eeater contro"(A&"ain what a difgra$ is and its usage (

    ow to add >ri$ar' .e' in ataSet

    ow to sort the data in atatab"e

    ow to retrie#e the third tab"e #a"ue !ro$ the data set(

    can an'bod' show $e the structure o! CI+NA;

    hat is seuence o! code in retrie#ing data !ro$ database (

    iference between CI and CI+net (

    hat ro#ider CI+net use b' de!au"t (

    In I>+net (

    Seuence to connect and retrie#e data !ro$ database useig dataset (Cbout ado+net co$onents/ob)ects+ Fsage o! data adaters and te"" the stes to retrie#e data

    ow to 'ou dec"are connection strings and how to 'ou $a.e use o! web+con%g (

    hat is the .e' !eature o! CI+NA; co$ared to CI (

    hat does CI+NA; consists o! (

    here does CI+NA; and web ser#ices co$e in the architecture (

    ,a"" a stored rocedure !ro$ ado+net and ass ara$eter to it (

    rite stes o! retrie#ing data using ado+net (

    Cbout CI and its ob)ects (

    hat ro#iders do 'ou use to connect to orac"e database (

    hat ro#iders does ado+net uses interna""' (

    hat is dataset and te"" about its !eatures+ hat are eui#a"ent $ethods o! re#ious* ne&t etc

    here do 'ou store connection string (

    hat does connection string consists o! (

    hat is the ro#ider and na$esaces being used to access orac"e database(

    ow do we in#o.e ueries !ro$ the a"ication (

    hat are the stes in connecting to database (

    hat are the three Cdo ob)ects(

    -! i a$ e&ecting a sing"e resu"t !ro$ s"ser#erdatabase then what co$$and shou"d i !o""ow (s?co$$andbeha#iour+sing"eresu"t@or s"co$$and+e&ecutesca"ar?@

  • 8/17/2019 1000 Tech. InterviewQuestions

    57/72

    can we ha#e $u"ti"e datatab"es in a datareader (

    hat is dataco"u$n and how it is used(

    hat is a datagrid(

    hat are the !unctions o! o"edbdataadater(

    hat is a datatab"e(

    hat is the diference between o"edbreader and datasetwhi"e connecting(hat is a dataset(

    hich t'e o! database is used whi"e rocessing d'na$ic database(

    ow $an' co$$ands does the o"edbco$$and ta.es(what are the'(

    ow to get the new o"edb connection o! orac"e in database rogra$$ing(

    hat are the ad#antages o! o"edb co$ared with other c"asses(

    hat is a database ro#ider(

    ow to get o"edb connection(

    ow do 'ou $erge two datasets into the third dataset in a si$"e $anner(

    hat is the use o! ara$eter ob)ect(

    iferences between dataset+c"one and dataset+co'(hat haens when u tr' to udate data in a dataset in +NA; whi"e the record is a"read' de"et

    hat are the diferences between C* CF;I and A&"icit $odes in retrie#ing data !ro$ SQ

    ow to chec. i! a datareader is c"osed or oened(

    ow to %nd the count o! records in a dataset(

    hat haens when we issue ataset+ead$" co$$and(

    A&"ain diferent $ethods and >roerties o! ataeader which 'ou ha#e used in 'our ro)ect(

    hich $ethod do 'ou in#o.e on the ataCdater contro" to "oad 'our generated dataset with

    iference between ataeader and ataCdater / ataSet and ataCdater(

    hat are the diferent na$esaces used in the ro)ect to connect the database(

    iference between IAJ >ro#ider and S","ient (hat are re"ation ob)ects in dataset and how < where to use the$(

    ow wou"d u connect to database using +NA;(

    Eet,h ecords No 5 to 10 Ero$ ataset

    what urose o! -nde&ing creating( direct"' we can search the reired row with the he" o! ue

    t'es o! Store rocedure in S"ser#er2000(

    hat are the iferent "a'ers in CI+Net(

    hat are the attirbutes o! ataSet(

     ;he answers which osted abo#e is not satis%ed $' reuire$ent(

    ow to and"e the e&cetions in S"sr#er2000

    hat is re!erence b' #a"ue how does it wor.s in +net(

    hat is the agic ;ab"es in S"ser#er2000(

    what is connection oo"ing (

    how to add a se"ected row o! a grid#iew to another grid#iew without re"oading the age((

    e&"ain connection "ess and with connection(di!erence between data reader*data set*data adasing"e a"ication( i! 'es e&"ain with si$"e code*i! no e&"ain(

    i ha#e two te&tbo&es one !or user na$e and another !or assword + i ha#e a tab"e na$e co$doubt is how co$are userna$e te&tbo& with na$e co"u$n and how co$are assword te&tb

  • 8/17/2019 1000 Tech. InterviewQuestions

    58/72

    $a.e a "ogin contro"((

    o"edbdataadter with $s access in c\+net gi#ing e&cetion S'ste$+ata+I"eb+I"ebA&cetiadater+udate?dataset*tabna$e@M how to udate the database !ro$ dataset(

  • 8/17/2019 1000 Tech. InterviewQuestions

    59/72

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    1415

    16

    17

    18

    19

    20

    21

    2223

    24

    25

    26

    27

    28

    29

    30

    31

    32

    33

    34

    35

    36

    37

  • 8/17/2019 1000 Tech. InterviewQuestions

    60/72

    38

    39

    40

    41

    42

    43

    44

    45

    46

    47

    48

    49

    5051

    52

    53

    54

    55

    56

    57

    5859

    60

    61

    62

    63

    64

    65

    66

    67

    68

    69

    70

    71

    72

  • 8/17/2019 1000 Tech. InterviewQuestions

    61/72

    73

    74

    75

    76

    77

    78

    79

    80

    81

    82

    83

    86

    87

    88

    89

    90

    9192

    93

    94

    95

    96

    97

    98

    99

    100

    101

    102

    103

    104

    105

    106

    107

    108

  • 8/17/2019 1000 Tech. InterviewQuestions

    62/72

    109

    110

    111

    112

    113

    114115

    116

    117

    118

    119

    120

    121

    122

    123

    124

    125

    126

    127

    128

    129

    130131

    132

    133

    134

    135

    136

    137

    138

    139

    140

    141

    142

    143

    144

    145

    146

    147

  • 8/17/2019 1000 Tech. InterviewQuestions

    63/72

    148

    149

    150

    151

    152

    153154

    155

    156

    157

    158

    159

    160

    161

    162

    163164

    165

    166

    167

    168

    169

    170

    171

    172173

    174

    175

    176

    177

    178

    179

    180

    181

    182

    183

    184

    185

  • 8/17/2019 1000 Tech. InterviewQuestions

    64/72

    what is state"ess (

    hat is a indows Ser#ice and how does its "i!ec'c"e difer !ro$ a standard AA(

    ,an u ab"e to get the &$" docu$ent in cr'sta" reort i! 'es how its ossib"e

    iferences between HJ+Net and ,\* re"ated to II>S concets

    how to retrie#e data using web ser#ices in as+net "s gi#e $e the code and e&"ain $e brieK

    hat are the data t'es is ossib"e to store in session( and can we store dataset in session(

    what is SQ cache -n#a"idation(

    ,an a $aster age inherit another $aster age(

    ow does SQ Ser#er session state wor.s

    hat are a"" the wa's to %nd out t'es o! ob)ects(

    hich institute ro#ide good >ro)ect training on +Net techno"ogies in h'd(

    when to use webser#ice and when to use re$otong dif between the$what is du$bin+e&e(

    what is code access securit'*ro"e based securit' e&"ain with e&a$"e

    -n ,\+net a"ication is run on "inu& $ichine

    what is webart( what r the arts in this webart ?one@

    which is !aster Crra'tist Ir ,o""ection ( how( hows the ashing wor.s interna""' (

    hat is the use o! "ocation tag in web+con%g %"e

    hat is the diference between a session ob)ect and cache ob)ecthat is >artia" in CS>+NA; 2+0(

    ow can 'ou change a aster age d'na$ica""' in which e#ent o! age "i!e c'c"e(

    hat is reinit e#ent in CS>+NA; 2+0 age "i!e c'c"e(

    iferentiate session and coo.ie

    hat is de!erence between as+net* #b+net* c\ < )\

    ow to de"o' the Cs+Net >ro)ect (

    hat is ebSer#ice (

    what to $agage the state $ana$ent in as+net with resect to inXroc. and outXroc.

    hat is Ccti#e irector'( hat is the na$esace !or that(

    hat e#ent %red during* when datagrid c"ic.(

    iferences between session state and C"ication state(

    A&"ain =enerics(

    ith out eb+con%g can we e&ecutes the a"ication(

    hat is the $a&i$u$ a$ount o! $e$or' an' sing"e rocess on indows can address( -s thisthe $a&i$u$ #irtua" $e$or' !or the s'ste$( ow wou"d this afect a s'ste$ design(

    - ha#e a te&tbo& * assign reuired %e"d #a"idator and i ha#e two buttons 1@ sa#e 2@ cance" * i w#a"idator run on"' when i c"ic. sa#e button* donLt #a"idate cance" button * what to do(

    Ine a"ication ha#e three !or$s !or registration +sub$it button is at third !or$+a!ter %""ing thu ha#e to c"ic. sub$it button+C!ter c"ic.ing the sub$it button a"" the #a"ues in %rst*second< thon s" ser#er+how to hand"e this situation +

    code !or Eor e#er' 5da's s'ste$ has to create 1te&t %"e with the corresonding date and it hadri#e b' using web a"ications

    which is best ossib"e wa' to add data source to data grid when the data is huge?10 "ac. recoa erticu"ar row

  • 8/17/2019 1000 Tech. InterviewQuestions

    65/72

    what is NA; Era$ewor. (

    is there an' third art' too"s are using in +net techno"ogies( what are there ( gi#e $e the brie

    hat is the -$rsonation(and what is the i$ortence o! that(

    ,an we use the )a#a scrit code in +Net ,ode behind(

    hat is the co$i"ed ob)ect(

    what are the %"es used in as +net

    hat is oerator o#er"oading in dotnet

    hat is unti$e ca""ab"e wraer(

    what is ,I Ib)ect in ot net(

    we can ab"e to dis"a' a essageJo& in as +net without using an' scrit "angages(what is the diference b/w +net 1+1 and 2+0 (

    i! u r ro)et consist o! 4 eo"e $eans how can u $anage the %"e

    how can i ca"" outut ara$eters !ro$ ado+net

    ow to co$$unicate #ia e$ote ro&' with ,"ient( a@arsha"J'e! b@arsha" b' Ha"ue or Cn'

    a@,I ,a""ab"e raer b@unti$e ,a""ab"e hich one o! the abo#e is in32 C>- in +Net(

    +Net oesnLt ofer eter$inistic istruction ( a@ ;rue b@ Ea"se

    hat co$$and "ine used to generate unti$e ca""ab"e wraer+

    ,IU Fsed XXXXXXXXXXXXXXXX -so"ation e#e"

    hat is the diference between >ostbac. and -sostbac. >roert'(

    how to con#ert #archar into datat'e int+++++++++++++ in CS>

    ow ,an we use $u"ti"e !or$s in sing"e as+net a"ication(

    hat is >ath(

    wh' $an' web+con%g %"es are used in are ro)ect

    ow esonse+Kush wor.s in ser#er+A&ecute

    which one is !aster e&ecute reader* sca"ar* e&ecute non uer' (

    what is eeater ,ontro"* hen it is used*ow it is used* what t'e o! te$"ate is used !or re

    hat is ,;A in s" ser#er 2005(

    what is i$ersonation in CS>+NA;(

    hat is the i$ortence o! the -N;AEC,A( but not the inheritence concet(and wh' we r dec"e$t' $ethods in that( we can direct"' i$"e$ents with in the c"ass .now( ;e"" $e the i$or

    - ha#e one +Net a"ication and i ha#e two databases which is in SQ ser#er2000 and one $orIC,A( how can i access the database !ro$ diferent atabases(

    hat is the answer !or hich con%guration ;oo" 'our using $eans ( we ha#e to te"" about --SEra$ewor. or HSS( =i#e $e in brie! (

    can s/w ua"it' assurance engineer switch %e"d to rogra$$ing side i $ #er' $uch interestedrogra$$ing but not $uch good in it

    hich o! the !o""owing hosts ,anLt be used to create +net C"ication( a@ --S b@ -nternet A&"ore

    indows She"" hich one is correct(

    i cant get >ri$ar' outut se"ection !ro$ the ia"og bo& hi"e ,reating Setu and e"o'$enta"ication how to so"#e it++

    can $achine+con%g %"e or#errides web+con%g+ Eor e&a$"eD i! u set session ti$eout as 30 $in%"e to a articu"ar a"ication and i! u set session ti$eout as 10 $ins in $achin+con%g+ what wwhich session is set to the a"iction(

  • 8/17/2019 1000 Tech. InterviewQuestions

    66/72

    -s ;here an' ;hird art' too"s are using in +Net ;echno"ogies( ,an u A&"ain(

    ow can we aintain $ore than on con%g %"e in one +Net web a"ication and how(

    ow to re!resh a age in as+net

    ow can i inc"ude both ,\ and #b+net c"asses in sa$e so"ution(

    ,an we use $u"ti"e !or$s in sing"e as+net a"ication(

    ,an i ha#e both ,\ and #b+net code in sa$e asse$b"'(how(

    what is co$$and "ine co$i"er+what are the stes and how it is re"ated to debugging+

    ,an we change the session ti$eout in CS>+NA;* i! 'es then how and !ro$ where(

    what is the reuire$ent that +Net web ser#ices can access the )a#a a"ication(

    how to get the #b6+0 ,I ,o$onent in to the +Net a"ication(

    Cn' bod' a#ing SCA>I-N; ateria" "( "ease $ateria" to send rasad+.12[g$ai"+co$

    hat is ;S ac.age(

    hat is seuence o! code in retrie#ing data !ro$ database(

    ow do 'ou de%ne authentication in eb+,on%g(

    hat is custo$ tag in eb+,on%g(

    hat are the diferences between ataset and ataeader(

    hat are the diferences between ;race and ebug(

    hat are the t'es o! authentications in CS>+NA;(

    hat is Jo&ing and Fnbo&ing(

    hat does asse$b"'in!o+cs %"e consist o!(

    hat is gacuti"+e&e( here do we store asse$b"ies* Shou"d sn+e&e be used be!ore gacuti"+e&e(

    hat is strong na$e and which too" is used !or this(

    ow to authenticate users using eb+,on%g (

    ow to write un$anaged code and how to identi!' whether the code is $anaged /un$anaged

    hat are as'nchronous ca""bac.s(

    hat is shared and ri#ate asse$b"'(

    ow do 'ou register a +NA; asse$b"'(

    hat is a eeater ,ontro" and how does it wor.s( and what is the difrence b/w =rid#iew*datreeater contro"(

    Suose there is one web !ar$ with 3 ser#ers inside with sa$e con%guration and the sa$e rinside a"" ser#ers+hich session $ode is usde !or a"" these and wh'(

    Suose i create one a"ication in #s 2008 and it is running in the "atest #ersion o! -A*wi"" it rand other browsers with "ow #ersion(

    hich .e'word 'ou shou"d use !or c"ass not to e&tend( hich .e'word to be used !or $a.ing accessib"e within the asse$b"' on"' what are the authentication $ode o! CS>+NA; ow wi"" 'o

     Ba#aScrit !unction using codebehind(

    ow wi"" 'ou write a web ser#ice !or secure soc.et "a'er( hat is secure soc.et( a#e 'ou dorogra$$ing(

    - a$ tr'ing to i$"e$ent sorting !aci"it' !ro$ c"ient side code in =ridHiew ,ontro"+ So how canCrra' inside c"ient side code ?using Ba#aScrit@* i want to assign $' ataSet ob)ect dec"ared aSer#er side?in code behind@ to the arra' ?on c"ient side@

    ow can we do the c"ient side #a"idation and Ser#er side #a"idations( Jut i to"d that Ct c"ient s

    he" o! #a"idations contro" or b' )a#ascrit( Jut - dont .now about the Ser#er side contro"s A&

  • 8/17/2019 1000 Tech. InterviewQuestions

    67/72

     ;'es o! session $anage$ent in CS>+NA;(

    ow do we in#o.e ueries !ro$ the a"ication(

    iference between J'Ha" and J'e!(

    hat is bo&ing and how it is done interna""'(

    hat is reKection and disad#antages o! reKection(

    ow do 'ou er!or$ #a"idations(hat is the diference between and Ccti#e d"" and contro"(

    ow do 'ou add a )a#ascrit !unction !or a "in. button in a datagrid(

    hat is the s'nta& !or datagrid and seci!'ing co"u$ns(

    hat is custo$ contro"+ hat is the diference between custo$ contro" and user contro"(

    ow do 'ou $anage session in CS> and CS>+NA;(

     ;'es o! ob)ects in CS>(

    iference between +NA; co$onents and ,I co$onents(

    Cbout ,* reKection and asse$b"ies(

    hat is #iewstate(

    hat is an a"ication do$ain(

    hat are runti$e hosts(

    ow do 'ou do #a"idations+ hether c"ientside or ser#erside #a"idations are better+(

    Eeatures in CS>+NA;( ;'es o! caching+ ow to i$"e$ent caching(

    iference between +NA; and re#ious #ersion(

    -s o#er"oading ossib"e in web ser#ices(

    Cbout ,S and ,;S(

    ,aching techniues in +NA;(

    Cbout re$oting and web ser#ices+ iference between the$(

    Fsage o! web+con%g(

    what is asse$b"'(

    Cbout =arbage ,o""ector(

    Eina""' and disose $ethods(

    what is generics(

    what are tt$odu"e and ttand"er(

    what is ub"isher(

    a#e 'ou used $icroso!t dataaccess b"oc.s and A&cetion b"oc.s(

    ow can 'ou e&ecute stored rocedure !ro$ windows a"ication(

    ow can 'ou achie#e nested asterages in 2+0(

    can we store te&tbo& and co$ co$onents in #iewstate(

    Eor a ser#er contro"* 'ou need to ha#e sa$e roerties "i.e co"or $a&"ength* sie* and a""owedthroughout the a"ication+ ow do 'ou hand"e this(

    ow do 'ou hand"e session $anage$ent in CS>+NA; and ow do 'ou i$"e$ent the$+ ow dcase o! SQSer#er $ode(

    Suose 'ou dis"a' a data ha#ing 200 records in a datagrid+ ;hen 'ou edit 100 records o! the'ou wi"" ress udate button*a"" 100 records shou"d be udated in sing"e shot rather than readrecord and udating+ ow to do it(

  • 8/17/2019 1000 Tech. InterviewQuestions

    68/72

    A&"ain Eactor' attern(

    Sing"eton esign attern(ow do 'ou achie#e it(

    what are webser#ices(-n which circu$stances we can go !or webser#ices(

    what are artia" c"asses and their use(

    what are artia" ostbac.s(

    hat are c"r(cts(c"s(Securit'wise hat are the Anhance$ents in 2+0(

    Cart !ro$ -A what are the enhance$ents in as+net 2+0(

    a#e u used webcontro"s(;e"" $e so$ething about these(

    ,an 'ou store dataset in #iewstate(

    what is isco(what it wi"" do(

    what is soa(

    can we ca"" webser#ice in t$" !or$(

    ow u re!er webser#ices(

    ow can 'ou assign st'"es to web!or$s(

    what is $ani!est(ow can 'ou get ub"ic .e' in!or$ation(

    ub"ic .e'(

    what is strong na$e(

    what is shared asse$b"'(

    hat is diference between $achine+con%g and eb+,on%g(

    hat is web+con%g+ ow $an' web+con%g %"es can be a""owed to use in an a"ication(

    ow do 'ou re"ate an as& age with its code behind >age(

    ,an we throw e&cetion !ro$ catch J"oc.(-! 'ou are using co$onents in 'our a"ication* how can 'ou hand"e e&cetions raised in a co

    ow do 'ou do e&cetion $anage$ent(

    iference between as and as+net(

    iference between tttost and ttget ethods(

    what is caching(

    -n this case i! e&cetion occure in atabase which catch b"oc. wi"" be e&e&cuted(

    -n tr' catch b"oc.s one is nor$a" catch b"oc. and another is s"catche&cetion b"oc.

    what is $anaged and un$anaged code(

    ow do u de"o' ur ro)ect(

    hat is bo&ing( ow we can use it(

    iferntiate between ata=rid and ataist

    hat data t'es do the angeHa"idator contro" suort(

    hat are the t'es o! asse$b"ies and where can u store the$ and how a ri#ate asse$b"' is sing"e a"ication* and is stored in that a"icationLs insta"" director' ?or a subdirector' therein

    hat is the iference between eb+con%g and g"oba"+asa&( ,an we write connection String cg"oba"+asa&(

  • 8/17/2019 1000 Tech. InterviewQuestions

    69/72

    1 what is DBMS and what are thos application programs?

    2 Diff between DBMS and RDBMS.

    3 What is normalisation and explain II normal form

    4 Differences b/w 3f and B!"

    5 what are the three t#pe of anamolies in DBMS

    6 $ow to o%ercome the anamolies7 What is normalisation?

    8 $ow man# t#pes of "s are there and explain the "s

    9 What is red&ndanc#?

    \ What is primar# 'e# and explain?

    \ What is difference b/n &nix and lin&x (S

    \ What is fragmentation and t#pes of fragmentation

    \ What is data baseschema?

    \ What is thrashing

    \ what is database?

    \ what is the f&nction of )(I?\

    \ What is the diff between co&nt and co&nt*+,

    \ -he# ga%e a table and as'ed a &er# to print cit# name where more than

    \ fi%e people are li%ing

    \ !onditions that are to be applied when 0gro&pb# cla&se0 is &sed

    \ What are s&b&eries with example 1proced&re to write a &er# with

    \ s&b&eries

    \ program to add two n&mbers

    \ ga%e two dates li'es 2454677 664898677:

    \ write a program to calc&late n&mber of da#s b/n the gi%en dates\ what is the diff ;R( and $@I; cla&ses in SA

    \ &er# &sing gro&p b# and ha%ing cla&ses

    \ what r the diff t#pes o f Coins and explain them

    some &eries based on a,gro&p b# cla&se b,ha%ing cla&se

  • 8/17/2019 1000 Tech. InterviewQuestions

    70/72

    1

    2

    3

    4

    5

    67

    8

    9

    \

    \

    \

    \

    \

    \

    \\

    \

    \

    \

    \

    \

    \

    \

    \

    \\

    \

    \

    \

    \

    \

    \

    \

    \

    \

    \

    \

    \

  • 8/17/2019 1000 Tech. InterviewQuestions

    71/72

    A&"ain about the !eature Cnon'$ous t'e(

    hat are ,onso"e C"ications in HJ+NA;(

    hat is the i$ortance o! the Ition state$ent(

    ow do - con#ert te&t !ro$ "ower case to uer case in HJ+NA;(

    ow do - hand"e ate and ;i$e in HJ+NA;(

    ow to get co$uter na$e and -> address(hat is the concet o! destructors in HJ+NA;(

    ow do - con#ert one ata;'e to other using the ,;'e Eunction(

    A&"ain the Kow !or a si$"e win32 based a"ication (

    ow HJ -$"e$ents the isonnected Crchitecture as "i.e HJ+Net(

    ow to send &$" %"e on ser#er using ;;> rotoco"(

    what is nonXdeter$inistic %na"iation(

    A&"ain about #isua" basic(

    A&"ain about +NA;(

    Na$e so$e o! the !eatures resent in HJ 2005(

    A&"ain and brie! about raid a"ication de#e"o$ent too"(escribe about Hisua" basic+NA;(

    hat are the #arious oen source too" a#ai"ab"e !or HJ+NA;(

    hat is +net(

    iferences between HJ+Net and ,\* re"ated to II>S concets D CNS D#b is ob)ect based and #

    hats the diference bt+ +d"" e&tension and +e&e e&tension %"es(

    what is the diference between string and stringbui"der(

    ow can we re$o#e and"ers at un ti$e (

    hat are Bagged Crrar's (

    1@hat is the diference between #b and #b+net ( 2@ow to insert row b' row data in datagr

    iferences between HJ+Net and ,\* re"ated to II>S concets-s it ossib"e to create a !o"der on the seci%ed "ocation in the database through HJ+net+ ' e

    ow to store and retrie#e i$ages in SQ ser#er database through HJ+NA;(

    hat is diferent between eb+,on%g and achine+,on%g and here it wi"" be (

    hat are Sate""ite Csse$b"ies(

    hat do 'ou $ean b' LItion Strict InL (

    hat do 'ou $ean b' =arbage ,o""ection in HJ+net

    iference Jetween Crra' and arra' "ist(

    what is diference between #b and #b+net(

    hat are na$esaces and what is the i$ortance o! the$(

    hat is ;r' ,atch (Eina""' A&cetion and"ing(

    hat is the base c"ass o! +net(

    -n #b+net2005 how to connect s"ser#er2000 and dis"a' the$ %e"ds in cr'sta" reort++

    iference between HJ and HJ+NA;(

    http://var/www/apps/conversion/tmp/scratch_5/What%20are%20Console%20Applications%20in%20VB.NET%3Fhttp://var/www/apps/conversion/tmp/scratch_5/What%20is%20the%20importance%20of%20the%20Option%20statement%3Fhttp://var/www/apps/conversion/tmp/scratch_5/How%20do%20I%20convert%20text%20from%20lower%20case%20to%20upper%20case%20in%20VB.NET%3Fhttp://var/www/apps/conversion/tmp/scratch_5/How%20do%20I%20handle%20Date%20and%20Time%20in%20VB.NET%3Fhttp://var/www/apps/conversion/tmp/scratch_5/How%20to%20get%20computer%20name%20and%20IP%20address%3Fhttp://var/www/apps/conversion/tmp/scratch_5/What%20is%20the%20concept%20of%20destructors%20in%20VB.NET%3Fhttp://var/www/apps/conversion/tmp/scratch_5/How%20do%20I%20convert%20one%20DataType%20to%20other%20using%20the%20CType%20Function%3Fhttp://var/www/apps/conversion/tmp/scratch_5/Explain%20the%20flow%20for%20a%20simple%20win32%20based%20application%20%3Fhttp://var/www/apps/conversion/tmp/scratch_5/How%20VB%20Implements%20the%20Disonnected%20Architecture%20as%20like%20VB.Net%3Fhttp://var/www/apps/conversion/tmp/scratch_5/How%20to%20send%20xml%20file%20on%20server%20using%20HTTP%20protocol%3Fhttp://var/www/apps/conversion/tmp/scratch_5/what%20is%20non_deterministic%20finalization%3Fhttp://var/www/apps/conversion/tmp/scratch_5/Explain%20about%20visual%20basic%3Fhttp://var/www/apps/conversion/tmp/scratch_5/Explain%20about%20.NET%3Fhttp://var/www/apps/conversion/tmp/scratch_5/Name%20some%20of%20the%20features%20present%20in%20VB%202005%3Fhttp://var/www/apps/conversion/tmp/scratch_5/Explain%20and%20brief%20about%20rapid%20application%20development%20tool%3Fhttp://var/www/apps/conversion/tmp/scratch_5/Describe%20about%20Visual%20basic.NET%3Fhttp://var/www/apps/conversion/tmp/scratch_5/What%20are%20the%20various%20open%20source%20tool%20available%20for%20VB.NET%3Fhttp://var/www/apps/conversion/tmp/scratch_5/What%20is%20.net%3Fhttp://var/www/apps/conversion/tmp/scratch_5/Whats%20the%20difference%20bt.%20.dll%20extension%20and%20.exe%20extension%20files%3Fhttp://var/www/apps/conversion/tmp/scratch_5/what%20is%20the%20difference%20between%20string%20and%20stringbuilder%3Fhttp://var/www/apps/conversion/tmp/scratch_5/How%20can%20we%20remove%20Handlers%20at%20Run%20time%20%3Fhttp://var/www/apps/conversion/tmp/scratch_5/What%20are%20Jagged%20Arrarys%20%3Fhttp://var/www/apps/conversion/tmp/scratch_5/Differences%20between%20VB.Net%20and%20C%23,%20related%20to%20OOPS%20conceptshttp://var/www/apps/conversion/tmp/scratch_5/Is%20it%20possible%20to%20create%20a%20folder%20on%20the%20specified%20location%20in%20the%20database%20through%20VB.net.%20My%20Requirement%20is%20to%20create%20a%20folder%20on%20the%20given%20location%20in%20the%20database%20.http://var/www/apps/conversion/tmp/scratch_5/How%20to%20store%20and%20retrieve%20images%20in%20SQL%20server%20database%20through%20VB.NET%3Fhttp://var/www/apps/conversion/tmp/scratch_5/What%20is%20different%20between%20Web.Config%20and%20Machine.Config%20and%20Where%20it%20will%20be%20%3Fhttp://var/www/apps/conversion/tmp/scratch_5/What%20are%20Satellite%20Assemblies%3Fhttp://var/www/apps/conversion/tmp/scratch_5/What%20do%20you%20mean%20by%20'Option%20Strict%20On'%20%3Fhttp://var/www/apps/conversion/tmp/scratch_5/What%20do%20you%20mean%20by%20Garbage%20Collection%20in%20VB.nethttp://var/www/apps/conversion/tmp/scratch_5/Difference%20Between%20Array%20and%20array%20list%3Fhttp://var/www/apps/conversion/tmp/scratch_5/what%20is%20difference%20between%20vb%20and%20vb.net%3Fhttp://var/www/apps/conversion/tmp/scratch_5/What%20are%20namespaces%20and%20what%20is%20the%20importance%20of%20them%3Fhttp://var/www/apps/conversion/tmp/scratch_5/What%20is%20Try-%20Catch%20%3FFinally%20Exception%20Handling%3Fhttp://var/www/apps/conversion/tmp/scratch_5/What%20is%20the%20base%20class%20of%20.net%3Fhttp://var/www/apps/conversion/tmp/scratch_5/In%20vb.net2005%20how%20to%20connect%20sqlserver2000%20and%20display%20them%20fields%20in%20crystal%20report..http://var/www/apps/conversion/tmp/scratch_5/Difference%20between%20VB%20and%20VB.NET%3Fhttp://var/www/apps/conversion/tmp/scratch_5/Difference%20between%20VB%20and%20VB.NET%3Fhttp://var/www/apps/conversion/tmp/scratch_5/In%20vb.net2005%20how%20to%20connect%20sqlserver2000%20and%20display%20them%20fields%20in%20crystal%20report..http://var/www/apps/conversion/tmp/scratch_5/What%20is%20the%20base%20class%20of%20.net%3Fhttp://var/www/apps/conversion/tmp/scratch_5/What%20is%20Try-%20Catch%20%3FFinally%20Exception%20Handling%3Fhttp://var/www/apps/conversion/tmp/scratch_5/What%20are%20namespaces%20and%20what%20is%20the%20importance%20of%20them%3Fhttp://var/www/apps/conversion/tmp/scratch_5/what%20is%20difference%20between%20vb%20and%20vb.net%3Fhttp://var/www/apps/conversion/tmp/scratch_5/Difference%20Between%20Array%20and%20array%20list%3Fhttp://var/www/apps/conversion/tmp/scratch_5/What%20do%20you%20mean%20by%20Garbage%20Collection%20in%20VB.nethttp://var/www/apps/conversion/tmp/scratch_5/What%20do%20you%20mean%20by%20'Option%20Strict%20On'%20%3Fhttp://var/www/apps/conversion/tmp/scratch_5/What%20are%20Satellite%20Assemblies%3Fhttp://var/www/apps/conversion/tmp/scratch_5/What%20is%20different%20between%20Web.Config%20and%20Machine.Config%20and%20Where%20it%20will%20be%20%3Fhttp://var/www/apps/conversion/tmp/scratch_5/How%20to%20store%20and%20retrieve%20images%20in%20SQL%20server%20database%20through%20VB.NET%3Fhttp://var/www/apps/conversion/tmp/scratch_5/Is%20it%20possible%20to%20create%20a%20folder%20on%20the%20specified%20location%20in%20the%20database%20through%20VB.net.%20My%20Requirement%20is%20to%20create%20a%20folder%20on%20the%20given%20location%20in%20the%20database%20.http://var/www/apps/conversion/tmp/scratch_5/Differences%20between%20VB.Net%20and%20C%23,%20related%20to%20OOPS%20conceptshttp://var/www/apps/conversion/tmp/scratch_5/What%20are%20Jagged%20Arrarys%20%3Fhttp://var/www/apps/conversion/tmp/scratch_5/How%20can%20we%20remove%20Handlers%20at%20Run%20time%20%3Fhttp://var/www/apps/conversion/tmp/scratch_5/what%20is%20the%20difference%20between%20string%20and%20stringbuilder%3Fhttp://var/www/apps/conversion/tmp/scratch_5/Whats%20the%20difference%20bt.%20.dll%20extension%20and%20.exe%20extension%20files%3Fhttp://var/www/apps/conversion/tmp/scratch_5/What%20is%20.net%3Fhttp://var/www/apps/conversion/tmp/scratch_5/What%20are%20the%20various%20open%20source%20tool%20available%20for%20VB.NET%3Fhttp://var/www/apps/conversion/tmp/scratch_5/Describe%20about%20Visual%20basic.NET%3Fhttp://var/www/apps/conversion/tmp/scratch_5/Explain%20and%20brief%20about%20rapid%20appli