You are on page 1of 22

Test

 Programming Ability

Test Starts3:36
List of PROGRAMMING ABILITY Question

Sl.No Multiple Choice

1 When Would You Typically Use An Input Parameter?


1. When The Parameter Value Is Created Based On User Input
2. When The Parameter Is Used To Send Data From The Application To The
Database
3. When The Command Is Set To Execute A Statement With A WHERE Clause
4. When The Parameter Value Is Passed To An INSERT Statement(mark - 2 ; neg
mark - 0.5)
1, 2
1, 2, 3
2, 3,
1, 4
Not Interested

2 What Is The Difference Between A Local Transaction And A Distributed


Transaction?(mark - 2 ; neg mark - 0.5)
Local Transactions Are Performed On A Single Database Table, But Distributed
Transactions Are Performed On More Than One Database Tables.
Local Transactions Are Performed On A Single Database Server, But Distributed
Transactions Can Be Performed Across Multiple Database Servers.
Local Transactions Are Performed On A Database On The Local Machine, But
Distributed Transactions Are Performed On A Database On A Remote Machine.
None Of The Above.
Not Interested
Sl.No Multiple Choice

3 To Use DataAdapter Which Work As A Mediator Between Database And


Dataset.(mark - 4 ; neg mark - 1)
Public DataSet GetEmployeeData()
{
SqlConnection ConString = New SqlConnection("myconnection");
ConString.Open();
SqlCommand CmdQuery = New SqlCommand("Select * From Employee", ConString);
SqlDataAdapter Sda = New SqlDataAdapter(CmdQuery);
DataSet DsData = New DataSet();
Sda.Fill(dsData);
Return DsData;
}
Public DataSet GetEmployeeData()
{
SqlConnection Constring = New SqlConnection("myConnection");
Constring.Open();
SqlCommand CmdQuery = New SqlCommand("Select * From Employee", ConString);
SqlDataAdapter Sda = New SqlDataAdapter(cmdquery);
DataSet DsData = New DataSet();
Sda.Fill(dsData);
Return DsData;
}
Public DataSet GetEmployeeData()
{
SqlConnection ConString = New SqlConnection("myconnection");
ConString.Open();
SqlCommand CmdQuery = New SqlCommand("Select * From Employee", ConString);
SqlDataAdapter Sda = New SqlDataAdapter(cmdquery);
DataSet DsData = New DataSet();
Sda.Fill(dsData);
return DsData;
}
Public DataSet GetEmployeeData()
{
SqlConnection ConString = New SqlConnection("myconnection");
ConString.Open();
SqlCommand CmdQuery = New SqlCommand("Select * From Employee", Constring);
SqlDataAdapter Sda = New SqlDataAdapter(cmdQuery);
Sl.No Multiple Choice

DataSet DsData = New DataSet();


Sda.Fill(dsData);
Return DsData;
}
Not Interested

4 Examine The Structure Of The EMPLOYEES And DEPARTMENTS Tables:


EMPLOYEES
EMPLOYEE_ID NUMBER
DEPARTMENT_ID NUMBER
MANAGER_ID NUMBER
LAST_NAME VARCHAR2(25)
DEPARTMENTS
DEPARTMENT_ID NUMBER
MANAGER_ID NUMBER
DEPARTMENT_NAME VARCHAR2(35)
LOCATION_ID NUMBER
You Want To Create A Report Displaying Employee Last Names, Department Names,
And Locations. Which Query Should You Use To Create An Equi-join?(mark - 2 ; neg
mark - 0.5)
SELECT Last_name, Department_name, Location_id FROM Employees ,
Departments ;
SELECT Employees.last_name, Departments.department_name,
Departments.location_id FROM Employees E, Departments D WHERE
E.department_id =d.department_id;
SELECT E.last_name, D.department_name, D.location_id FROM Employees E,
Departments D WHERE Manager_id =manager_id;
SELECT E.last_name, D.department_name, D.location_id FROM Employees E,
Departments D WHERE E.department_id =d.department_id;
Not Interested

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

