Académique Documents
Professionnel Documents
Culture Documents
Q.1. Pick up the correct alternative for each of the following questions:
(2 marks each)
[1] Which of the following statements are correct about the C#.NET code
snippet given below?
int i ;
int j = new int( ) ;
i = 10 ;
j = 20 ;
String str ;
str = i.ToString( ) ;
str = j.ToString( ) ;
Choice a This is a perfectly workable code snippet
Choice b Since int is a primitive, we cannot use new with it.
Choice c Since an int is a primitive, we cannot call the method ToString( )
usingit.
Choice d i will get created on stack, whereas j will get created on heap
[2] How we can control the vertical alignment of the cell in the HTML table
control?
Choice a ColSpan
Choice b NoWrap
Choice c VAlign
Choice d HAlign
[3] Which is the correct syntax for include directive in ASP.NET?
Choice a <!-- #include pathtype = filename -->
Choice b \ <% @ include attribute="attr1" %>
Choice c <% #include pathtype = filename %>
Choice d <% @include pathtype = filename %>
[4] Which of the following statements are true about compilation of .aspx
pages in ASP.NET?
Choice a All .aspx pages are compiled when the application starts.
Choice b An .aspx page is compiled for every request.
Choice c An .aspx page gets compiled when first request is made for it.
Choice d All .aspx pages get compiled when the session state starts.
[5] Which of the following is the correct syntax for HTML Anchor Control?
Choice a <a href="linkurl" name="bookmarkname"
OnServerClick="onserverclickhandler"
target="linkedcontentframeorwindow" title="titledisplayedbybrowser"
runat="server" > linktext</a>
Choice b <a href="linkurl" name="bookmarkname"
OnServerClick="onserverclickhandler"
target="linkedcontentframeorwindow" title="titledisplayedbybrowser"
runat="server" > linktext
Choice c <a href="linkurl" name="bookmarkname"
OnServerClick="onserverclickhandler"
target="linkedcontentframeorwindow" title="titledisplayedbybrowser"
runat="server" > linktext<a>
Choice d
<a href="linkurl" name="bookmarkname"
OnServerClick="onserverclickhandler"
target="linkedcontentframeorwindow" title="titledisplayedbybrowser"
runat="server" > linktext</a href>
[6] In ASP.NET which of the following properties is used for ascertaining
whether the page is being loaded in response to a client postback, or is it
being loaded and accessed for the first time?
Choice a Page.IsReusable Property
Choice b Page.IsValid Property
Choice c Page.Request Property
Choice d Page.IsPostBack Property
[7] Which of the following is the correct syntax for the GridView?
Choice a <asp:gridview id="CustomersGridView" ></asp>
Choice b <asp:gridview id="CustomersGridView" ><gridview>
Choice c <asp:gridview id="CustomersGridView" runat="server" />
Choice d <asp:gridview id="CustomersGridView" ></>
On Submit
Value
Checked
Selected
Only I is correct.
Only II is correct.
Both I and II are correct.
Both I and II are incorrect.
[12] Which of the following keyword is used with an event to make the
event available to callers at any time, even if no instance of the class exists?
Choice a
Choice b
Choice c
Choice d
public
static
virtual
abstract
[13] Which WebForm Validator control will you use if you want to ascertain
whether the values in two different WebForm controls are same or not?
Choice a
Choice b
Choice c
Choice d
CheckValidator Control
CompareValidator Control
RangeValidater Control
RequiredFieldValidator Control
Only I is correct.
Only II is correct.
Both I and II are correct.
Both I and II are incorrect.
[16] Malicious user input can be used to launch the attacks named
DBFile
AttachDBFilename
DBFilename
DBFilename=<filename>
[19] Which of the following models correctly represents the scenario given
below?
- Connect to database server
- Process data
- Close connection
Choice a
Choice b
Choice c
Choice d
Disconnected model
Connected model
ODBC model
Data Access Object model
GridView
FormView
DetailsView
TagView
[24] Which of the following statements are correct about the C#.NET code
snippet given below?
sample c ;
c = new sample( ) ;
Choice a It will create an object called sample.
Choice b It will create a nameless object of the type sample.
Choice c It will create an object of the type sample on the stack.
Choice d It will create an object of the type sample either on the heap or
on the stack depending on the size of the object.
[25] Which of the following control searches the current naming container
for the
specified server control?
Choice a
Choice b
Choice c
Choice d
GetType
FindControl
GetHashCode
GetControl
N-Tier Application
Single Tier Application
Two Tier Application
Three Tier Application
Q.2. Execute programs and attach output and source code of the following
questions.
Q No Questions
Marks
10
10
10
Time/Days
Mon
Tue
Wed
8:30
C++
DBMS
9:30
C++
DBMS
Percentage
60%
40%
50%
70%
10