Upload
akshaymahajan1991
View
216
Download
0
Embed Size (px)
Citation preview
8/9/2019 Buid. Web Portals ASP.net,Mock Test
1/9
METIS MEDIA-VIEW COMPUTERS,NASHIK-13
Authorize Stu! Ce"tre #CMOU, CODE$%&11'
Su()e*t $ 'UI+DIN WE' PORTA+S THROUH ASPNET E./0$ /" 212
Tot/4 M/r56$1
Q.1. Pick up the correct alternative for each of the following questions:
(2 marks each)
[1] hich of the following statements are correct a!out the "#.$%& co'e
snippet given !elow
int i
int * + new int( )
i + 1,
* + 2, -tring str
str + i.&o-tring( )
str + *.&o-tring( )
"hoice a &his is a perfectl worka!le co'e snippet
"hoice ! -ince int is a primitive/ we cannot use new with it.
"hoice c -ince an int is a primitive/ we cannot call the metho' &o-tring( )
usingit.
"hoice ' i will get create' on stack/ whereas * will get create' on heap
[2] 0ow we can control the vertical alignment of the cell in the 0& ta!le
control
"hoice a "ol-pan
"hoice ! $orap
"hoice c 34lign
"hoice ' 04lign
[5] hich is the correct snta6 for inclu'e 'irective in 4-P.$%&
"hoice a 7899 #inclu'e pathtpe + filename 99"hoice ! ; 7< = inclu'e attri!ute+>attr1>
8/9/2019 Buid. Web Portals ASP.net,Mock Test
2/9
[?] hich of the following statements are true a!out compilation of .asp6
pages in 4-P.$%&
"hoice a 4ll .asp6 pages are compile' when the application starts.
"hoice ! 4n .asp6 page is compile' for ever request.
"hoice c 4n .asp6 page gets compile' when first request is ma'e for it.
"hoice ' 4ll .asp6 pages get compile' when the session state starts.
[@] hich of the following is the correct snta6 for 0& 4nchor "ontrol
"hoice a 7a href+>linkurl> name+>!ookmarkname>
An-erver"lick+>onserverclickhan'ler>
target+>linke'contentframeorwin'ow> title+>title'isplae'!!rowser>
runat+>server> linkte6t7Ba
"hoice ! 7a href+>linkurl> name+>!ookmarkname>An-erver"lick+>onserverclickhan'ler>
target+>linke'contentframeorwin'ow> title+>title'isplae'!!rowser>
runat+>server> linkte6t
"hoice c 7a href+>linkurl> name+>!ookmarkname>
An-erver"lick+>onserverclickhan'ler>
target+>linke'contentframeorwin'ow> title+>title'isplae'!!rowser>
runat+>server> linkte6t7a
"hoice ' 7a href+>linkurl> name+>!ookmarkname>
An-erver"lick+>onserverclickhan'ler>
target+>linke'contentframeorwin'ow> title+>title'isplae'!!rowser>
runat+>server> linkte6t7Ba href
[C] Dn 4-P.$%& which of the following properties is use' for ascertaining
whether the page is !eing loa'e' in response to a client post!ack/ or is it
!eing loa'e' an' accesse' for the first time
"hoice a Page.DsEeusa!le Propert"hoice ! Page.Ds3ali' Propert
"hoice c Page.Eequest Propert
"hoice ' Page.DsPostFack Propert
8/9/2019 Buid. Web Portals ASP.net,Mock Test
3/9
[G] hich of the following is the correct snta6 for the Hri'3iew
"hoice a 7asp:gri'view i'+>"ustomersHri'3iew> 7Basp
"hoice ! 7asp:gri'view i'+>"ustomersHri'3iew> 7gri'view
"hoice c 7asp:gri'view i'+>"ustomersHri'3iew> runat+>server> B
"hoice ' 7asp:gri'view i'+>"ustomersHri'3iew> 7B
[I] hat 'oes 0&&a!le "ontrol 'o
"hoice a Dt creates the &a!le within the form.
"hoice ! Dt 'eletes the &a!le within the form.
"hoice c Dt selects the &a!le within the form.
"hoice ' Dt mo'ifies the &a!le within the form.
[J] F which propert of check!o6 0& server control we can get to
know whether the check!o6 is selecte' or not
"hoice a An -u!mit
"hoice ! 3alue
"hoice c "hecke'
"hoice ' -electe'
[1,] hat 'oes 4ccess Kata -ource 'o
"hoice a Dt is use' for connecting to -ql-erver 2,,@
"hoice ! Dt is use' for connecting to Aracle KF -erver
"hoice c Dt is use' for connecting to -ql-erver
"hoice ' Dt is use' for connecting to - 4ccess Kata!ase
[11] hich of the following statements are correct
D. 4n event is a wa for a class to provi'e notifications.
DD. %vents use 'elegates to provi'e tpe9safe encapsulation of the metho'sthat will !e calle' when triggere'.
"hoice a Anl D is correct.
"hoice ! Anl DD is correct.
"hoice c Foth D an' DD are correct.
"hoice ' Foth D an' DD are incorrect.
8/9/2019 Buid. Web Portals ASP.net,Mock Test
4/9
[12] hich of the following kewor' is use' with an event to make the
event availa!le to callers at an time/ even if no instance of the class e6ists
"hoice a pu!lic
"hoice ! static
"hoice c virtual
"hoice ' a!stract
[15] hich e!Lorm 3ali'ator control will ou use if ou want to ascertain
whether the values in two 'ifferent e!Lorm controls are same or not
"hoice a "heck3ali'ator "ontrol
"hoice ! "ompare3ali'ator "ontrol
"hoice c Eange3ali'ater "ontrol"hoice ' Eequire'Liel'3ali'ator "ontrol
[1?] hich of the following statements are correct
D. M provi'es a wa to 'escri!e structure' 'ata.
DD. M tags are use' to control the 'ispla an' appearance of 'ata.
"hoice a Anl D is correct.
"hoice ! Anl DD is correct.
"hoice c Foth D an' DD are correct.
"hoice ' Foth D an' DD are incorrect.
[1@] hich of the following statements are correct
D. e can 'efine an limite' set of M tags.
DD. 4s M tags are a'opte' throughout an organiNation an' across
organiNations/ 'ata from all kin's of 'ifferent 'ata stores will !e easier to
e6change an' manipulate.
"hoice a Anl D is correct.
"hoice ! Anl DD is correct.
"hoice c Foth D an' DD are correct.
"hoice ' Foth D an' DD are incorrect.
[1C] alicious user input can !e use' to launch the attacks name'
8/9/2019 Buid. Web Portals ASP.net,Mock Test
5/9
"hoice a -Q 3irus
"hoice ! -Q Dn*ection
"hoice c -Q Dn*uries
"hoice ' -Q Kamage
[1G] hat is the correct snta6 for "onnection -tring
"hoice a Kata -ource+.;-QDnitial "atalog+"ustomersDntegrate'
-ecurit+&rue
"hoice ! Kata -ource+.;-Q%MPE%--Dnitial
"atalog+"ustomersDntegrate' -ecurit+Lalse
"hoice c Kata -ource+.;-Q-erverDnitial "atalog+"ustomersDntegrate'
-ecurit+&rue
"hoice ' Kata -ource+.;-Q%MPE%--Dnitial
"atalog+"ustomersDntegrate' -ecurit+&rue
[1I] hat one of the following kewor' is use' in connection string for
attaching to a file
"hoice a KFLile
"hoice ! 4ttachKFLilename
"hoice c KFLilename
"hoice ' KFLilename+7filename
[1J] hich of the following mo'els correctl represents the scenario given
!elow
9 "onnect to 'ata!ase server
9 Process 'ata
9 "lose connection
"hoice a Kisconnecte' mo'el
"hoice ! "onnecte' mo'el
"hoice c AKF" mo'el
"hoice ' Kata 4ccess A!*ect mo'el
8/9/2019 Buid. Web Portals ASP.net,Mock Test
6/9
[2,] hich of the following metho' is use' in 'ata !in'ing e6pression
snta6 when 'ata can !e mo'ifie'
"hoice a %val
"hoice ! Fin'
"hoice c Fin' or %val
"hoice ' $one of the a!ove
[21] hat are the tpes of server controls that participate in 'eclarative 'ata
!in'ing mo'el
"hoice a Kata Fin' controls an' Kata9!oun' controls
"hoice ! Kata source controls an' Kata9!oun' controls
"hoice c Kata source controls an' Kata Hri' controls
"hoice ' Kata source controls an' Kata9On!oun' controls
[22] hich control allows ou to e'it/ 'elete/ an' insert recor's
"hoice a Hri'3iew
"hoice ! Lorm3iew
"hoice c Ketails3iew
"hoice ' &ag3iew
[25] hich of the following statements are correct
"hoice a 4. Proce'ural Programming para'igm is 'ifferent than
structure' programming para'igm.
"hoice ! F. A!*ect Ariente' Programming para'igm stresses on
'ivi'ing the logic into smaller parts an' writing proce'ures for each part.
"hoice c "lasses an' o!*ects are corner stones of structure' programming
para'igm.
"hoice ' A!*ect Ariente' Programming para'igm gives equal importanceto 'ata an' the proce'ures that work on the 'ata.
[2?] hich of the following statements are correct a!out the "#.$%& co'e
snippet given !elow
8/9/2019 Buid. Web Portals ASP.net,Mock Test
7/9
sample c
c + new sample( )
"hoice a Dt will create an o!*ect calle' sample.
"hoice ! Dt will create a nameless o!*ect of the tpe sample.
"hoice c Dt will create an o!*ect of the tpe sample on the stack.
"hoice ' Dt will create an o!*ect of the tpe sample either on the heap or
on the stack 'epen'ing on the siNe of the o!*ect.
[2@] hich of the following control searches the current naming container
for the
specifie' server control
"hoice a Het&pe
"hoice ! Lin'"ontrol"hoice c Het0ash"o'e
"hoice ' Het"ontrol
[2C] hat 'ata tpes 'o the Eange3ali'ator controls support in 4-P.$%&
"hoice a Dnteger/ Kecimal/ Kou!le
"hoice ! Kate/ Kecimal
"hoice c Dnteger/ -tring/ Kate
"hoice ' -tring/ Kecimal
[2G] hich of the following statements are correct
D. M -chemas support reusa!le tpes an' allow to create new tpes using
inheritance.
DD. M -chemas 'oes not allow to group elements to control the recurrence
of elements an' attri!utes.
DDD. hile creating M -chemas the in'ivi'ual elements an' attri!utes are
'efine' an' vali' tpes are assigne' to them.
"hoice a Anl D an' DD are correct.
"hoice ! Anl D an' DDD are correct.
"hoice c Anl DD an' DDD are correct.
"hoice ' D/ DD an' DDD are correct.
8/9/2019 Buid. Web Portals ASP.net,Mock Test
8/9
[2I] -uppose multiple clients access multiple !usiness components which in
turn access or mo'if the 'ata store' in 'ifferent 'ata!ases. hich of the
following application tpe perfectl mo'els this scenario
"hoice a $9&ier 4pplication
"hoice ! -ingle &ier 4pplication
"hoice c &wo &ier 4pplication
"hoice ' &hree &ier 4pplication
[2J] 4 'erive' class can stop virtual inheritance ! 'eclaring an overri'e as
"hoice a Dnherits
"hoice ! e6ten's
"hoice c seale'
"hoice ' $otDnherita!le
[5,] hich of the following is the correct snta6 for 0& Dmage "ontrol
"hoice a 7img i'+>programmaticDK> alt+>altte6t> align+ top
!or'er+>!or'erwi'th> height+>imageheight> src+>imageOE>
wi'th+>imagewi'th> runat+>server>
"hoice ! 7img i':>programmaticDK> alt:>altte6t> align: top
!or'er:>!or'erwi'th> height:>imageheight> src:>imageOE>
wi'th:>imagewi'th> runat:>server>
"hoice c 7img i'>programmaticDK> alt>altte6t> align top
!or'er>!or'erwi'th> height>imageheight> src>imageOE>
wi'th>imagewi'th> runat>server>
"hoice ' 7img i'+>programmaticDK> alt+>altte6t> align+ top
!or'er+>!or'erwi'th> height+>imageheight> src+>imageOE>
wi'th+>imagewi'th> runat+>server> 7Bimg
8/9/2019 Buid. Web Portals ASP.net,Mock Test
9/9
Q.2. %6ecute programs an' attach output an' source co'e of the following
questions.
7 No 7ue6tio"6 M/r56
1 rite a program to 'ispla 1 to 1, $um!ers in a we!site. 1,
2 rite a program to !in' an M file to Krop'own ist. &he Krop'ownlist
items shoul' !e sorte' in ascen'ing or'er.
1,
5 rite a program to !uil' following ta!le in a e!site.
&imeBKas on &ue e'
I:5, " " KF-
J:5, " KF- "
4n' appl appropriate formatting.
1,
? rite a program to !uil' following ta!le in a e!site.
$ame "lass Percentage-ami'ha L..F-" C,