Which code segment should you insert at line 04 to ensure that the values in the AccountSuspendedColumn column are set to True ?

You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The application connects to a Microsoft SQL Server 2005 database.

The application contains a DataTable named CustomerAccts. The structure of the DataTable is as shown in the following table.

You write the following code segment. (Line numbers are included for reference only.)

01 DataColumn AccountSuspendedColumn = new DataColumn();
02 AccountSuspendedColumn.DataType = typeof(Boolean);
03 AccountSuspendedColumn.ColumnName = "AccountSuspended";
04
05 CustomerAccts.Columns.Add(AccountSuspendedColumn);

You need to ensure that the values in the AccountSuspendedColumn column are set to True when the following conditions are satisfied:

The value contained in the LatePaymentsCount column is greater than 10.
The value contained in the OverrideCode column is equal to "EXEMPT".

exhibit Which code segment should you insert at line 04?

You create an application by using the Microsoft .NET Framework 3.5 and Microsoft ADO.NET. The application connects to a Microsoft SQL Server 2005 database.

The application contains a DataTable named CustomerAccts. The structure of the DataTable is as shown in the following table.

You write the following code segment. (Line numbers are included for reference only.)

01 DataColumn AccountSuspendedColumn = new DataColumn();
02 AccountSuspendedColumn.DataType = typeof(Boolean);
03 AccountSuspendedColumn.ColumnName = “AccountSuspended”;
04
05 CustomerAccts.Columns.Add(AccountSuspendedColumn);

You need to ensure that the values in the AccountSuspendedColumn column are set to True when the following conditions are satisfied:

The value contained in the LatePaymentsCount column is greater than 10.
The value contained in the OverrideCode column is equal to “EXEMPT”.

Which code segment should you insert at line 04?

A.
AccountSuspendedColumn.Expression = “(LatePaymentsCount > 10) AND overrideCode = ‘EXEMPT’ “;

B.
AccountSuspendedColumn.Expression = “(@LatePaymentsCount > 10) AND ?@OverrideCode = #EXEMPT# “;

C.
AccountSuspendedColumn.Expression = “(‘LatePaymentsCount’ > 10) AND ?’OverrideCode’ = ‘EXEMPT’ “;

D.
AccountSuspendedColumn.Expression = “(‘@LatePaymentsCount’ > 10) AND ?’OverrideCode’ = ‘EXEMPT’ “;



Leave a Reply 0

Your email address will not be published. Required fields are marked *