By Using The ReadXml(. Method Of The DataSet Class


You Cannot Load An XML File Directly Into A DataSet
Not Interested

6 Which Method Is Used To Dynamically Register Client Script From Code?(mark - 2 ;


neg mark - 0.5)
Page.ClientScript.RegisterClientScriptBlock
RegisterScript
Page.ClientScript
None Of The Above
Not Interested

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

8 The Exceptions In MySql Can Be Handled Using(mark - 2 ; neg mark - 0.5)


DECLARE Handler_type (Exit) HANDLER FOR Condition_value[,...] Sp_statement
DECLARE Handler_type (Continue | Exit) HANDLER FOR Condition_values[,...]
Sp_statement
DECLARE Handler_type (Continue | Exit) HANDLER FOR Condition_value[,...]
Sp_statement
DECLARE Handle_type (Continue | Exit) HANDLE FOR Condition_value[,...]
Sp_statement
Not Interested

9 Choose The Correct Option According To Given Statements.


Statement 1: Authentication Is The Process That Determines The Identity Of A User.
Statement 2: Authorization Is The Process Of Determining Whether A User Is
Permitted To Access To Any Part Of An Application, Or Any Particular Resource.
Statement 3: Authorization Is The Process That Determines The Identity Of A User.
Statement 4: Authentication Is The Process Of Determining Whether A User Is
Permitted Access To Any Part Of An Application, Or Any Particular Resource.(mark -
4 ; neg mark - 1)
Statement 1 And Statement 2 Are Correct.
Statement 3 And Statement 4 Are Correct.
Statement 1 And Statement 3 Are Correct.
Statement 2 And Statement 4 Are Correct.
Sl.No Multiple Choice

Not Interested

10 The Specified ConnectionString Section Is Used Throughout The Project For


Database Connection:(mark - 4 ; neg mark - 1)
< Em>< Configuration>
< AppSettings>
< Add Key="connectionString" Value="server=local; Pwd=password;
Database=default" />
< /appSettings>< /em>
< Em>< Configuration>
< AppSettings>
< Add Key="ConnectionString" Value="server=local; Pwd=password;
Database=default" />< Br />< /appSettings>< /em>
< Em>< Configuration>
< AppSettings>< Br />< Add Key="ConnectionString" Value="server=local;
Pwd=password; Database=default" />
< /appSettings>< /em>
< Em>< Configuration>
< AppSettings>
< Add Key="connectionString" Value="server=local; Pwd=password;
Database=default" />
< /appSettings>< /em>
Not Interested

11 Which Of The Following Is A Following Statement Is A Prepared Statements ?(mark -


2 ; neg mark - 0.5)
Insert Into Department Values(?,?,?)
Insert Into Department Values(x,x,x).
SQLSetConnectOption(conn, SQL AUTOCOMMIT, 0)
SQLTransact(conn, SQL ROLLBACK)
Not Interested
Sl.No Multiple Choice

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

13 CREATE TABLE Digits(id NUMBER(2),description VARCHAR2(15));


INSERT INTO Digits VALUES (1,"ONE");
UPDATE Digits SET Description ="TWO" WHERE Id=1;
INSERT INTO Digits VALUES (2,"TWO");
COMMIT;
DELETE FROM Digits;
SELECT Description FROM Digits VERSIONS BETWEEN TIMESTAMP MINVALUE AND
MAXVALUE;
What Would Be The Outcome Of The Above Query?(mark - 2 ; neg mark - 0.5)
It Would Not Display Any Values.
It Would Display The Value TWO Once.
It Would Display The Value TWO Twice.
It Would Display The Values ONE, TWO, And TWO
Not Interested

14 An UpdatePanel Control Defined On A Page. Button Control Is Placed Outside Of


The UpdatePanel. How To Cause The UpdatePanel To Execute An Update.(mark - 2 ;
neg mark - 0.5)
Sl.No Multiple Choice

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"
%>

Write The Given Below Code In Aspx Page.


< %@ OutputCache Duration="500" VaryByParam="none" VaryByHeader="browser"
%>
Write The Given Below Code In Aspx Page.
< %@ OutputCache Duration="500" VaryByParam=" Browser" VaryByCustom="none"
%>
None Of The Above.
Not Interested

17 Which Statement Is An Accurate Description Of The Code Below (dtsDataset Is A


DataSet.
Cache("myCachedDataSet". = DstDataset(mark - 2 ; neg mark - 0.5)
Adds A DataSet To The Application’s Cache In The Server’s Memory,
Automatically Preserving It Between Page Requests.
Adds A DataSet To The Cache In The Clients Memory, Automatically Preserving It
Between Page Requests.
The Cache Object Cannot Be Used To Cache A DataSet, It Can Only Cache A
DataTable
The Code Block Is Syntactically Incorrect And Should Actually Be
Set Cache("myCachedDataSet". = DstDataset
Not Interested

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

19 Evaluate The Following SQL Statements In The Given Order:


DROP TABLE Dept;
CREATE TABLE Dept (deptno NUMBER(3) PRIMARY KEY,deptname VARCHAR2(10));
DROP TABLE Dept;
FLASHBACK TABLE Dept TO BEFORE DROP;
Which Statement Is True Regarding The Above FLASHBACK Operation?(mark - 2 ;
neg mark - 0.5)
It Recovers Only The First DEPT Table.
It Recovers Only The Second DEPT Table.
It Does Not Recover Any Of The Tables Because FLASHBACK Is Not Possible In This
Case.
It Recovers Both The Tables But The Names Would Be Changed To The Ones
Assigned In The RECYCLEBIN
Not Interested

20 What Will Be The Output Of The Code Snippet?


Class Program
{
Static Void Main(string[] Args)
{
String S1 = "CSHARP"
String S2 = S1.Replace("H","L");
Console.WriteLine(s2);
Console.ReadLine();
}
}(mark - 2 ; neg mark - 0.5)
CSHAP
Sl.No Multiple Choice

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

22 What Will Be The Output Of Given Code Snippet?


Class UnsafeCode
{
Unsafe Static Void Main()
{
Int[] Nums = New Int[10];
Console.WriteLine("Index Pointer Like Array.");
Fixed (int* P = Nums)
{
For (int I = 0 ;i <10 ;i++)
P[i] = I;
For (int I = 10 ;i >0 ;i--)
Console.WriteLine("p[{0}]: {1} ", I, P[i]);
Console.ReadLine();
}
}
}(mark - 4 ; neg mark - 1)
P[10] :0, P[9] :9, P[8] :8…..p[1]:1
Sl.No Multiple Choice

P[10] : 1, P[9] :2, P[8] :3…..p[1] :0


P[1] : 1, P[2] :2, P[3] :3…..p[10] :0
Compile Time Error
Not Interested

23 Here Is The Exact Structure Of The Two Db Tables:

table[questions]table[answers]
id id
order fk_question
text order
text
points

The Answers Table Relates To The Questions One By An Fk_question Field.(mark - 2


; neg mark - 0.5)
SELECT Q.id, Q.text, R.text, R.order AS Rorder FROM `questions` Q LEFT JOIN
Reponses R ON Q.id = R.fk_question;
SELECT Q.id, Q.text, R.text, R.order AS Rorder FROM `questions` Q LEFT JOIN
Reponses R ON Q.id = Answers;
SELECT Q.id, Q.text, R.text, R.order AS Rorder FROM `answers` Q LEFT JOIN
Reponses R ON Q.id = R.fk_question;
SELECT Q.id, Q.text, R.text, R.order AS Rorder FROM `answers` Q LEFT JOIN
Reponses R ON Q.id = Questions;
Not Interested

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

25 CompareValidator Control Can Be Used For Performing Which Task?(mark - 2 ; neg


mark - 0.5)
To Perform A Data Type Check.
To Compare The Value Entered Into A Form Field Against A Fixed Value.
To Compare The Value Of One Form Field Against Another.
All Of The Above.
Not Interested

26 Match The Following List 1 To List 2


A. App_Code ------------------------ I. Assembly Resource Files (.resx)
b. App_Data ------------------------ II. .skin File, CSS Files
C. App_Themes -------------------- III. .mdf File, .mdb File
D. App_GlobalResources --------- IV. .wsdl Files, Typed Datasets(mark - 4 ; neg mark -
1)
A-IV, B-III, C-II, D-I
A-II, B-IV, C-I, D-III
A-II, B-I, C-III, D-IV
A-II, B-IV, C-III, D-I
Not Interested

27 What Types Of Shapes Can LINQ Query Results Be Shaped Into


1. Collections Of Primitive Types
2. Collections Of Complex Types
3. Single Types
4. Collections Of Anonymous Types(mark - 2 ; neg mark - 0.5)
1, 2, 4
1,2,3
1,3,4
Sl.No Multiple Choice

None Of The Above


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

29 Consider The Two Relations Instructor And Department


Instructor

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

35 What Will Be The Output Of The Code Snippet?class Output


{
Public Static Void Main(String Args[])
{
Try
{
Int A = 10;
Int B = 5;
Int C = B - 5 / 5;
Console.WriteLine("Hi");
}
Catch(Exception E)
{
Console.WriteLine("hello");
Sl.No Multiple Choice

}
}
}(mark - 4 ; neg mark - 1)
Hi
Hello
Hihello
Compile Time Error
Not Interested

36 If A Class Named Csharp Is Present In Namespace N1 As Well As In Namespace


N2,then Which Of The Following Is The Correct Way To Use Csharp Class?(mark - 4 ;
neg mark - 1)
Class Program
{
Static Void Main(string[] Args)
{
Import N1;
Csharp X = New Csharp();
X.fun();
Import N2;
Csharp Y = New Csharp();
Y.fun();
}
}
Import N1;
Import 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();
Sl.No Multiple Choice

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

39 A DataTable, DataColumn And DataRows Could Be Created As Follows.


(i) DataTable Dt = New DataTable();
DataColumn Col =new DataColumn();
Dt.columns.Add(col2);
DataRow Row = Dt.newRow();
Sl.No Multiple Choice

(ii) DataTable Dt = New DataTable();


DataColumn Col =new DataColumn();
Dt.columns.Add(col2);
DataRow Row = Dt.newRow();(mark - 2 ; neg mark - 0.5)
(i) Only
Both (i) & (ii)
(ii) Only
None Of The Above
Not Interested

40 Name Null? Type


Cust_id Not Null Number(2)
Cust_Name Varchar2(15)
Evaluate The Following SQL Statements Executed In The Given Order:
ALTER TABLE Cust
ADD CONSTRAINT Cust_id_pk PRIMARY KEY(cust_id) DEFERRABLE INITIALLY
DEFERRED; INSERT
INTO Cust VALUES (1,"RAJ"); --row 1
INSERT INTO Cust VALUES (1,"SAM"); --row 2
COMMIT;
SET CONSTRAINT Cust_id_pk IMMEDIATE;
INSERT INTO Cust VALUES (1,"LATA"); --row 3
INSERT INTO Cust VALUES (2,"KING"); --row 4
COMMIT;
Which Rows Would Be Made Permanent In The CUST Table?(mark - 2 ; neg mark -
0.5)
Row 4 Only
Rows 2 And 4
Rows 3 And 4
Rows 1 And 4
Not Interested

Submit Your Answ er