Professional Documents
Culture Documents
Programming Ability
Test Starts3:36
List of PROGRAMMING ABILITY Question
5 How Can You Load An XML File Directly Into A DataSet(mark - 2 ; neg mark - 0.5)
By Setting The XML Property Of The DataSet Class
By Using The GetXML(. Method Of The DataSet Class
Sl.No Multiple Choice
7 Choose Correct Code To Connects A SQL Server That Is Located On The Local
Computer:(mark - 4 ; neg mark - 1)
String SConnectionString;
sConnectionString = "password=mypassword;user ID=myuserID;"
+ "Initial Catalog=pubs;"
+ "Data Source=(local)";
SqlConnection ObjConn
= New SqlConnection(sConnectionString);
objConn.Open();
String SConnectionString;
sConnectionString = "Password=myPassword;User ID=myUserID;"
+ "Initial Catalog=pubs;"
+ "Data Source=(local)";
SqlConnection ObjConn
= New SqlConnection(sConnectionString);
objConn.Open();
String SConnectionString;
sConnectionString = "Password=myPassword;user ID=myuserID;"
+ "Initial Catalog=pubs;"
+ "Data Source=(local)";
SqlConnection ObjCon
Sl.No Multiple Choice
= New SqlConnection(sConnectionString);
objCon.Open();
String SConnectionString;
sConnectionString = "Password=myPassword;User ID=myUserID;"
+ "Initial Catalog=pubs;"
+ "Data Source=(local)";
SqlConnection ObjCon
= New SqlConnection(sConnectionString);
objCon.Open();
Not Interested
Not Interested
12 Which Statement Is Correct About The C#.NET Code Snippet Given Below?
Stack St = New Stack();
St.Push("Csharp");
St.Push(7.3);
st.Push(8);
St.Push("b");
St.Push(true);
(mark - 2 ; neg mark - 0.5)
Unsimilar Elements Like "Csharp",7.3,8 Cannot Be Stored In The Same Stack
Collection.
Boolean Values Can Never Be Stored In Stack Collection
Perfectly Workable Code
All Of The Mentioned
Not Interested
Set The Trigger Attribute Of The UpdatePanel To The ID Of The Button Control.
Set The AsyncPostBackTrigger Attribute Of The Button Control To The ID Of
TheUpdatePanel.
Place The Button Control On The Update Panel Without Script Manager.
Add An AsyncPostBackTrigger Control To The Triggers Section Of The
UpdatePanel. Set The ControlID Attribute Of The AsyncPostBackTrigger Control To
The ID Of The Button Control.
Not Interested
15 Which Among The Given Is Not A Correct Way To Call The Method Issue() Defined In
The Code Snippet Given Below?
Class Book
{
Public Void Issue()
{
/* Code
}
}
Class Journel
{
Public Void Issue()
{
/* Code */
}
}(mark - 2 ; neg mark - 0.5)
College.Lib.Book B = New College.Lib.Book();
B.issue();
Book B = New Book();
B.issue();
Using College.Lib;
Book B = New Book();
B.issue();
All Of The Mentioned
Sl.No Multiple Choice
Not Interested
16 If You Want To Cache The Page According To The Browser, Then What Will You
Do?(mark - 4 ; neg mark - 1)
Write The Given Below Code In Aspx Page.
< %@ OutputCache Duration="500" VaryByParam="none" VaryByCustom="browser"
%>
18 Which Is The Way To Render Partial View Using ASP.Net MVC Razor Engine?(mark -
2 ; neg mark - 0.5)
Sl.No Multiple Choice
@Html.Partial("_PartialHeader")
@Html.PartialView("_PartialHeader")
@Html.PartialHtml("_PartialHeader")
B And C
Not Interested
CSHP
CSHALP
CSHP
Not Interested
21 How Will You Add A TextBox Control At Runtime On The Form? Choose The Correct
One.(mark - 2 ; neg mark - 0.5)
TextBox Obj = New TextBox();
Obj.ID = "txtUserName";
form1.Controls.Add(obj);
Form1.Controls.Add(TextBox);
This.FindControl.add(TextBox);
None Of The Above.
Not Interested
table[questions]table[answers]
id id
order fk_question
text order
text
points
24 What Property Do You Modify On A Server Control To Minimize The Size Of The
ViewState Data? (mark - 2 ; neg mark - 0.5)
ViewState="true"
Set EnableViewState To False
Set EnableViewState To True
None Of The Above
Sl.No Multiple Choice
Not Interested
28 You Are Using ASP .NET To Develop A Web Application For A Large Video Rental
Store. The Titles, As Well As Other Information About The Store’s Videotapes, Laser
Disks, DVDs, And Audio Books, Are Stored In A SQL Server Database.The Store
Wants To Allow Visitors To Its Web Site To Browse The List Of Titles Sorted In
Various Ways, Such As By Medium (VHS, DVD, Etc.., Genre, Director, And So On. You
Have Created A Number Of Stored Procedures To Facilitate The Different Ways Of
Presenting The Data.Given An Existing DataSet Named DsVids And A Connection
Named Conn, Which Of The Following Code Examples Illustrates The Correct Way To
Call The Stored Procedure Named ListDVDTitles That Returns The List Of DVD
Titles(mark - 4 ; neg mark - 1)
Dim DaDVDList As New SqlDataAdapter(.
daDVDList.SelectCommand = New SqlCommand(.
daDVDList.SelectCommand.Connection = Conn
daDVDList.SelectCommand.CommandText = "ListDVDTitles"
daDVDList.SelectCommand.CommandType = CommandType.StoredProcedure
DaDVDList.Fill(dsVids, "Titles".
Dim DaDVDList As New SqlDataAdapter(.
daDVDList.SelectCommand = New StoredProcedure(.
daDVDList.SelectCommand.Connection = Conn
daDVDList.SelectCommand.CommandText = "ListDVDTitles"
daDVDList.SelectCommand.CommandType = CommandType.SQLCommand
DaDVDList.Fill(dsVids, "Titles".
Dim DaDVDList As New SqlDataAdapter(.
daDVDList.SelectCommand = New SqlCommand(.
daDVDList.SelectCommand.Connection = "ListDVDTitles"
daDVDList.SelectCommand.CommandType = CommandType.StoredProcedure
DaDVDList.Fill(dsVids, "Titles".
Dim DaDVDList As New SqlDataAdapter(.
daDVDList.SelectCommand = New SqlCommand(.
daDVDList.SelectCommand.CommandText = "ListDVDTitles"
daDVDList.SelectCommand.CommandType = CommandType.StoredProcedure
DaDVDList.Fill(dsVids, "Titles".
Sl.No Multiple Choice
Not Interested
ID Name Dept_nameSalary
1001 Ted Finance 10000
1002 Bob Music 20000
1003 Ron Physics 50000
Department:
Dept_nameBuildingBudget
Biology Watson 40000
Chemistry Painter 30000
Music Taylor 50000
Which Of The Following Is Used To Create View For These Relations Together?(mark
- 2 ; neg mark - 0.5)
Create View Instructor_info As Select ID, Name, Building From Instructor,
Department Where Instructor.dept Name= Department.dept Name;
Create View Instructor_info Select ID, Name, Building From Instructor,
Department;
Create View Instructor_info As Select ID, Name, Building From Instructor;
Create View Instructor_info As Select ID, Name, Building From Department;
Not Interested
30 The Update Statement Can Be Executed In Host Language Using(mark - 2 ; neg mark
- 0.5)
EXEC SQL Update C;
EXEC SQL Update C Into :si, :sn;
EXEC SQL Update Instructor Set Salary = Salary + 100 Where Current Of C;
EXEC SQL Update END-SQL
Sl.No Multiple Choice
Not Interested
31 Choose The Correct Way To Call Subroutine Fun() Of The Sample Class?
Class A
{
Public Void X(int P, Double K)
{
Console.WriteLine("k : Csharp!");
}
}(mark - 2 ; neg mark - 0.5)
Delegate Void Del(int I);
X S = New X();
Del D = New Del(ref S.x);
D(8, 2.2f);
Delegate Void Del(int P, Double K);
Del D;
X S = New X();
D = New Del(ref S.x);
D(8, 2.2f);
X S = New X();
Delegate Void D = New Del(ref X);
D(8, 2.2f);
All Of The Mentioned
Not Interested
32 EMPDET Is An External Table Containing The Columns EMPNO And ENAME. Which
Command Would Work In Relation To The EMPDET Table?(mark - 2 ; neg mark -
0.5)
UPDATE Empdet SET Ename = "Amit" WHERE Empno = 1234;
DELETE FROM Empdet WHERE Ename LIKE "J%";
CREATE VIEW Empvu AS SELECT * FROM Empdept;
CREATE INDEX Empdet_idx ON Empdet(empno);
Sl.No Multiple Choice
Not Interested
33 To Create Your Application On A Remote Server Which Option You Will Choose In
ASP.NET?(mark - 2 ; neg mark - 0.5)
File System
FTP
HTTPS
None Of The Above.
Not Interested
34 There Is A Button On Page Name Cancel And It Should Bypass Validation When
Cancel Button Is Clicked. What Will You Do?(mark - 2 ; neg mark - 0.5)
Set CausesValidation = False.
Set RemoveValidation=true
Set Cancel=true
None Of The Above.
Not Interested
}
}
}(mark - 4 ; neg mark - 1)
Hi
Hello
Hihello
Compile Time Error
Not Interested
Y.fun();
}
}
}
Class Program
{
Static Void Main(string[] Args)
{
Using N1;
Csharp X = New Csharp();
X.fun();
Using N2;
Csharp Y = New Csharp();
Y.fun();
}
}
Using N1;
Using N2;
Namespace ConsoleApplication1
{
Class Program
{
Static Void Main(string[] Args)
{
N1.csharp X = New N1.csharp();
X.fun();
Import N2;
N2.csharp Y = New N2.csharp();
y.fun();
}
}
}
Not Interested
37 What Are The Basic Steps To Reference Master Page Properties From A Content
Page?(mark - 2 ; neg mark - 0.5)
- Create A Property In The Master Page Code-behind File.
Sl.No Multiple Choice
- Reference The Master Page Property From The Content Page Using The Syntax
Master.
- Create A Property In The Master Page Code-behind File.
- Add The @ MasterType Declaration To The .aspx Content Page.
- Reference The Master Page Property From The Content Page Using The Syntax
Master.
- Create A Property In The Master Page Code-behind File.
- Reference The Master Page Property From The Content Page Using The Syntax
Master.
None Of The Above
Not Interested
38 For Your ASP.NET Web Application Your Graphics Designer Created Elaborate
Images That Show The Product Lines Of Your Company. Some Of Graphics Of The
Product Line Are Rectangular, Circular, And Others Are Having Complex Shapes. You
Need To Use These Images As A Menu On Your Web Site. What Is The Best Way Of
Incorporating These Images Into Your Web Site(mark - 2 ; neg mark - 0.5)
Use ImageButton And Use The X- And Y-coordinates That Are Returned When The
User Clicks To Figure Out What Product Line The User Clicked.
Use The Table, TableRow, And TableCell Controls, Break The Image Into Pieces
That Are Displayed In The Cells, And Use The TableCell Control’s Click Event To
Identify The Product Line That Was Clicked.
Use The MultiView Control And Break Up The Image Into Pieces That Can Be
Displayed In Each View Control For Each Product Line. Use The Click Event Of The
View To Identify The Product Line That Was Clicked.
Use An ImageMap Control And Define Hot Spot Areas For Each Of The Product
Lines. Use The PostBackValue To Identify The Product Line That Was Clicked.
Not Interested