You need to ensure that the Order and the OrderDetail tables are populated. Which code segment should you insert at line 05?

Size: px
Start display at page:

Download "You need to ensure that the Order and the OrderDetail tables are populated. Which code segment should you insert at line 05?"

Transcription

1 Question: 1 You create a Microsoft ASP.NET Web application by using the Microsoft.NET Framework version 3.5. The application uses ASP.NET AJAX, and you plan to deploy it in a Web farm environment. You need to configure SessionState for the application. Which code fragment should you use? A. <sessionstate mode="inproc" cookieless="usecookies" /> B. <sessionstate mode="inproc" cookieless="usedeviceprofile" /> C. <sessionstate mode="sqlserver" cookieless="false" sqlconnectionstring="integrated Security=SSPI;data source=mysqlserver;" /> D. <sessionstate mode="sqlserver" cookieless="useuri" sqlconnectionstring="integrated Security=SSPI;data source=mysqlserver;" /> Answer: C Question: 2 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You create a custom-templated server control. You need to ensure that the child controls of the server control are uniquely identified within the control hierarchy of the page. Which interface should you implement? A. the ITemplatable interface B. the INamingContainer interface C. the IRequiresSessionState interface D. the IPostBackDataHandler interface Answer: B Question: 3 You create a Microsoft ASP.NET Web application by using the Microsoft.NET Framework version 3.5. You use Windows Authentication for the application. You set up NTFS file system permissions for the Sales group to access a particular file. You discover that all the users are able to access the file. You need to ensure that only the Sales group users can access the file. What additional step should you perform? A. Remove the rights from the ASP.NET user to the file. B. Remove the rights from the application pool identity to the file. C. Add the <identity impersonate="true"/> section to the Web.config file. D. Add the <authentication mode="[none]"> section to the Web.config file. Answer: C Question: 4 The application contains a DataSet object named OrderDS that has the Order and OrderDetail tables as shown in the following exhibit. You write the following code segment. (Line numbers are included for reference only.) 01 private void GetOrders(SqlDataConnection cn) { 02 SqlCommand cmd = cn.createcommand(); 03 cmd.commandtext = "Select * from [Order]; Select * from [OrderDetail];"; 04 SqlDataAdapter da = new SqlDataAdapter(cmd); 05 Page 1 of 62

2 06 } You need to ensure that the Order and the OrderDetail tables are populated. Which code segment should you insert at line 05? A. da.fill(orderds); B. da.fill(orderds.order);da.fill(orderds.orderdetail); C. da.tablemappings.addrange(new DataTableMapping[] { new DataTableMapping("Table", "Order"), new DataTableMapping("Table1", "OrderDetail")});da.Fill(OrderDS); D. DataTableMapping maporder = new DataTableMapping();mapOrder.DataSetTable = "Order";DataTableMapping maporderdetail = new DataTableMapping();mapOrder.DataSetTable = "OrderDetail";da.TableMappings.AddRange(new DataTableMapping[] { maporder, maporderdetail }); Da.Fill(OrderDS); Answer: C Question: 5 The application connects to a Microsoft SQL Server 2005 database. You write the following code segment. (Line numbers are included for reference only.) 01 using (SqlConnection connection = new SqlConnection(connectionString)) { 02 SqlCommand cmd = new SqlCommand(queryString, connection); 03 connection.open(); while (sdrdr.read()){ 06 // use the data in the reader 07 } 08 } You need to ensure that the memory is used efficiently when retrieving BLOBs from the database. Which code segment should you insert at line 04? A. SqlDataReader sdrdr = cmd.executereader(); B. SqlDataReader sdrdr = cmd.executereader(commandbehavior.default); C. SqlDataReader sdrdr = cmd.executereader(commandbehavior.schemaonly); Page 2 of 62

3 D. SqlDataReader sdrdr = cmd.executereader(commandbehavior.sequentialaccess); Answer: D Question: 6 The application uses a Microsoft SQL Server 2005 database. To open a connection to the database, you write the following code segment. (Line numbers are included for reference only.) 01 private void GetOpenOrders() { 02 try { 03 //open SqlConnection and execute command. 04 } 05 catch (SqlException exp) { } 08 } The connection generates error messages and raises an exception. You use a ListBox control named lstresults to display the error messages. You need to add a list item in the lstresults control for each connection-related error message returned by the SqlConnection object. What should you do? A. Insert the following code segment at line 06. foreach (SqlError error in exp.errors) { lstresult.items.add(error.message);} B. Insert the following code segment at line 06. string[] errors = exp.message.split(new char[]{','});foreach (string error in errors) { if (error.indexof("connectionerror:") > -1) { lstresult.items.add(error); }} C. Insert the following code segment at line 06. string[] errors = exp.stacktrace.split(new char[]{','});foreach (string error in errors) { if (error.indexof("connectionerror:") > -1) { lstresult.items.add(error); }} D. Insert the following code segment at line 06. LogException(exp.Message); Add the following method to the application. private void LogException(Exception exp) { if (exp.innerexception!= null) { LogException(exp.InnerException); } lstresult.items.add(exp.message);} Question: 7 The application contains a DataSet class. The DataSet class contains two tables named Order and OrderDetail as shown in the following exhibit. You add a DataColumn class named OrderTotal to the Order table. You need to ensure that the OrderTotal column stores the sum of the values in the LineTotal column of the OrderDetail table. Which expression string should you use to set the Expression property of the OrderTotal column? Page 3 of 62

4 A. "Sum(OrderDetail.LineTotal)" B. "Sum(Relationship.LineTotal)" C. "Sum(Order_OrderDetail.LineTotal)" D. "Sum(Child(Order_OrderDetail).LineTotal)" Answer: D Question: 8 The application has a DataTable object named OrderDetailTable. The object has the following columns: ID OrderID ProductID Quantity LineTotal The OrderDetailTable object is populated with data provided by a business partner. Some of the records contain a null value in the LineTotal field and 0 in the Quantity field. You write the following code segment. (Line numbers are included for reference only.) 01 DataColumn col = new DataColumn("UnitPrice", typeof(decimal)); OrderDetailTable.Columns.Add(col); You need to add a DataColumn named UnitPrice to the OrderDetailTable object. Which line of code should you insert at line 02? A. col.expression = "LineTotal/Quantity"; B. col.expression = "LineTotal/ISNULL(Quantity, 1)"; C. col.expression = "LineTotal.Value/ISNULL(Quantity.Value,1)"; D. col.expression = "iif(quantity > 0, LineTotal/Quantity, 0)"; Answer: D Question: 9 The application connects to a Microsoft SQL Server 2005 database. The connection string of the application is defined in the following manner. Page 4 of 62

5 "Server=Prod;Database=WingtipToys;Integrated Security=SSPI;Asynchronous Processing=true" The application contains the following code segment. (Line numbers are included for reference only.) 01 protected void UpdateData(SqlCommand cmd) { 02 cmd.connection.open(); lblresult.text = "Updating..."; 05 } The cmd object takes a long time to execute. You need to ensure that the application continues to execute while cmd is executing. What should you do? A. Insert the following code segment at line 03. cmd.beginexecutenonquery(new AsyncCallback(UpdateComplete), cmd); Add the following code segment. private void UpdateComplete (IAsyncResult ar) { int count = (int)ar.asyncstate; LogResults(count);} B. Insert the following code segment at line 03. cmd.beginexecutenonquery(new AsyncCallback(UpdateComplete), cmd); Add the following code segment. private void UpdateComplete (IAsyncResult ar) { SqlCommand cmd = (SqlCommand)ar.AsyncState; int count = cmd.endexecutenonquery(ar); LogResults(count);} C. Insert the following code segment at line 03. cmd.statementcompleted += new StatementCompletedEventHandler(UpdateComplete);cmd.ExecuteNonQuery(); Add the following code segment. private void UpdateComplete (object sender, StatementCompletedEventArgs e) { int count = e.recordcount; LogResults(count);} D. Insert the following code segment at line 03. SqlNotificationRequest notification = new SqlNotificationRequest("UpdateComplete", "", 10000);cmd.Notification = notification;cmd.executenonquery(); Add the following code segment. private void UpdateComplete(SqlNotificationRequest notice) { int count = int.parse(notice.userdata); LogResults(count);} Answer: B Question: 10 The application contains a SqlDataAdapter object named daorder. The SelectCommand property of the daorder object is set. You write the following code segment. (Line numbers are included for reference only.) 01 private void ModifyDataAdapter() { } You need to ensure that the daorder object can also handle updates. Which code segment should you insert at line 02? A. SqlCommandBuilder cb = new SqlCommandBuilder(daOrder);cb.RefreshSchema(); B. SqlCommandBuilder cb = new SqlCommandBuilder(daOrder);cb.SetAllValues = true; C. SqlCommandBuilder cb = new SqlCommandBuilder(daOrder);daOrder.DeleteCommand = cb.getdeletecommand();daorder.insertcommand = cb.getinsertcommand();daorder.updatecommand = cb.getupdatecommand(); Page 5 of 62

6 D. SqlCommandBuilder cb = new SqlCommandBuilder(daOrder);cb.RefreshSchema();cb.GetDeleteCommand();cb.GetInsertCo m and();cb.getupdateco Answer: C Question: 11 The application reads the following contacts.xml file. <contacts> <contact contactid="2"> <firstname>don</firstname> <lastname>hall</lastname> </contact> <contact contactid="3"> <firstname>simon</firstname> <lastname>rapier</lastname> </contact> <contact contactid="4"> <firstname>shu</firstname> <lastname>ito</lastname> </contact> </contacts> You write the following code segment. (Line numbers are included for reference only.) 01 XDocument loaded = XDocument.Load(@"C:\contacts.xml"); foreach (string name in q) 04 Console.WriteLine("{0}", name); You need to ensure that the application outputs only the names Simon Rapier and Shu Ito. Which code segment should you insert at line 02? A. var q = from c in loaded.descendants("contact").skip(1)select (string)c.element("firstname") + " " + (string)c.element("lastname"); B. var q = from c in loaded.descendants("contact").skip(0)select (string)c.element("firstname") + " " + (string)c.element("lastname"); C. var q = from c in loaded.descendants("contact")where c.isafter(c.firstnode)select (string)c.element("firstname") + " " + (string)c.element("lastname"); D. var q = from c in loaded.descendants("contact")where (int)c.attribute("contactid") < 4select (string)c.element("firstname") + " " + (string)c.element("lastname"); Question: 12 The application uses the following LINQ query. var query = from o in orderlinesquery where (string)o["carriertrackingnumber"] == "AEB " select new { Page 6 of 62

7 SalesOrderID = o.field<int>("salesorderid"), OrderDate = o.field<datetime>("orderdate") }; The CarrierTrackingNumber field in the DataRow is nullable. You need to ensure that an exception does not occur if the CarrierTrackingNumber field has a null value. Which code segment should you use? A. var query = from o in orderlinesquerywhere!o.isnull("carriertrackingnumber") &(string)o["carriertrackingnumber"] == "AEB "select new { SalesOrderID = o.field<int>("salesorderid"), OrderDate = o.field<datetime>("orderdate")}; B. var query = from o in orderlinesquerywhere o.isnull("carriertrackingnumber") (string)o["carriertrackingnumber"] == "AEB "select new { SalesOrderID = o.field<int>("salesorderid"), OrderDate = o.field<datetime>("orderdate")}; C. var query = from o in orderlinesquerywhere o.field<string>("carriertrackingnumber") == "AEB "select new { SalesOrderID = o.field<int>("salesorderid"), OrderDate = o.field<datetime>("orderdate")}; D. var query = from o in orderlinesquerywhere (string)o["carriertrackingnumber"] == DbNull.Value &(string)o["carriertrackingnumber"] == "AEB "select new { SalesOrderID = o.field<int>("salesorderid"), OrderDate = o.field<datetime>("orderdate") }; Answer: C Question: 13 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. The application allows users to post comments to a page that can be viewed by other users. You add a SqlDataSource control named SqlDS1. You write the following code segment. (Line numbers are included for reference only.) 01 private void SaveComment() 02 { 03 string ipaddr; SqlDS1.InsertParameters["IPAddress"].DefaultValue = ipaddr; SqlDS1.Insert(); 08 } You need to ensure that the IP Address of each user who posts a comment is captured along with the user's comment. Which code segment should you insert at line 04? A. ipaddr = Server["REMOTE_ADDR"].ToString(); B. ipaddr = Session["REMOTE_ADDR"].ToString(); C. ipaddr = Application["REMOTE_ADDR"].ToString(); D. ipaddr = Request.ServerVariables["REMOTE_ADDR"].ToString(); Answer: D Question: 14 The application uses Microsoft SQL Server You write the following code segment. (Line numbers are included for reference only.) 01 String myconnstring = "User Page 7 of 62

8 02 ID=<username>;password=<strong password>;initial 03 Catalog=pubs;Data Source=myServer"; 04 SqlConnection myconnection = new 05 SqlConnection(myConnString); 06 SqlCommand mycommand = new SqlCommand(); 07 DbDataReader myreader; 08 mycommand.commandtype = 09 CommandType.Text; 10 mycommand.connection = myconnection; 11 mycommand.commandtext = "Select * from Table1; Select * from Table2;"; 12 int RecordCount = 0; 13 try 14 { 15 myconnection.open(); } 18 catch (Exception ex) 19 { 20 } 21 finally 22 { 23 myconnection.close(); 24 } You need to compute the total number of records processed by the Select queries in the RecordCount variable. Which code segment should you insert at line 16? A. myreader = mycommand.executereader();recordcount = myreader.recordsaffected; B. while (myreader.read()){ //Write logic to process data for the first result.}recordcount = myreader.recordsaffected; C. while (myreader.hasrows){ while (myreader.read()) { //Write logic to process data for the second result. RecordCount = RecordCount + 1; myreader.nextresult(); }} D. while (myreader.hasrows){ while (myreader.read()) { //Write logic to process data for the second result. RecordCount = RecordCount + 1; } myreader.nextresult();} Answer: D Question: 15 You need to define a class named Order that can participate within a transaction. What should you do? A. Define the Order class to inherit from the System.Transactions.Enlistment class. B. Define the Order class to inherit from the System.Transactions.SinglePhaseEnlistment class. C. Define the Order class to implement the System.Transaction.ITransactionPromoter interface. D. Define the Order class to implement the System.Transaction.IEnlistmentNotification interface. Answer: D Question: 16 The application uses a Microsoft SQL Server 2005 database that contains a Products table and an Inventory table. The application coordinates updates between the records in the Products Page 8 of 62

9 table and Inventory table by loading a DataSet class named DataSet1. You write the following code segment. DataColumn parentcolumn = DataSet1.Tables["Products"].Columns["ProductID"]; DataColumn childcolumn = DataSet1.Tables["Inventory"].Columns["ProductID"]; You need to ensure that the following requirements are met when the ProductID value is modified in the Products table: The ProductID value is unique. The records in the Inventory table are updated with the new ProductID value. Which code segment should you add? A. DataRelation relcustorder = new DataRelation("ProductsInventory", parentcolumn, childcolumn);dataset1.relations.add(relcustorder); B. ForeignKeyConstraint productorderfk = new ForeignKeyConstraint(parentColumn, childcolumn);productorderfk.updaterule = Rule.SetDefault;DataSet1.Tables["Inventory"].Constraints.Add(productOrderFK); C. DataRelation relprodinvent = new DataRelation("ProductsInventory", parentcolumn, childcolumn);dataset1.relations.add(relprodinvent);dataset1.relations["productsinventory"]. C ildkeyconstraint.up = Rule.SetNull; D. DataRelation relprodinvent = new DataRelation("ProductsInventory", childcolumn, parentcolumn);dataset1.relations.add(relprodinvent);foreignkeyconstraint productinvfk = DataSet1.Relations["ProductsInventory"].ChildKeyConstraint;productInvFK.UpdateRule = Rule.SetDefault; Question: 17 The application connects to a Microsoft SQL Server 2005 database. The application uses a SqlConnection object that is active for the lifetime of a user session. You need to ensure that the application gracefully handles all the exceptions that cannot be recovered. Which task should your code perform? A. Catch all the SqlException exceptions and examine the State property of each error. If the State property value is 0, gracefully exit the application. B. Catch all the SqlException exceptions and examine the State property of each error. If the State property value is not 0, gracefully exit the application. C. Catch all the SqlException exceptions and examine the Class property of each error. If the Class property value is greater than 16, gracefully exit the application. D. Catch all the SqlException exceptions and examine the Source property of each error. If the Source property value is not.net SqlClient Data Provider, gracefully exit the application. Answer: C Question: 18 The application connects to a Microsoft SQL Server 2005 database that contains the tblorderdetails table. You plan to create an exception handler for the application. The tblorderdetails table has been created by using the following DDL statement. CREATE TABLE tblorderdetails( Page 9 of 62

10 [OrderID] int NOT NULL FOREIGN KEY REFERENCES tblcustomerorders(orderid), [ProductID] int NOT NULL, [Qty] int NOT NULL, [UnitPrice] float CONSTRAINT ckpositiveprice CHECK (UnitPrice >=0), [Discount] float CONSTRAINT ckpositivediscount CHECK (Discount >=0)) You need to ensure that the users are notified when an update to the tblorderdetails table causes a violation of any constraint. What should you do? A. Catch the System.Exception exception.extract the message value.display the message value to the user. B. Catch the System.Data.SqlClient.SqlException exception. Extract the message value.display the message value to the user. C. Catch the System.Exception exception.loop through all the error objects.capture the relevant data from each object.display the data to the user. D. Catch the System.Data.SqlClient.SqlException exception. Loop through all the error objects. Capture the relevant data from each object.display the data to the user. Answer: D Question: 19 You write the following code segment. (Line numbers are included for reference only.) 01 DataTable dt = new DataTable(); 02 dt.columns.add("number"); 03 dt.columns.add("string"); 04 dt.rows.add(1, "3"); 05 dt.rows.add(2, "2"); 06 dt.rows.add(3, "1"); 07 var result = from p in dt.asenumerable() foreach (var number in result) { 10 Console.Write(number.ToString()); 11 } You need to display the string "321". Which line of code should you insert at line 08? A. orderby p["number"] select p["string"]; B. orderby p["string"] ascending select p["string"]; C. orderby p["string"] descending select p["number"]; D. orderby p["number"] descending select p["string"]; Question: 20 You write the following code segment. DataTable dt = new DataTable("Strings"); dt = new DataTable(); dt.columns.add("strings"); dt.rows.add("a-b"); dt.rows.add("c-d"); Page 10 of 62

11 var c = from Strings in dt.asenumerable() select Strings[0]; int count = 0; You need to ensure that the value of the count variable is 4. Which line of code should you add? A. count = c.select(str => ((string)str).split('-')).count(); B. count = c.selectmany(str => ((string)str).split('-')).count(); C. count = c.select(str => ((string)str).replace('-', '\n')).count(); D. count = c.selectmany(str => ((string)str).replace('-','\n')).count(); Answer: B Question: 21 The application connects to a Microsoft SQL Server 2005 database. The application populates a DataSet object by using a SqlDataAdapter object. You use the DataSet object to update the Categories database table in the database. You write the following code segment. (Line numbers are included for reference only.) 01 SqlDataAdapter dataadpater = new SqlDataAdapter("SELECT CategoryID, CategoryName FROM Categories", connection); 02 SqlCommandBuilder builder = new SqlCommandBuilder(dataAdpater); 03 DataSet ds = new DataSet(); 04 dataadpater.fill(ds); 05 foreach (DataRow categoryrow in ds.tables[0].rows) 06 { 07 if (string.compare(categoryrow["categoryname"].tostring(), searchvalue, true) == 0) 08 { } 11 } 12 dataadpater.update(ds); You need to remove all the records from the Categories database table that match the value of the searchvalue variable. Which line of code should you insert at line 09? A. categoryrow.delete(); B. ds.tables[0].rows.removeat(0); C. ds.tables[0].rows.remove(categoryrow); D. ds.tables[0].rows[categoryrow.gethashcode()].delete(); Question: 22 The application connects to a Microsoft SQL Server 2005 database. The application uses the following stored procedure. CREATE PROCEDURE NVarchar(10),@NewRateCode int AS BEGIN Page 11 of 62

12 Update dbo.shippers SET RateCode Where CountryCode END You write the following code segment. (Line numbers are included for reference only.) 01 using (SqlConnection connection = new SqlConnection(connectionString)) 02 { 03 connection.open(); 04 SqlCommand command = new SqlCommand("UpdateShippers", connection); command.executenonquery(); 07 } You need to ensure that the application can update the Shippers table. Which code segment should you insert at line 05? A. command.commandtype = CommandType.StoredProcedure;SqlParameter parameter = command.parameters.add( "@RowCount", SqlDbType.Int);parameter.Direction = ParameterDirection.ReturnValue; parameter = command.parameters.add("@countrycode", SqlDbType.NVarChar, 10);parameter = command.parameters.add("@newratecode", SqlDbType.Int);command.Parameters["@CountryCode"].Value = "USA";command.Parameters["@NewRateCode"].Value = "778"; B. command.commandtype = CommandType.StoredProcedure;SqlParameter parameter = command.parameters.add("@rowcount", SqlDbType.Int);parameter.Direction = ParameterDirection.Output;parameter = command.parameters.add("@countrycode", SqlDbType.NVarChar, 10, "CountryCode");parameter = command.parameters.add("@newratecode", SqlDbType.Int, 0, "RateCode");command.Parameters["@CountryCode"].Value = "USA";command.Parameters["@NewRateCode"].Value = "778"; C. command.commandtype = CommandType.StoredProcedure;SqlParameter parameter = command.parameters.add("@rowcount", SqlDbType.Int);parameter.Direction = ParameterDirection.ReturnValue;parameter = command.parameters.add("countrycode",sqldbtype.nvarchar, 10, "@CountryCode");parameter = command.parameters.add("ratecode", SqlDbType.Int, 0, "@NewRateCode");command.Parameters["CountryCode"].Value = "USA";command.Parameters["RateCode"].Value = "778"; D. command.commandtype = CommandType.StoredProcedure;SqlParameter parameter = command.parameters.add("@rowcount", SqlDbType.Int);parameter.Direction = ParameterDirection.InputOutput;parameter = command.parameters.add("@countrycode", SqlDbType.NVarChar, 10);parameter = command.parameters.add("@newratecode", SqlDbType.Int, 0);command.Parameters["@CountryCode"].Value = "USA";command.Parameters["@NewRateCode"].Value = "778"; Question: 23 You write the following code segment. (Line numbers are included for reference only.) Page 12 of 62

13 01 private void Update (SqlCommand cmda, SqlCommand cmdb) 02 { 03 using (TransactionScope scope = new TransactionScope()) 04 { } 07 } You need to execute the SqlCommand objects named cmda and cmdb within a single distributed transaction. Which code segment should you insert at line 05? A. try { cmda.connection.open(); cmdb.connection.open(); cmda.executenonquery(); cmdb.executenonquery(); scope.complete(); } catch (Exception exp) {} B. SqlTransaction trans = null;try { cmda.connection.open(); using (trans = cmda.connection.begintransaction()) { cmdb.connection = trans.connection; cmdb.connection.open(); cmda.executenonquery(); cmdb.executenonquery(); trans.commit(); } } catch (Exception exp) { trans.rollback(); } C. SqlTransaction trans = null;try { cmda.connection.open(); cmdb.connection.open(); trans = cmda.connection.begintransaction(); cmda.transaction = trans; cmdb.transaction = trans; cmda.executenonquery(); cmdb.executenonquery(); trans.commit(); } catch (Exception exp) { trans.rollback();} D. SqlTransaction trans = null;try { cmda.connection.open(); using (trans = cmda.connection.begintransaction()) { cmdb.connection.open(); cmda.transaction = trans; cmdb.transaction = trans; cmda.executenonquery(); cmdb.executenonquery(); trans.commit(); } }catch (Exception exp) { trans.rollback();} Question: 24 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You create a Web page named Default.aspx in the root of the application. You add an ImageResources.resx resource file in the App_GlobalResources folder. The ImageResources.resx file contains a localized resource named LogoImageUrl. You need to retrieve the value of LogoImageUrl. Which code segment should you use? A. string logoimageurl = (string)getlocalresource("logoimageurl"); B. string logoimageurl = (string)getglobalresource("default", "LogoImageUrl"); C. string logoimageurl = (string)getglobalresource("imageresources", "LogoImageUrl"); D. string logoimageurl = (string)getlocalresource("imageresources.logoimageurl"); Answer: C Question: 25 The application connects to a Microsoft SQL Server 2005 database. You create a DataSet named northwind. The northwind DataSet contains two related tables named Customers and Orders. You write the following code segment. (Line numbers are included for reference only.) 01 private void Page_Load(object sender, EventArgs e) 02 { 03 this.ordtbladap.fill(this.northwind.orders); 04 this.custtbladap.fill(this.northwind.customers); 05 } 06 private void custbindnavsaveitem_click(object sender, Page 13 of 62

14 EventArgs e) 07 { } The two tables in the northwind DataSet are updated frequently. You need to ensure that the application commits all the updates to the two tables before it saves the data to the database. Which code segment should you insert at line 08? A.this.Validate();this.custBindSrc.EndEdit();this.orderBindsrc.EndEdit();this.tableAdapterManager. UpdateAll(this.northw B.this.Validate();this.tableAdapterManager.UpdateAll(this.northwind);this.custBindSrc.EndEdit();t his.orderbindsrc.ende C. this.tableadaptermanager.updateorder = demo.northwindtbladp.tableadaptermanager.updateorderoption.updateinsertdelete;this.cu st indsrc.endedit();this D. this.tableadaptermanager.updateorder = demo.northwindtbladp.tableadaptermanager.updateorderoption.insertupdatedelete;this.cu st indsrc.endedit();this Question: 26 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You create a Web page that has a GridView control named GridView1. The GridView1 control displays the data from a database named Region and a table named Location. You write the following code segment to populate the GridView1 control. (Line numbers are included for reference only.) 01 protected void Page_Load(object sender, EventArgs e) 02 { 03 string connstr; SqlDependency.Start(connstr); 06 using (SqlConnection connection = 07 new SqlConnection(connstr)) 08 { 09 SqlCommand sqlcmd = new SqlCommand(); 10 DateTime expires = DateTime.Now.AddMinutes(30); 11 SqlCacheDependency dependency = new 12 SqlCacheDependency("Region", "Location"); 13 Response.Cache.SetExpires(expires); 14 Response.Cache.SetValidUntilExpires(true); 15 Response.AddCacheDependency(dependency); sqlcmd.connection = connection; 18 GridView1.DataSource = sqlcmd.executereader(); 19 GridView1.DataBind(); 20 } 21 } You need to ensure that the proxy servers can cache the content of the GridView1 control. Which code segment should you insert at line 16? Page 14 of 62

15 A. Response.Cache.SetCacheability(HttpCacheability.Private); B. Response.Cache.SetCacheability(HttpCacheability.Public); C. Response.Cache.SetCacheability (HttpCacheability.Server); D. Response.Cache.SetCacheability (HttpCacheability.ServerAndPrivate); Answer: B Question: 27 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You create a page that contains the following code fragment. <asp:listbox ID="lstLanguages" AutoPostBack="true" runat="server" /> You write the following code segment in the code-behind file for the page. void BindData(object sender, EventArgs e) { lstlanguages.datasource = CultureInfo.GetCultures(CultureTypes.AllCultures); lstlanguages.datatextfield = "EnglishName"; lstlanguages.databind(); } You need to ensure that the lstlanguages ListBox control maintains the selection of the user during postback. Which line of code should you insert in the constructor of the page? A. this.init += new EventHandler(BindData); B. this.prerender += new EventHandler(BindData); C. lstlanguages.prerender += new EventHandler(BindData); D. lstlanguages.selectedindexchanged += new EventHandler(BindData); Question: 28 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. The application contains a DataSourceControl named CategoriesDataSource that is bound to a Microsoft SQL Server 2005 table. The CategoryName column is the primary key of the table. You write the following code fragment in a FormView control. (Line numbers are included for reference only.) 01 <tr> 02 <td align="right"><b>category:</b></td> 03 <td><asp:dropdownlist ID="InsertCategoryDropDownList" DataSourceID="CategoriesDataSource" 06 DataTextField="CategoryName" 07 DataValueField="CategoryID" 08 RunAt="Server" /> 09 </td> 10 </tr> You need to ensure that the changes made to the CategoryID field can be written to the database. Which code fragment should you insert at line 04? A. SelectedValue='<%# Eval("CategoryID") %>' B. SelectedValue='<%# Bind("CategoryID") %>' Page 15 of 62

16 C. SelectedValue='<%# Eval("CategoryName") %>' D. SelectedValue='<%# Bind("CategoryName") %>' Answer: B Question: 29 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. The application consumes a Microsoft Windows Communication Foundation (WCF) service. The WCF service exposes the following method. [WebInvoke] string UpdateCustomerDetails(string custid); The application hosts the WCF service by using the following code segment. WebServiceHost host = new WebServiceHost(typeof(CService), new Uri(" ServiceEndpoint ep = host.addserviceendpoint(typeof(icservice), new WebHttpBinding(), ""); You need to invoke the UpdateCustomerDetails method. Which code segment should you use? A. WebChannelFactory<ICService> wcf = new WebChannelFactory<ICService>(new Uri("http: //win"))icservice channel = wcf.createchannel();string s = channel.updatecustomerdetails("custid12"); B. WebChannelFactory<ICService> wcf = new WebChannelFactory<ICService>(new Uri("http: //win/updatecustomerdetails"))icservice channel = wcf.createchannel();string s = channel.updatecustomerdetails("custid12"); C. ChannelFactory<ICService> cf = new ChannelFactory<ICService>(new WebHttpBinding(), "http: //win/updatecustomerdetails")icservice channel = cf.createchannel();string s = channel.updatecustomerdetails("custid12"); D. ChannelFactory<ICService> cf = new ChannelFactory<ICService>(new BasicHttpBinding(), "http: //win ")cf.endpoint.behaviors.add(new WebHttpBehavior());ICService channel = cf.createchannel();string s = channel.updatecustomerdetails("custid12"); Question: 30 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You write the following code segment in the code-behind file to create a Web form. (Line numbers are included for reference only.) 01 string strquery = "select * from Products;" 02 + "select * from Categories"; 03 SqlCommand cmd = new SqlCommand(strQuery, cnn); 04 cnn.open(); 05 SqlDataReader rdr = cmd.executereader(); rdr.close(); 08 cnn.close(); You need to ensure that the gvproducts and gvcategories GridView controls display the data that is contained in the following two database tables: The Products database table The Categories database table Which code segment should you insert at line 06? Page 16 of 62

17 A. gvproducts.datasource = rdr;gvproducts.databind();gvcategories.datasource = rdr;gvcategories.databind(); B. gvproducts.datasource = rdr;gvcategories.datasource = rdr;gvproducts.databind();gvcategories.databind(); C. gvproducts.datasource = rdr;rdr.nextresult();gvcategories.datasource = rdr;gvproducts.databind();gvcategories.databind(); D. gvproducts.datasource = rdr;gvcategories.datasource = rdr;gvproducts.databind();rdr.nextresult();gvcategories.databind(); Answer: D Question: 31 You create a Microsoft ASP.NET AJAX application by using the Microsoft.NET Framework version 3.5. You use AJAX-enabled components in the Web page. You add a ScriptManager control to the page. The Web.config file has the following code fragment. <deployment retail="false" /> You receive an unhandled exception in the browser. You plan to debug the client-side script. You need to ensure that the debug scripts are sent to the browser. What should you do? A. Add the following attribute to the ScriptManager control. ScriptMode="Debug" B. Add the following attribute to the ScriptManager control. ScriptMode="Release" C. Set up directive on the Web page in the following manner. <@Page debug="true" > D. Set up the compilation element in the Web.config file in the following manner. <compilation debug="true"> Question: 32 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You add the following code fragment to the Web.config file of the application (Line numbers are included for reference only). 01 <healthmonitoring> 02 <providers> 03 <add name="eventlogprovider" 04 type="system.web.management.eventlogwebeventprovider 05 /> 06 <add name="wmiwebeventprovider" 07 type="system.web.management.wmiwebeventprovider 08 /> 09 </providers> 10 <eventmappings> </eventmappings> 13 <rules> 14 <add name="security Rule" eventname="security Event" 15 provider="wmiwebeventprovider" /> 16 <add name="apperror Rule" eventname="apperror Event" 17 provider="eventlogprovider" /> 18 </rules> Page 17 of 62

18 19 </healthmonitoring> You need to configure Web Events to meet the following requirements: Security-related Web Events are mapped to Microsoft Windows Management Instrumentation (WMI) events. Web Events caused by problems with configuration or application code are logged into the Windows Application Event Log. Which code fragment should you insert at line 11? A. <add name="security Event" type="system.web.management.webauditevent"/><add name="apperror Event" type="system.web.management.webrequesterrorevent"/> B. <add name="security Event" type="system.web.management.webauditevent"/><add name="apperror Event" type="system.web.management.weberrorevent"/> C. <add name="security Event" type="system.web.management.webapplicationlifetimeevent"/><add name="apperror Event" type="system.web.management.webrequesterrorevent"/> D. <add name="security Event" type="system.web.management.webapplicationlifetimeevent"/><add name="apperror Event" type="system.web.management.weberrorevent"/> Answer: B Question: 33 You create a Microsoft ASP.NET Web application by using the Microsoft.NET Framework version 3.5. You plan to set up authentication for the Web application. The application must support users from untrusted domains. You need to ensure that anonymous users cannot access the application. Which code fragment should you add to the Web.config file? A. <system.web> <authentication mode="forms"> <forms loginurl="login.aspx" /> </authentication> <authorization> <deny users="?" /> </authorization></system.web> B. <system.web> <authentication mode="forms"> <forms loginurl="login.aspx" /> </authentication> <authorization> <deny users="*" /> </authorization></system.web> C. <system.web> <authentication mode="windows"> </authentication> <authorization> <deny users="?" /> </authorization></system.web> D. <system.web> <authentication mode="windows"> </authentication> <authorization> <deny users="*" /> </authorization></system.web> Question: 34 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. The application contains two Web pages named OrderDetails.aspx and OrderError.htm. If the application throws unhandled errors in the OrderDetails.aspx Web page, a stack trace is displayed to remote users. You need to ensure that the OrderError.htm Web page is displayed for unhandled errors only in the OrderDetails.aspx Web page. What should you do? A. Set the Page attribute for the OrderDetails.aspx Web page in the following manner. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderDetails.aspx.cs" Inherits="OrderDetails" %> Add the following section to the Web.config file. <customerrors mode="off" defaultredirect="ordererror.htm"></customerrors> B. Set the Page attribute for the OrderDetails.aspx Web page in the following manner. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderDetails.aspx.cs" Inherits="OrderDetails" Debug="true" %> Add the following section to the Web.config file. <customerrors mode="on" defaultredirect="ordererror.htm"> C. Set the Page attribute for the OrderDetails.aspx Web page in the following manner. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderDetails.aspx.cs" Page 18 of 62

19 Inherits="OrderDetails" ErrorPage="~/OrderError.htm" Debug="false" %> Add the following section to the Web.config file. <customerrors mode="on"></customerrors> D. Set the Page attribute for the OrderDetails.aspx Web page in the following manner. Page Language="C#" AutoEventWireup="true" CodeFile="OrderDetails.aspx.cs" Inherits="OrderDetails" Debug="true" ErrorPage="~/OrderError.htm" %> Add the following section to the Web.config file. <customerrors mode="off"></customerrors> Answer: C Question: 35 You write the following code segment. DataTable dt = new DataTable("Customer"); dt.columns.add("id", typeof(int32)); dt.columns.add("state", typeof(string)); dt.columns.add("regioncode", typeof(string)); dt.rows.add(1, "WA", "MT297EM"); dt.rows.add(2, "CA", "MT33SG"); dt.rows.add(3, "NY", "MT73229MP"); var query = from c in dt.asenumerable() select c["regioncode"]; foreach (string rnum in query) You need to display only the digits from the RegionCode field. Which line of code should you add? A. Console.WriteLine(rNum.Select(c => char.isdigit(c))); B. Console.WriteLine(rNum.Select(c => char.isdigit(c)?c:'\0')); C. Console.WriteLine(rNum.Select(delegate(char c) { return char.isdigit(c); })); D. Console.WriteLine(rNum.Select(delegate(char c, int p) { return p.compareto(c); })); Answer: B Question: 36 The application contains a DataSet object that has a table. The DataSet object is as shown in the following exhibit. You need to ensure that the application meets the following requirements without creating another table: The DataSet can be extended by using the designer. The application displays all product records. The product records can be filtered by ProductID. What should you do? Page 19 of 62

20 A. Modify ProductTableAdapter by using the Fill method that accepts ProductID as an optional parameter. B. Modify ProductTableAdapter by using the GetData method that accepts ProductID as an optional parameter. C. Add another TableAdapter object named ProductTableAdapterByProductID and configure it to retrieve records by ProductID. D. Add another query to ProductTableAdapter by using the ProductID field as a parameter, and then filter the records by using this parameter. Answer: D Question: 37 The application contains a SqlDataAdapter object named daorder. The SelectCommand property of the daorder object is set. You write the following code segment. (Line numbers are included for reference only.) 01 private void ModifyDataAdapter() { } You need to ensure that the daorder object can also handle updates. Which code segment should you insert at line 02? A. SqlCommandBuilder cb = new SqlCommandBuilder(daOrder);cb.RefreshSchema(); B. SqlCommandBuilder cb = new SqlCommandBuilder(daOrder);cb.SetAllValues = true; C. SqlCommandBuilder cb = new SqlCommandBuilder(daOrder);daOrder.DeleteCommand = cb.getdeletecommand();daorder.insertcommand = cb.getinsertcommand();daorder.updatecommand = cb.getupdatecommand(); D. SqlCommandBuilder cb = new SqlCommandBuilder(daOrder);cb.RefreshSchema();cb.GetDeleteCommand();cb.GetInsertCo m and();cb.getupdateco Answer: C Question: 38 Page 20 of 62

21 The application connects to a Microsoft SQL Server 2005 database. The application contains the following objects: A SqlDataReader object named reader A SqlCommand object named cmdrecords A SqlCommand object named cmdupdate A SqlConnection object named conn The SqlConnection object has the following ConnectionString property. "Server=Prod; Database=Wingtip; Integrated Security=SSPI" The reader object is obtained from the cmdrecords object. The conn object is shared by the cmdrecords and the cmdupdate objects. You need to ensure that for each record in the reader object, the application calls the ExecuteNonQuery method of the cmdupdate object. What should you do? A. Call the InitializeLifeTimeService method of conn. B. After you call the reader object, close conn. Before you call the cmdupdate.executenonquery() method, reopen conn. C. Modify the connection string of conn to contain the following attribute. AsynchronousProcessing=true; D. Modify the connection string of conn to contain the following attribute. MultipleActiveResultSets=true; Answer: D Question: 39 The application contains a DataSet object named orderds. The object contains a table named Order as shown in the following exhibit. The application uses a SqlDataAdapter object named daorder to populate the Order table. You write the following code segment. (Line numbers are included for reference only.) 01 private void FillOrderTable(int pageindex) { 02 int pagesize = 5; } You need to fill the Order table with the next set of 5 records for each increase in the pageindex value. Which code segment should you insert at line 03? Page 21 of 62

22 A. string sql = "SELECT SalesOrderID, CustomerID, OrderDate FROM Sales.SalesOrderHeader";daOrder.SelectCommand.CommandText = sql;daorder.fill(orderds, pageindex, pagesize, "Order"); B. int startrecord = (pageindex - 1) * pagesize;string sql = "SELECT SalesOrderID, CustomerID, OrderDate FROM Sales.SalesOrderHeader";daOrder.SelectCommand.CommandText = sql;daorder.fill(orderds, startrecord, pagesize, "Order"); C. string sql = string.format("select TOP {0} SalesOrderID, CustomerID, OrderDate FROM Sales.SalesOrderHeader WHERE SalesOrderID > {1}", pagesize, pageindex);daorder.selectcommand.commandtext = sql;daorder.fill(orderds, "Order"); D. int startrecord = (pageindex - 1) * pagesize;string sql = string.format("select TOP {0} SalesOrderID, CustomerID, OrderDate FROM Sales.SalesOrderHeader WHERE SalesOrderID > {1}", pagesize, startrecord);daorder.selectcommand.commandtext = sql;daorder.fill(orderds, "Order"); Answer: B Question: 40 The application connects to a Microsoft SQL Server 2005 database. The application analyzes large amounts of transaction data that are stored in a different database. You write the following code segment. (Line numbers are included for reference only.) 01 using (SqlConnection connection = new SqlConnection(sourceConnectionString)) 02 using (SqlConnection connection2 = new SqlConnection(destinationConnectionString)) 03 using (SqlCommand command = new SqlCommand()) 04 { 05 connection.open(); 06 connection2.open(); 07 using (SqlDataReader reader = command.executereader()) 08 { 09 using (SqlBulkCopy bulkcopy = new SqlBulkCopy(connection2)) 10 { } 13 } 14 } You need to copy the transaction data to the database of the application. Which code segment should you insert at line 11? A. reader.read()bulkcopy.writetoserver(reader); B. bulkcopy.destinationtablename = "Transactions";bulkCopy.WriteToServer(reader); C. bulkcopy.destinationtablename = "Transactions";bulkCopy.SqlRowsCopied += new sqlrowscopiedeventhandler(bulkcopy_sqlrowscopied); D. while (reader.read()){ bulkcopy.writetoserver(reader);} Answer: B Question: 41 Page 22 of 62

23 The application connects to a Microsoft SQL Server 2005 database. You write the following code segment. string query = "Select EmpNo, EmpName from dbo.table_1; select Name,Age from dbo.table_2"; SqlCommand command = new SqlCommand(query, connection); SqlDataReader reader = command.executereader(); You need to ensure that the application reads all the rows returned by the code segment. Which code segment should you use? A. while (reader.nextresult()){ Console.WriteLine(String.Format("{0}, {1}",reader[0], reader[1])); reader.read();} B. while (reader.read()){ Console.WriteLine(String.Format("{0}, {1}",reader[0], reader[1])); reader.nextresult();} C. while (reader.read()){ Console.WriteLine(String.Format("{0}, {1}",reader[0], reader[1]));}reader.nextresult();while (reader.read()){ Console.WriteLine(String.Format("{0}, {1}",reader[0], reader[1]));} D. while (reader.nextresult()){ Console.WriteLine(String.Format("{0}, {1}",reader[0], reader[1]));}reader.read();while (reader.nextresult()){ Console.WriteLine(String.Format("{0}, {1}",reader[0], reader[1]));} Answer: C Question: 42 You write the following code segment. (Line numbers are included for reference only.) 01 private List<string> GetEmployers() { 02 List<string> employers = new List<string>(); 03 SqlCommand cmd = new SqlCommand(); XmlReader reader = cmd.executexmlreader(); 06 while (reader.read()) { } 09 return employers; 10 } The cmd object returns the following XML data structure. <Resume> <Name> <Name.First>Shai</Name.First> <Name.Last>Bassli</Name.Last> </Name> <Employment> <Emp.OrgName>Wingtip Toys</Emp.OrgName>... </Employment>... </Resume> You need to populate the employers list with each employer entry in the XML data structure. Which code segment should you insert at line 07? Page 23 of 62

24 A. if (reader.name == "Emp.OrgName") { string employer = reader.readelementcontentasstring(); employers.add(employer);} B. if (reader.name == "Emp.OrgName") { reader.movetocontent(); string employer = reader.value; employers.add(employer);} C. if (reader.name == "Emp.OrgName" & reader.hasattributes) { reader.movetofirstattribute(); string employer = reader.value; employers.add(employer);} D. if (reader.name == "Emp.OrgName") { reader.movetofirstattribute(); if (reader.hasvalue) { string employer = reader.value; employers.add(employer); }} Question: 43 You write the following code segment. (Line numbers are included for reference only.) 01 private void GetRecords(SqlDataAdapter da, DataTable table) { try { 04 da.fill(table); 05 } 06 catch (SqlException exp) { } 09 finally { } 12 } 13 The da.selectcommand.commandtext property is set to a stored procedure. The stored procedure declares a variable For each record that contains a bad shipping address, the stored procedure performs the following tasks: It with the id of the record. It raises an error for the record. The error raised is as shown in the following text: RaiseError(@msg, 10, 1) You need to ensure that all valid records are retrieved even if invalid records are present. You also need to ensure that a list item is added to the lstresults list box for each invalid record. What should you do? A. Insert the following code segment at line 07. foreach (SqlError error in exp.errors) { lstresult.items.add(exp.message);} B. Insert the following code segment at line 10. foreach (DataRow row in table.rows) { if (row.haserrors) { lstresult.items.add(row.rowerror); }} C. Insert the following code segment at line 02. SqlNotificationRequest notices = new SqlNotificationRequest();da.SelectCommand.Notification = notices; Insert the following line of code at line 10. lstresult.items.add(notices.userdata); D. Insert the following code segment at line 02. da.selectcommand.connection.infomessage += new SqlInfoMessageEventHandler(Connection_InfoMessage); Insert the following code segment at line 13. private void Connection_InfoMessage(object sender, SqlInfoMessageEventArgs e) { lstresult.items.add(e.message);} Page 24 of 62

25 Answer: D Question: 44 You create a Microsoft ASP.NET Web application by using the Microsoft.NET Framework version 3.5. You add the following code fragment to an AJAX-enabled Web form. (Line numbers are included for reference only.) 01 <asp:scriptmanager ID="scrMgr" runat="server" /> 02 <asp:updatepanel ID="updPanel" runat="server" 03 UpdateMode="Conditional"> 04 <ContentTemplate> 05 <asp:label ID="lblTime" runat="server" /> 06 <asp:updatepanel ID="updInnerPanel" 07 runat="server" UpdateMode="Conditional"> 08 <ContentTemplate> 09 <asp:timer ID="tmrTimer" runat="server" 10 Interval="1000" 11 OnTick="tmrTimer_Tick" /> 12 </ContentTemplate> </asp:updatepanel> 15 </ContentTemplate> </asp:updatepanel> The tmrtimer_tick event handler sets the Text property of the lbltime Label control to the current time of the server. You need to configure the appropriate UpdatePanel control to ensure that the lbltime Label Control is properly updated by the tmrtimer Timer control. What should you do? A. Set the UpdateMode="Always" attribute to the updinnerpanel UpdatePanel control in line 07. B. Set the ChildrenAsTriggers="false" attribute to the updpanel UpdatePanel control in line 02. C. Add the following code fragment to line 13. <Triggers> <asp:postbacktrigger ControlID="tmrTimer" /></Triggers> D. Add the following code fragment to line 16. <Triggers> <asp:asyncpostbacktrigge ControlID="tmrTimer" EventName="Tick" /></Triggers> Answer: D Question: 45 The application connects to a Microsoft SQL Server 2005 database. The connection string of the application is defined in the following manner. "Server=Prod;Database=WingtipToys;Integrated Security=SSPI;Asynchronous Processing=true" The application contains the following code segment. (Line numbers are included for reference only.) 01 protected void UpdateData(SqlCommand cmd) { 02 cmd.connection.open(); lblresult.text = "Updating..."; 05 } Page 25 of 62

26 The cmd object takes a long time to execute. You need to ensure that the application continues to execute while cmd is executing. What should you do? A. Insert the following code segment at line 03. cmd.beginexecutenonquery(new AsyncCallback(UpdateComplete), cmd); Add the following code segment. private void UpdateComplete (IAsyncResult ar) { int count = (int)ar.asyncstate; LogResults(count);} B. Insert the following code segment at line 03. cmd.beginexecutenonquery(new AsyncCallback(UpdateComplete), cmd); Add the following code segment. private void UpdateComplete (IAsyncResult ar) { SqlCommand cmd = (SqlCommand)ar.AsyncState; int count = cmd.endexecutenonquery(ar); LogResults(count);} C. Insert the following code segment at line 03. cmd.statementcompleted += new StatementCompletedEventHandler(UpdateComplete);cmd.ExecuteNonQuery(); Add the following code segment. private void UpdateComplete (object sender, StatementCompletedEventArgs e) { int count = e.recordcount; LogResults(count);} D. Insert the following code segment at line 03. SqlNotificationRequest notification = new SqlNotificationRequest("UpdateComplete", "", 10000);cmd.Notification = notification;cmd.executenonquery(); Add the following code segment. private void UpdateComplete(SqlNotificationRequest notice) { int count = int.parse(notice.userdata); LogResults(count);} Answer: B Question: 46 The application loads customer records into a DataTable object that is contained in a database. The records in the DataTable object will be updated by the users of the application. The data in the updated records might contain errors. You need to ensure that the data in the updated records is validated before it is saved to the database. What should you do? A. Create an event handler for the TableNewRow event of the DataTable object.add a validation code in the event handler to validate the row that is supplied by the DataTableNewRowEventArgs object. B. Create an event handler for the RowChanging event of the DataTable object. Add a validation code in the event handler to validate the row that is supplied by the DataRowChangeEventArgs object. C. Call the RejectChanges method of the DataTable object before you save the updated records to the database.call the GetChanges method of the DataTable object to create a copy of the DataTable object that contains the changes. Add a validation code to validate the DataTable object that contains the changes. D. Call the AcceptChanges method of the DataTable object before you save the updated records to the database.call the GetChanges method of the DataTable object to create a copy of the DataTable object that contains the changes. Add a validation code to validate the DataTable object that contains the changes. Answer: B Question: 47 The application connects to a Microsoft SQL Server 2005 database that contains a table named Customers. Concurrent users update the Customers table frequently. You write the following code segment. (Line numbers are included for reference only.) 01 SqlDataAdapter adapter = new SqlDataAdapter( Page 26 of 62

27 "SELECT CustomerID, CompanyName, LastUpdated" + " FROM Customers ORDER BY CustomerID", connection); 02 adapter.updatecommand = new SqlCommand( "UPDATE Customers Set CompanyName + " WHERE CustomerID AND " + "LastUpdated connection); 03 adapter.updatecommand.parameters.add( "@CustomerID", SqlDbType.Int, 0, "CustomerID"); 04 adapter.updatecommand.parameters.add( "@CompanyName", SqlDbType.NVarChar, 30, "CompanyName"); 05 SqlParameter parameter = adapter.updatecommand.parameters.add("@lastupdated", SqlDbType.Timestamp, 0, "LastUpdated"); 06 parameter.sourceversion = DataRowVersion.Original; 07 You need to ensure that the application updates only records without optimistic concurrency violations. What should you do? A. Insert the following code segment at line 07. adapter.rowupdating += new SqlRowUpdatingEventHandler(OnRowUpdating) Add the following event handler method. static void OnRowUpdating(object sender, SqlRowUpdatingEventArgs args){ if (args.row.haserrors) { args.row.rowerror = "Optimistic Concurrency Violation" + "Encountered"; args.status = UpdateStatus.SkipCurrentRow; }} B. Insert the following code segment at line 07. adapter.rowupdated += new SqlRowUpdatedEventHandler(OnRowUpdated); Add the following event handler method. protected static void OnRowUpdated(object sender, SqlRowUpdatedEventArgs args){ if (args.rowcount == 0) { args.row.rowerror = "Optimistic Concurrency Violation " + "Encountered"; args.status = UpdateStatus.SkipCurrentRow; }} C. Insert the following code segment at line 07. adapter.rowupdated += new SqlRowUpdatedEventHandler(OnRowUpdated); Add the following event handler method. protected static void OnRowUpdated(object sender, SqlRowUpdatedEventArgs args){ if (args.recordsaffected == 0) { args.row.rowerror = "Optimistic Concurrency Violation " + "Encountered"; args.status = UpdateStatus.SkipCurrentRow; }} D. Insert the following code segment at line 07. adapter.rowupdating += new SqlRowUpdatingEventHandler(OnRowUpdating) Add the following event handler method. static void OnRowUpdating(object sender, SqlRowUpdatingEventArgs args){ if (args.row.rowstate == DataRowState.Modified) { args.row.rowerror = "Optimistic Concurrency Violation" + "Encountered"; args.status = UpdateStatus.SkipCurrentRow; }} Answer: C Question: 48 You write the following code segment. DataTable dt = new DataTable("Strings"); dt = new DataTable();dt.Columns.Add("Strings"); dt.rows.add("a-b"); dt.rows.add("c-d"); var c = from Strings in dt.asenumerable() Page 27 of 62

28 select Strings[0]; int count = 0; You need to ensure that the value of the count variable is 4. Which line of code should you add? A. count = c.select(str => ((string)str).split('-')).count(); B. count = c.selectmany(str => ((string)str).split('-')).count(); C. count = c.select(str => ((string)str).replace('-', '\n')).count(); D. count = c.selectmany(str => ((string)str).replace('-','\n')).count(); Answer: B Question: 49 The application connects to a Microsoft SQL Server 2005 database. You write the following code segment in the exception handler of the application. (Line numbers are included for reference only.) 01 private string ShowSQLErrors(SqlException ex){ 02 StringBuilder sb = new StringBuilder(); 03 foreach (SqlError err in ex.errors) { 04 sb.append("message: "); 05 sb.append(err.number.tostring()); 06 sb.append(", Level: "); sb.append(", State: "); 09 sb.append(err.state.tostring()); 10 sb.append(", Source: "); 11 sb.appendline(err.source.tostring()); 12 sb.appendline(err.message.tostring()); 13 sb.appendline(); 14 } 15 return sb.tostring(); 16 } You need to ensure that the original severity level of the error is included in the error message for each SQL error that occurs. Which line of code should you insert at line 07? A. sb.append(err.tostring()); B. sb.append(err.class.tostring()); C. sb.append(err.procedure.tostring()); D. sb.append(err.linenumber.tostring()); Answer: B Question: 50 You need to define a class named Order that can participate within a transaction. What should you do? A. Define the Order class to inherit from the System.Transactions.Enlistment class. B. Define the Order class to inherit from the System.Transactions.SinglePhaseEnlistment class. C. Define the Order class to implement the System.Transaction.ITransactionPromoter interface. D. Define the Order class to implement the System.Transaction.IEnlistmentNotification interface. Page 28 of 62

29 Answer: D Question: 51 You write the following code segment. (Line numbers are included for reference only.) 01 private void Update (SqlCommand cmda, SqlCommand cmdb) 02 { 03 using (TransactionScope scope = new TransactionScope()) 04 { } 07 } You need to execute the SqlCommand objects named cmda and cmdb within a single distributed transaction. Which code segment should you insert at line 05? A. try { cmda.connection.open(); cmdb.connection.open(); cmda.executenonquery(); cmdb.executenonquery(); scope.complete(); } catch (Exception exp) {} B. SqlTransaction trans = null;try { cmda.connection.open(); using (trans = cmda.connection.begintransaction()) { cmdb.connection = trans.connection; cmdb.connection.open(); cmda.executenonquery(); cmdb.executenonquery(); trans.commit(); } } catch (Exception exp) { trans.rollback(); } C. SqlTransaction trans = null;try { cmda.connection.open(); cmdb.connection.open(); trans = cmda.connection.begintransaction(); cmda.transaction = trans; cmdb.transaction = trans; cmda.executenonquery(); cmdb.executenonquery(); trans.commit(); } catch (Exception exp) { trans.rollback();} D. SqlTransaction trans = null;try { cmda.connection.open(); using (trans = cmda.connection.begintransaction()) { cmdb.connection.open(); cmda.transaction = trans; cmdb.transaction = trans; cmda.executenonquery(); cmdb.executenonquery(); trans.commit(); } }catch (Exception exp) { trans.rollback();} Question: 52 The application fills a DataSet object named custds with customer records. You write the following code segment. (Line numbers are included for reference only.) 01 System.IO.StreamWriter xmlsw = 02 new System.IO.StreamWriter("Customers.xml"); xmlsw.close(); You need to write the content of the custds object to the Customers.xml file as XML data along with inline XML schema. Which code segment should you insert at line 03? A. xmlsw.write(custds.getxml()); B. xmlsw.write(custds.getxmlschema()); C. custds.writexml(xmlsw); D. custds.writexml(xmlsw, XmlWriteMode.WriteSchema); Answer: D Page 29 of 62

30 Question: 53 You create an application for an online store by using the Microsoft.NET Framework 3.5 and Microsoft ADO.NET. You write the following code segment. (Line numbers are included for reference only.) 01 DataTable dtproducts = new DataTable(); 02 dtproducts.columns.add("productid"); 03 dtproducts.columns.add("productname"); 04 dtproducts.columns.add("categoryid"); 05 dtproducts.rows.add(1, "Milk", 1); 06 dtproducts.rows.add(2, "Beef", 2); 07 dtproducts.rows.add(3, "Butter", 1); 08 dtproducts.rows.add(4, "Sausage", 2); 09 DataTable dtcategories = new DataTable(); 10 dtcategories.columns.add("categoryid"); 11 dtcategories.columns.add("categoryname"); 12 dtcategories.rows.add(1, "Dairy products"); 13 dtcategories.rows.add(2, "Meat"); 14 var products = dtproducts.asenumerable(); 15 var categories = dtcategories.asenumerable(); foreach (var element in result) { 18 Console.WriteLine(element); 19 } When the dtproducts DataTable has the same value in the CategoryID column as the dtcategories DataTable, the DataTables are related. You need to display for each product, the product information and the product category. Which code segment should you insert at line 16? A. var result = products.join( categories, p => p["categoryid"], c => c["categoryid"], (p, c) => new { Name = p["productname"], Category = c["categoryname"] }); B. var result = products.join( categories, c => c["categoryid"], p => p["categoryid"], (c, p) => new { Name = p["productname"], Category = c["categoryname"] }); C. var result = products.groupjoin( categories, p => p["categoryid"], c => c["categoryid"], (group, r) => new { Name = group["productname"], Category = group["categoryname"] }); D. var result = categories.groupjoin( products, p => p["categoryid"], c => c["categoryid"], (group, r) => new { Name = group["productname"], Category = group["categoryname"] }); Question: 54 The application uses a Microsoft SQL Server 2005 database. The application contains a DataSet object that contains two DataTable objects. The DataTable objects reference the Customers and Orders tables in the database. You write the following code segment. (Line numbers are included for reference only.) 01 DataSet custorderds = new DataSet(); 02 custorderds.enforceconstraints = true; 03 ForeignKeyConstraint custorderfk = new ForeignKeyConstraint("CustOrderFK", custorderds.tables["customers"].columns["customerid"], custorderds.tables["orders"].columns["customerid"]); Page 30 of 62

31 04 05 custorderds.tables["orders"].constraints.add(custorderfk); You need to ensure that an exception is thrown when you attempt to delete Customer records that have related Order records. Which code segment should you insert at line 04? A. custorderfk.deleterule = Rule.None; B. custorderfk.deleterule = Rule.Cascade; C. custorderfk.deleterule = Rule.SetNull; D. custorderfk.deleterule = Rule.SetDefault; Question: 55 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You write the following code segment to create a client-script function. (Line numbers are included for reference only.) 01 function updatelabelcontrol(labelid, newtext) { 02 var label = $find(labelid); 03 label.innerhtml = newtext; 04 } The client script function uses ASP.NET AJAX and updates the text of any Label control in the Web form. When you test the client script function, you discover that the Label controls are not updated. You receive the following JavaScript error message in the browser: "'null' is null or not an object." You need to resolve the error. What should you do? A. Replace line 03 with the following line of code. label.innertext = newtext; B. Replace line 02 with the following line of code. var label = $get(labelid); C. Replace line 02 with the following line of code. var label = Sys.UI.DomElement.getElementById($get(labelId)); D. Replace line 02 with the following line of code. var label = Sys.UI.DomElement.getElementById($find(labelId)); Answer: B Question: 56 The application connects to a Microsoft SQL Server 2005 database. You write the following two DDL statements. CREATE TABLE tblcustomers( CustID INT IDENTITY(1,1) NOT NULL PRIMARY KEY, CompanyName VARCHAR(50) NOT NULL, ContactName VARCHAR(100) NOT NULL) GO CREATE TABLE tblcustomerorders( OrderID INT IDENTITY(1,1) NOT NULL, CustID INT NOT NULL FOREIGN KEY REFERENCES tblcustomers(custid), OrderDate DateTime NOT NULL) When a user attempts to delete the data from the tblcustomers table during execution, the application throws a SqlException exception. The application was designed without any Page 31 of 62

32 DataRelation objects. You need to successfully delete the data from the tblcustomers table. What should you do? A. Use a DataRow to delete the records in the tblcustomers table. B. Use a DataAdapter to delete the records in the tblcustomers table. C. Update the DDL statement for the tblcustomers table to use the ON DELETE CASCADE option. D. Update the DDL statement for the tblcustomerorders table to use the ON DELETE CASCADE option. Answer: D Question: 57 You are creating a Windows Forms application by using the.net Framework 3.5. The application requires a thread that accepts a single integer parameter. You write the following code segment. (Line numbers are included for reference only.) 01 Thread mythread = new Thread(new ParameterizedThreadStart(DoWork)); 02 mythread.start(100); You need to declare the method signature of the DoWork method. Which method signature should you use? A. public void DoWork() B. public void DoWork(int ncounter) C. public void DoWork(object ocounter) D. public void DoWork(Delegate ocounter) Answer: C Question: 58 You are creating a Windows application by using the.net Framework 3.5. You plan to create a form that might result in a time-consuming operation. You use the QueueUserWorkItem method and a Label control named lblresult. You need to update the users by using the lblresult control when the process has completed the operation. Which code segment should you use? A. private void DoWork(object myparameter){ // thread work this.invoke(new MethodInvoker(ReportProgress));} private void ReportProgress(){ this.lblresult.text = "Finished Thread";} B. private void DoWork(object myparameter){ // thread work this.lblresult.text = "Finished Thread";} C. private void DoWork(object myparameter){ // thread work System.Threading.Monitor.Enter(this); this.lblresult.text = "Finished Thread"; System.Threading.Monitor.Exit(this);} D. private void DoWork(object myparameter){ // thread work System.Threading.Monitor.TryEnter(this); ReportProgress();}private void ReportProgress(){ this.lblresult.text = "Finished Thread";} Question: 59 Page 32 of 62

33 You are creating a Windows application by using the.net Framework 3.5. You create an instance of the BackgroundWorker component named backgroundworker1 to asynchronously process time-consuming reports in the application. You write the following code segment in the application. (Line numbers are included for reference only.) 01 private void backgroundworker1_runworkercompleted( object sender, RunWorkerCompletedEventArgs e) 02 { } You need to write a code segment that reports to the application when the background process detects any of the following actions: An exception is thrown. The process is cancelled. The process is successfully completed. Which code segment should you insert at line 03? A. if (e.cancelled == null) MessageBox.Show("Report Cancelled"); else MessageBox.Show("Report Completed"); B. if (e.result == "Cancelled" e.result == "Error") MessageBox.Show("Report Cancelled");else MessageBox.Show("Report Completed"); C. if (backgroundworker1.cancellationpending) MessageBox.Show("Report Cancelled"); Else MessageBox.Show("Report Completed"); D. if (e.error!= null) MessageBox.Show(e.Error.Message);else if (e.cancelled) MessageBox.Show("Report Cancelled");else MessageBox.Show("Report Completed"); Answer: D Question: 60 You are creating a multiple-document interface (MDI) application by using the.net Framework 3.5. You configure the frmparent form to be an MDI parent. You write the following code segment. (Line numbers are included for reference only.) 01 Form frmchild = new Form(); 02 Form frmparent = this; 03 You need to associate and display the frmchild form and the frmparent form. Which code segment should you add at line 03? A. frmchild.mdiparent = frmparent;frmchild.showdialog(); B. frmchild.mdiparent = frmparent;frmchild.show(); C. frmchild.ismdicontainer = true;frmchild.showdialog(); D. frmchild.ismdicontainer = true; frmchild.show(); Answer: B Question: 61 You are creating a Windows Forms application by using the.net Framework 3.5. You plan to deploy the application in multiple countries and languages. You need to ensure that the Page 33 of 62

34 application meets the globalization requirements. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.) A. Handle server names and URLs as ASCII data. B. Use Unicode strings throughout the application. C. Use the NumberFormatInfo class for numeric formatting. D. Handle strings as a series of individual characters instead of entire strings. E. Avoid usage of the SortKey class and the CompareInfo class for sorting purposes. Answer: B, C Question: 62 You are creating a Windows Forms application for a courier company by using the.net Framework 3.5. You create a form that allows customers to track the progress of their shipments. The form contains the following elements: A text box named txttn that allows users to enter a tracking number An ErrorProvider control named ErrorProvider1 that informs users of an invalid tracking number A function named ValidTrackingNumber that validates tracking numbers You need to ensure that the txttn text box is validated. Which code segment should you use? A. private void txttn_validating(object sender, CancelEventArgs e){ if (!ValidTrackingNumber(txtTN.Text)) { errorprovider1.seterror(txttn, "Invalid Tracking Number"); e.cancel = true; } else errorprovider1.seterror(txttn, "");} B. private void txttn_validating(object sender, CancelEventArgs e){ if (!ValidTrackingNumber(txtTN.Text)) errorprovider1.seterror(txttn, "Invalid Tracking Number"); else { errorprovider1.seterror(txttn, ""); e.cancel = true; }} C. private void txttn_validated(object sender, EventArgs e){ if (!ValidTrackingNumber(txtTN.Text)) errorprovider1.seterror(txttn, "Invalid Tracking Number"); else { errorprovider1.seterror(txttn, ""); txttn.focus(); }} D. private void txttn_validated(object sender, EventArgs e){ if (!ValidTrackingNumber(txtTN.Text)) { errorprovider1.seterror(txttn, "Invalid Tracking Number"); txttn.focus(); } else errorprovider1.seterror(txttn, "");} Question: 63 You are creating a Windows application for a financial services provider by using the.net Framework 3.5. You write the following code segment in the form. (Line numbers are included for reference only.) 01 string querystring = 02 "SELECT CategoryID, CategoryName FROM Categories"; 03 The connection string for the financial services database is stored in the variable named connstring. You need to ensure that the form populates a DataGridView control named gridcat. Which code segment should you add at line 03? A. OleDbDataAdapter adapter = new OleDbDataAdapter(queryString, connstring);dataset categories = new DataSet();adapter.Fill(categories, "Categories");gridCAT.DataSource = categories.tables[0]; Page 34 of 62

35 B. OleDbConnection conn = new OleDbConnection(connString);conn.Open();OleDbCommand cmd = new OleDbCommand(queryString, conn);oledbdatareader reader = cmd.executereader();gridcat.datasource = reader; C. OleDbDataAdapter adapter = new OleDbDataAdapter(queryString, connstring);dataset categories = new DataSet();adapter.Fill(categories, "Categories");gridCAT.DataSource = categories; D. OleDbConnection conn = new OleDbConnection(connString);conn.Open();OleDbCommand cmd = new OleDbCommand(queryString, conn);oledbdatareader reader = cmd.executereader();gridcat.datasource = reader.read(); Question: 64 You are creating a Windows Forms application by using the.net Framework 3.5. You write the following code segment to bind a list of categories to a drop-down list. (Line numbers are included for reference only.) 01 OleDbConnection cnnnorthwind = new OleDbConnection(connectionString); 02 OleDbCommand cmdcategory = new OleDbCommand( "SELECT CategoryID, CategoryName FROM Categories ORDER BY CategoryName", cnnnorthwind); 03 OleDbDataAdapter dacategory = new OleDbDataAdapter(cmdCategory); 04 DataSet dscategory = new DataSet(); 05 dacategory.fill(dscategory); 06 You need to ensure that the drop-down list meets the following requirements: Displays all category names. Uses the category ID as the selected item value. Which code segment should you add at line 06? A. ddlcategory.datasource = dscategory;ddlcategory.displaymember "CategoryName";ddlCategory.ValueMember = "CategoryID"; B. ddlcategory.datasource = dscategory.tables[0];ddlcategory.displaymember "CategoryName";ddlCategory.ValueMember = "CategoryID"; C. ddlcategory.databindings.add("displaymember", dscategory "CategoryName");ddlCategory.DataBindings.Add("ValueMember", dscategory, "CategoryID"); D. ddlcategory.databindings.add("displaymember", dscategory.tables[0] "CategoryName");ddlCategory.DataBindings.Add("ValueMember", dscategory.tables[0], "CategoryID"); Answer: B Question: 65 You are creating a Windows Forms application by using the.net Framework 3.5. You write a code segment to connect to a Microsoft Access database and populate a DataSet. You need to ensure that the application meets the following requirements: It displays all database exceptions. It logs all other exceptions by using the LogExceptionToFile. Page 35 of 62

36 Which code segment should you use? A. try{ categorydataadapter.fill(dscategory);}catch (SqlException ex){ MessageBox.Show(ex.Message, "Exception"); LogExceptionToFile(ex.Message);} B. try{ categorydataadapter.fill(dscategory);}catch (SqlException ex){ MessageBox.Show(ex.Message, "Exception");}catch (Exception ex){ LogExceptionToFile(ex.Message);} C. try{ categorydataadapter.fill(dscategory);}catch (OleDbException ex){ MessageBox.Show(ex.Message, "Exception");}catch (Exception ex){ LogExceptionToFile(ex.Message);} D. try{ categorydataadapter.fill(dscategory);}catch (OleDbException ex){ MessageBox.Show(ex.Message, "Exception"); LogExceptionToFile(ex.Message);} Answer: C Question: 66 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You create a login Web form by using the following code fragment. <asp:scriptmanager ID="ScriptManager1" runat="server" /> <asp:textbox runat="server" ID="txtUser" Width="200px" /> <asp:textbox runat="server" ID="txtPassword" Width="200px" /> <asp:button runat="server" ID="btnLogin" Text="Login" OnClientClick="login(); return false;" /> When a user clicks the btnlogin Button control, the login() client-side script is called to authenticate the user. The credentials provided in the TextBox controls are used to call the clientside script. You also add the following client-script code fragment in the Web form. (Line numbers are included for reference only.) 01 <script type="text/javascript"> 02 function login() { 03 var username = $get('txtuser').value; 04 var password = $get('txtpassword').value; // authentication logic. 07 } 08 function onlogincompleted(validcredentials, usercontext, 09 methodname) 10 { 11 // notify user on authentication result. 12 } function onloginfailed(error, usercontext, methodname) 15 { 16 // notify user on authentication exception. 17 } 18 </script> The ASP.NET application is configured to use Forms Authentication. The ASP.NET AJAX authentication service is activated in the Web.config file. You need to ensure that the following workflow is maintained: Page 36 of 62

37 On successful authentication, the onlogincompleted client-script function is called to notify the user. On failure of authentication, the onloginfailed client-script function is called to display an error message. Which code segment should you insert at line 06? A. var auth = Sys.Services.AuthenticationService; auth.login(username, password, false, null, null,onlogincompleted, onloginfailed, null); B. var auth = Sys.Services.AuthenticationService; auth.set_defaultfailedcallback(onloginfailed);var validcredentials = auth.login(username, password, false, null, null, null, null, null);if (validcredentials)onlogincompleted(true, null, null);elseonlogincompleted(false, null, null); C. var auth = Sys.Services.AuthenticationService;auth.set_defaultLoginCompletedCallback(onLoginComplet e );try { auth.login(username, password, false, null, null, null, null, null); }catch (err) { onloginfailed(err, null, null);} D. var auth = Sys.Services.AuthenticationService;try { var validcredentials = auth.login(username, password, false, null, null, null, null, null); if (validcredentials) onlogincompleted(true, null, null); else onlogincompleted(false, null, null);}catch (err) { onloginfailed(err, null, null);} Question: 67 You are creating a Windows Forms application by using the.net Framework 3.5. You plan to modify a list of orders within a DataGridView control in the application. You need to ensure that a value is required in the first column of the grid control. Which code segment should you use? A. private void datagridorders_cellvalidated( object sender, DataGridViewCellEventArgs e) { if (e.columnindex == 0) { var cellvalue = datagridorders[ e.columnindex, e.rowindex].value; if (cellvalue == null string.isnullorempty(cellvalue.tostring())) { datagridorders.endedit(); } } } B. private void datagridorders_validated( object sender, EventArgs e) { if (datagridorders.currentcell.columnindex == 0) { var cellvalue = datagridorders.text; if (cellvalue == null string.isnullorempty(cellvalue.tostring())) { datagridorders.endedit(); } }} C. private void datagridorders_validating( object sender, CancelEventArgs e) { if (datagridorders.currentcell.columnindex == 0) { var cellvalue = datagridorders.text; if (cellvalue == null string.isnullorempty(cellvalue.tostring())) { e.cancel = true; } }} D. private void datagridorders_cellvalidating( object sender, DataGridViewCellValidatingEventArgs e) { if (e.columnindex == 0) { if (e.formattedvalue == null string.isnullorempty(e.formattedvalue.tostring())) { e.cancel = true; } }} Answer: D Question: 68 You are creating a Windows Forms application by using the.net Framework 3.5. You write the following code segment to update multiple databases on a SQL Server 2008 database. (Line numbers are included for reference only.) 01 string connectionstringcustomer Source=CUSTOMER;Integrated Security= SSPI;"; 02 string connectionstringorders Source=ORDER ;Integrated Security= SSPI;"; 03 SqlCommand cmdcustomer = new SqlCommand(); 04 SqlCommand cmdorders = new SqlCommand(); 05 SqlConnection cnncustomer = Page 37 of 62

38 new SqlConnection(connectionStringCustomer); 06 SqlConnection cnnorders = new SqlConnection(connectionStringOrders); 07 You need to ensure that all database updates are included in a single distributed transaction. Which code fragment should you add on Line 07? A. cnncustomer.open();cnnorders.open();...cmdorders.executenonquery();...cmdcustomer.executenonquery();cnnorders.close();cnncustomer.close(); B. TransactionScope scope = new TransactionScope();cnnCustomer.Open();cnnOrders.Open();...cmdOrders.ExecuteNonQuery();...cmdCustomer.ExecuteNonQuery();cnnOrders.Close();cnnCustomer.Close();scope.Complete (); C. TransactionScope customerscope = new TransactionScope() { using (SqlConnection cnncustomer = new SqlConnection (connectionstringcustomer)) { } customerscope.complete(); }using (TransactionScope ordersscope = new TransactionScope()) { using (SqlConnection cnnorders = new SqlConnection(connectionStringOrders)) { } ordersscope.complete(); } D. try { cmdorders.transaction = cnnorders.begintransaction();... cmdorders.executenonquery();... cmdcustomer.transaction = cnncustomer.begintransaction();... cmdcustomer.executenonquery(); cmdcustomer.transaction.commit(); cmdorders.transaction.commit();}catch { cmdcustomer.transaction.rollback(); cmdorders.transaction.rollback();} Answer: B Question: 69 You are creating a Windows Forms application for inventory management by using the.net Framework 3.5. The application provides a form that allows users to maintain stock balances. The form has the following features: A dataset named dsstockbalance to store the stock information A business component named scinventory The scinventory component provides a method named Save. You need to ensure that only the modified stock balances of dsstockbalance are passed to the scinventory.save method. Which code segment should you use? A. if(dsstockbalance.haschanges()) dsstockbalance.acceptchanges();dsupdates = dsstockbalance.getchanges();scinventory.save(dsstockbalance); B. if(dsstockbalance.haschanges()) dsupdates = dsstockbalance.getchanges();dsstockbalance.acceptchanges();scinventory.save(dsstockb al nce); C. if(dsstockbalance.haschanges()){ dsstockbalance.acceptchanges(); dsupdates = dsstockbalance.getchanges(); scinventory.save(dsupdates);} D. if(dsstockbalance.haschanges()){ dsupdates = dsstockbalance.getchanges(); dsstockbalance.acceptchanges(); scinventory.save(dsupdates);} Answer: D Question: 70 You create Windows Forms applications by using the.net Framework 3.5. You create a new application for Windows Vista client computers. The application requires elevated access to read Page 38 of 62

39 files from the local file system. You need to ensure that the application requires elevated permissions on execution. What should you do? A. Create a new certificate trust list (CTL). Use the CertMgr.exe tool to install the CTL on the local computer. B. Create a new certificate trust list (CTL). Install the CTL on the server that has the ClickOnce application published. C. Create a manifest that includes the <requestedexecutionlevel level="asinvoker"/> tag. Add the manifest to the executable file of the application. D. Create a manifest that includes the <requestedexecutionlevel level="requireadministrator"/> tag. Add the manifest to the executable file of the application. Answer: D Question: 71 You create Windows Forms applications by using the.net Framework 3.5. You plan to deploy a new application. You need to ensure that on deployment, the application meets the following requirements: It is executed on the client computer. It is removed from the client computer after the application is closed. It is not displayed in the Add/Remove programs panel on the client computer. What should you do? A. Deploy the application to a central network server.access the application by using the Remote Desktop Connection tool. B. Deploy the application by using the ClickOnce technology.use the Mage.exe tool to set the Online Only option in the deployment manifest. C. Deploy the application by using the ClickOnce technology.set the Install attribute of the deployment tag to true in the deployment manifest. D. Deploy the application to a CD-ROM by using the ClickOnce technology.execute the application from the CD-ROM. Answer: B Question: 72 You create Windows Forms applications by using the.net Framework 3.5. You plan to use the Windows Installer to deploy a new application. The application must meet the following requirements: Support deployment to 32-bit and 64-bit operating systems. Use the 64-bit Program Files folder when deployed to 64-bit platforms. You need to ensure that the application is deployed appropriately. What should you do? A. Create a single MSI file.add a launch condition that is set to Version NT64. B. Create a single MSI file.add a launch condition that is set to NOT Version NT64. C. Create an MSI file that is targeted to 64-bit platforms.create an MSI file that is targeted to 32 bit platforms. D. Create a single MSI file.create a merge module that contains the 32-bit and 64-bit code. Answer: C Question: 73 Page 39 of 62

40 You are creating a Windows Forms application by using the.net Framework 3.5. You have implemented the PrintPage event to send the page output to the printer. The users must select the printer and the page range before printing. You need to ensure that users can print the content of the form by clicking the button control. Which code segment should you use? A. PageSetupDialog pagesetupdialog1 = new PageSetupDialog();pageSetupDialog1.Document = printdocument1;dialogresult result = pagesetupdialog1.showdialog();if(result == DialogResult.OK){ printdocument1.print();} B. PageSetupDialog pagesetupdialog1 = new PageSetupDialog();pageSetupDialog1.Document = printdocument1;dialogresult result = pagesetupdialog1.showdialog();if (result == DialogResult.Yes){ printdocument1.print();} C. PrintDialog printdialog1 = new PrintDialog();printDialog1.AllowSomePages = true;printdialog1.document = printdocument1;dialogresult result = printdialog1.showdialog();if (result == DialogResult.OK){ printdocument1.print();} D. PrintDialog printdialog1 = new PrintDialog();printDialog1.AllowSomePages = true;printdialog1.document = printdocument1;dialogresult result = printdialog1.showdialog();if (result == DialogResult.Yes){ printdocument1.print();} Answer: C Question: 74 You are creating a Windows Forms application that has the print functionality by using the.net Framework 3.5. You implement the PrintPage page event for the form. You associate an instance of the PrintDocument control along with an instance of the PrintPreviewDialog control named prevdialog1. You want to set the default size of the PrintPreviewDialog class to full screen. You need to provide a print preview for the user by adding a code segment to the Click event of the button on the form. Which code segment should you use? A. prevdialog1.width = Screen.PrimaryScreen.Bounds.Width;prevDialog1.Height = Screen.PrimaryScreen.Bounds.Height;prevDialog1.ShowDialog(); B. prevdialog1.width = 1024;prevDialog1.Height = 768;prevDialog1.ShowDialog(); C. prevdialog1.width = prevdialog1.printpreviewcontrol.width;prevdialog1.height = prevdialog1.printpreviewcontrol.height;prevdialog1.showdialog(); D. prevdialog1.width = prevdialog1.printpreviewcontrol.width;prevdialog1.height = prevdialog1.printpreviewcontrol.height;prevdialog1.update(); Question: 75 You are creating a Windows Forms application by using the.net Framework 3.5. You create a new form in your application. You add a PrintDocument control named pntdoc to the form. To support the print functionality, you write the following code segment in the application. (Line numbers are included for reference only.) 01 pntdoc.beginprint += new PrintEventHandler(PrintDoc_BeginPrint); bool canprint = CheckPrintAccessControl(); 04 if (!canprint) { } 07 Page 40 of 62

41 You need to ensure that the following requirements are met: When the user has no print access, font and file stream initializations are not executed and the print operation is cancelled. Print operations are logged whether or not the user has print access. What should you do? A. Add the following code segment at line 05. pntdoc.beginprint -= new PrintEventHandler(PrintDoc_BeginPrint);pntDoc.BeginPrint += new PrintEventHandler((obj, args) => args.cancel = true); Add the following code segment at line 07. pntdoc.beginprint += new PrintEventHandler((obj1, args1) => LogPrintOperation()); B. Add the following code segment at line 05. pntdoc.beginprint += new PrintEventHandler(delegate(object obj, PrintEventArgs args){}); Add the following code segment at line 07. pntdoc.beginprint -= new PrintEventHandler(PrintDoc_BeginPrint);pntDoc.BeginPrint += new PrintEventHandler((obj1, args1) => LogPrintOperation()); C. Add the following code segment at line 05. pntdoc.beginprint -= new PrintEventHandler(PrintDoc_BeginPrint);pntDoc.BeginPrint -= new PrintEventHandler(delegate(object obj, PrintEventArgs args){}); Add the following code segment at line 07. pntdoc.beginprint -= new PrintEventHandler((obj1, args1) => LogPrintOperation()); D. Add the following code segment at line 05. pntdoc.beginprint -= new PrintEventHandler((obj, args) => args.cancel = true); Add the following code segment at line 07. pntdoc.beginprint += new PrintEventHandler(PrintDoc_BeginPrint);pntDoc.BeginPrint -= new PrintEventHandler((obj1, args1) => LogPrintOperation()); Question: 76 You are creating a Windows Forms application by using the.net Framework 3.5. You create a new form in the application. You add a ContextMenuStrip control named ctxmenu to the form. You have a user-defined class named CustomControl. You write the following code segment in the application. (Line numbers are included for reference only.) 01 CustomControl mycontrol = new CustomControl(); 02 You need to ensure that an instance of CustomControl is displayed on the form as a top-level item of the ctxmenu control. Which code segment should you add at line 02? A. ToolStripControlHost host = new ToolStripControlHost(myControl);ctxMenu.Items.Add(host); B. ToolStripPanel panel = new ToolStripPanel();panel.Controls.Add(myControl);ctxMenu.Controls.Add(panel); C. ToolStripContentPanel panel = new ToolStripContentPanel();panel.Controls.Add(myControl);ctxMenu.Controls.Add(panel); D. ToolStripMenuItem menuitem = new ToolStripMenuItem();ToolStripControlHost host = new ToolStripControlHost(myControl);menuItem.DropDownItems.Add(host);ctxMenu.Items.Add(me nu Item); Question: 77 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. The application contains the following code segment. public class CapabilityEvaluator { Page 41 of 62

42 public static bool ChkScreenSize( System.Web.Mobile.MobileCapabilities cap, String arg) { int screensize = cap.screencharacterswidth * cap.screencharactersheight; return screensize < int.parse(arg); } } You add the following device filter element to the Web.config file. <filter name="fltrscreensize" type="mywebapp.capabilityevaluator,mywebapp" method="chkscreensize" /> You need to write a code segment to verify whether the size of the device display is less than 80 characters. Which code segment should you use? A. MobileCapabilities currentmobile;currentmobile = Request.Browser as MobileCapabilities;if(currentMobile.HasCapability("FltrScreenSize","80")){ } B. MobileCapabilities currentmobile;currentmobile = Request.Browser as MobileCapabilities;if(currentMobile.HasCapability( "FltrScreenSize","").ToString()=="80"){ } C. MobileCapabilities currentmobile;currentmobile = Request.Browser as MobileCapabilities;if (currentmobile.hascapability( "CapabilityEvaluator.ChkScreenSize", "80")){ } D. MobileCapabilities currentmobile;currentmobile = Request.Browser as MobileCapabilities;if (currentmobile.hascapability( "CapabilityEvaluator.ChkScreenSize", "").ToString()=="80"){ } Question: 78 You are creating a Windows Forms application by using the.net Framework 3.5. You create a new form in your application. You add 100 controls at run time in the Load event handler of the form. Users report that the form takes a long time to get displayed. You need to improve the performance of the form. What should you do? A. Call the InitLayout method of the form before adding all the controls.call the PerformLayout method of the form after adding all the controls. B. Call the InitLayout method of the form before adding all the controls.call the ResumeLayout method of the form after adding all the controls. C. Call the SuspendLayout method of the form before adding all the controls.call the PerformLayout method of the form after adding all the controls. D. Call the SuspendLayout method of the form before adding all the controls.call the ResumeLayout method of the form after adding all the controls. Answer: D Question: 79 You are creating a Windows Forms application that has the print functionality by using the.net Framework 3.5. You implement the PrintPage page event for the form. You associate an instance of the PrintDocument control along with an instance of the PrintPreviewDialog control named prevdialog1. You want to set the default size of the PrintPreviewDialog class to full screen. You need to provide a print preview for the user by adding a code segment to the Click event of the button on the form. Which code segment should you use? Page 42 of 62

43 A. prevdialog1.width = Screen.PrimaryScreen.Bounds.Width;prevDialog1.Height = Screen.PrimaryScreen.Bounds.Height;prevDialog1.ShowDialog(); B. prevdialog1.width = 1024;prevDialog1.Height = 768;prevDialog1.ShowDialog(); C. prevdialog1.width = prevdialog1.printpreviewcontrol.width;prevdialog1.height = prevdialog1.printpreviewcontrol.height;prevdialog1.showdialog(); D. prevdialog1.width = prevdialog1.printpreviewcontrol.width;prevdialog1.height = prevdialog1.printpreviewcontrol.height;prevdialog1.update(); Question: 80 You are creating a Windows Forms application by using the.net Framework 3.5. You have implemented the PrintPage event to send the page output to the printer. The users must select the printer and the page range before printing. You need to ensure that users can print the content of the form by clicking the button control. Which code segment should you use? A. PageSetupDialog pagesetupdialog1 = new PageSetupDialog();pageSetupDialog1.Document = printdocument1;dialogresult result = pagesetupdialog1.showdialog();if(result == DialogResult.OK){ printdocument1.print();} B. PageSetupDialog pagesetupdialog1 = new PageSetupDialog();pageSetupDialog1.Document = printdocument1;dialogresult result = pagesetupdialog1.showdialog();if (result == DialogResult.Yes){ printdocument1.print();} C. PrintDialog printdialog1 = new PrintDialog();printDialog1.AllowSomePages = true;printdialog1.document = printdocument1;dialogresult result = printdialog1.showdialog();if (result == DialogResult.OK){ printdocument1.print();} D. PrintDialog printdialog1 = new PrintDialog();printDialog1.AllowSomePages = true;printdialog1.document = printdocument1;dialogresult result = printdialog1.showdialog();if (result == DialogResult.Yes){ printdocument1.print();} Answer: C Question: 81 You are creating a Windows Forms application for a courier company by using the.net Framework 3.5. You create a form that allows customers to track the progress of their shipments. The form contains the following elements: A text box named txttn that allows users to enter a tracking number An ErrorProvider control named ErrorProvider1 that informs users of an invalid tracking number A function named ValidTrackingNumber that validates tracking numbers You need to ensure that the txttn text box is validated. Which code segment should you use? A. private void txttn_validating(object sender, CancelEventArgs e){ if (!ValidTrackingNumber(txtTN.Text)) { errorprovider1.seterror(txttn, "Invalid Tracking Number"); e.cancel = true; } else errorprovider1.seterror(txttn, "");} B. private void txttn_validating(object sender, CancelEventArgs e){ if (!ValidTrackingNumber(txtTN.Text)) errorprovider1.seterror(txttn, "Invalid Tracking Number"); else { errorprovider1.seterror(txttn, ""); e.cancel = true; }} C. private void txttn_validated(object sender, EventArgs e){ if (!ValidTrackingNumber(txtTN.Text)) errorprovider1.seterror(txttn, "Invalid Tracking Number"); else { errorprovider1.seterror(txttn, ""); txttn.focus(); }} D. private void txttn_validated(object sender, EventArgs e){ if (!ValidTrackingNumber(txtTN.Text)) { errorprovider1.seterror(txttn, "Invalid Tracking Number"); txttn.focus(); } else errorprovider1.seterror(txttn, "");} Page 43 of 62

44 Question: 82 You are creating a Windows Forms application by using the.net Framework 3.5. You plan to deploy the application in multiple countries and languages. You need to ensure that the application meets the globalization requirements. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.) A. Handle server names and URLs as ASCII data. B. Use Unicode strings throughout the application. C. Use the NumberFormatInfo class for numeric formatting. D. Handle strings as a series of individual characters instead of entire strings. E. Avoid usage of the SortKey class and the CompareInfo class for sorting purposes. Answer: B, C Question: 83 You are creating a multiple-document interface (MDI) application by using the.net Framework 3.5. You configure the frmparent form to be an MDI parent. You write the following code segment. (Line numbers are included for reference only.) 01 Form frmchild = new Form(); 02 Form frmparent = this; 03 You need to associate and display the frmchild form and the frmparent form. Which code segment should you add at line 03? A. frmchild.mdiparent = frmparent;frmchild.showdialog(); B. frmchild.mdiparent = frmparent;frmchild.show(); C. frmchild.ismdicontainer = true;frmchild.showdialog(); D. frmchild.ismdicontainer = true; frmchild.show(); Answer: B Question: 84 You are creating a Windows application by using the.net Framework 3.5. You create an instance of the BackgroundWorker component named backgroundworker1 to asynchronously process time-consuming reports in the application. You write the following code segment in the application. (Line numbers are included for reference only.) 01 private void backgroundworker1_runworkercompleted( object sender, RunWorkerCompletedEventArgs e) 02 { } You need to write a code segment that reports to the application when the background process detects any of the following actions: An exception is thrown. The process is cancelled. Page 44 of 62

45 The process is successfully completed. Which code segment should you insert at line 03? A. if (e.cancelled == null) MessageBox.Show("Report Cancelled"); else MessageBox.Show("Report Completed"); B. if (e.result == "Cancelled" e.result == "Error") MessageBox.Show("Report Cancelled");else MessageBox.Show("Report Completed"); C. if (backgroundworker1.cancellationpending) MessageBox.Show("Report Cancelled"); Else MessageBox.Show("Report Completed"); D. if (e.error!= null) MessageBox.Show(e.Error.Message);else if (e.cancelled) MessageBox.Show("Report Cancelled");else MessageBox.Show("Report Completed"); Answer: D Question: 85 You are creating a Windows application by using the.net Framework 3.5. You plan to create a form that might result in a time-consuming operation. You use the QueueUserWorkItem method and a Label control named lblresult. You need to update the users by using the lblresult control when the process has completed the operation. Which code segment should you use? A. private void DoWork(object myparameter){ // thread work this.invoke(new MethodInvoker(ReportProgress));} private void ReportProgress(){ this.lblresult.text = "Finished Thread";} B. private void DoWork(object myparameter){ // thread work this.lblresult.text = "Finished Thread";} C. private void DoWork(object myparameter){ // thread work System.Threading.Monitor.Enter(this); this.lblresult.text = "Finished Thread"; System.Threading.Monitor.Exit(this);} D. private void DoWork(object myparameter){ // thread work System.Threading.Monitor.TryEnter(this); ReportProgress();}private void ReportProgress(){ this.lblresult.text = "Finished Thread";} Question: 86 You are creating a Windows Forms application by using the.net Framework 3.5. The application requires a thread that accepts a single integer parameter. You write the following code segment. (Line numbers are included for reference only.) 01 Thread mythread = new Thread(new ParameterizedThreadStart(DoWork)); 02 mythread.start(100); You need to declare the method signature of the DoWork method. Which method signature should you use? A. public void DoWork() B. public void DoWork(int ncounter) C. public void DoWork(object ocounter) D. public void DoWork(Delegate ocounter) Answer: C Page 45 of 62

46 Question: 87 You create Windows Forms applications by using the.net Framework 3.5. You create a new application for Windows Vista client computers. The application requires elevated access to read files from the local file system. You need to ensure that the application requires elevated permissions on execution. What should you do? A. Create a new certificate trust list (CTL). Use the CertMgr.exe tool to install the CTL on the local computer. B. Create a new certificate trust list (CTL). Install the CTL on the server that has the ClickOnce application published. C. Create a manifest that includes the <requestedexecutionlevel level="asinvoker"/> tag. Add the manifest to the executable file of the application. D. Create a manifest that includes the <requestedexecutionlevel level="requireadministrator"/> tag. Add the manifest to the executable file of the application. Answer: D Question: 88 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You create a Web form and add the following code fragment. <asp:repeater ID="rptData" runat="server" DataSourceID="SqlDataSource1" ItemDataBound="rptData_ItemDataBound"> <ItemTemplate> <asp:label ID="lblQuantity" runat="server" Text='<%# Eval("QuantityOnHand") %>' /> </ItemTemplate> </asp:repeater> The SqlDataSource1 DataSource control retrieves the Quantity column values from a table named Products. You write the following code segment to create the rptdata_itemdatabound event handler. (Line numbers are included for reference only.) 01 protected void rptdata_itemdatabound(object sender, 02 RepeaterItemEventArgs e) 03 { if(lbl!= null) 06 if(int.parse(lbl.text) < 10) 07 lbl.forecolor = Color.Red; 08 } You need to retrieve a reference to the lblquantity Label control into a variable named lbl. Which code segment should you insert at line 04? A. Label lbl = Page.FindControl("lblQuantity") as Label; B. Label lbl = e.item.findcontrol("lblquantity") as Label; C. Label lbl = rptdata.findcontrol("lblquantity") as Label; D. Label lbl = e.item.parent.findcontrol("lblquantity") as Label; Answer: B Question: 89 Page 46 of 62

47 You create Windows Forms applications by using the.net Framework 3.5. You plan to use the Windows Installer to deploy a new application. The application must meet the following requirements: Support deployment to 32-bit and 64-bit operating systems. Use the 64-bit Program Files folder when deployed to 64-bit platforms. You need to ensure that the application is deployed appropriately. What should you do? A. Create a single MSI file.add a launch condition that is set to Version NT64. B. Create a single MSI file.add a launch condition that is set to NOT Version NT64. C. Create an MSI file that is targeted to 64-bit platforms.create an MSI file that is targeted to 32 bit platforms. D. Create a single MSI file.create a merge module that contains the 32-bit and 64-bit code. Answer: C Question: 90 You create Windows Forms applications by using the.net Framework 3.5. You plan to deploy a new application. You need to ensure that on deployment, the application meets the following requirements: It is executed on the client computer. It is removed from the client computer after the application is closed. It is not displayed in the Add/Remove programs panel on the client computer. What should you do? A. Deploy the application to a central network server.access the application by using the Remote Desktop Connection tool. B. Deploy the application by using the ClickOnce technology.use the Mage.exe tool to set the Online Only option in the deployment manifest. C. Deploy the application by using the ClickOnce technology.set the Install attribute of the deployment tag to true in the deployment manifest. D. Deploy the application to a CD-ROM by using the ClickOnce technology.execute the application from the CD-ROM. Answer: B Question: 91 You are creating a Windows Forms application by using the.net Framework 3.5. You create a new form in your application. You add a PrintDocument control named pntdoc to the form. To support the print functionality, you write the following code segment in the application. (Line numbers are included for reference only.) 01 pntdoc.beginprint += new PrintEventHandler(PrintDoc_BeginPrint); bool canprint = CheckPrintAccessControl(); 04 if (!canprint) { } 07 You need to ensure that the following requirements are met: Page 47 of 62

48 When the user has no print access, font and file stream initializations are not executed and the print operation is cancelled. Print operations are logged whether or not the user has print access. What should you do? A. Add the following code segment at line 05. pntdoc.beginprint -= new PrintEventHandler(PrintDoc_BeginPrint);pntDoc.BeginPrint += new PrintEventHandler((obj, args) => args.cancel = true); Add the following code segment at line 07. pntdoc.beginprint += new PrintEventHandler((obj1, args1) => LogPrintOperation()); B. Add the following code segment at line 05. pntdoc.beginprint += new PrintEventHandler(delegate(object obj, PrintEventArgs args){}); Add the following code segment at line 07. pntdoc.beginprint -= new PrintEventHandler(PrintDoc_BeginPrint);pntDoc.BeginPrint += new PrintEventHandler((obj1, args1) => LogPrintOperation()); C. Add the following code segment at line 05. pntdoc.beginprint -= new PrintEventHandler(PrintDoc_BeginPrint);pntDoc.BeginPrint -= new PrintEventHandler(delegate(object obj, PrintEventArgs args){}); Add the following code segment at line 07. pntdoc.beginprint -= new PrintEventHandler((obj1, args1) => LogPrintOperation()); D. Add the following code segment at line 05. pntdoc.beginprint -= new PrintEventHandler((obj, args) => args.cancel = true); Add the following code segment at line 07. pntdoc.beginprint += new PrintEventHandler(PrintDoc_BeginPrint);pntDoc.BeginPrint -= new PrintEventHandler((obj1, args1) => LogPrintOperation()); Question: 92 You are creating a Windows Forms application by using the.net Framework 3.5. You create a new form in your application. You add 100 controls at run time in the Load event handler of the form. Users report that the form takes a long time to get displayed. You need to improve the performance of the form. What should you do? A. Call the InitLayout method of the form before adding all the controls.call the PerformLayout method of the form after adding all the controls. B. Call the InitLayout method of the form before adding all the controls.call the ResumeLayout method of the form after adding all the controls. C. Call the SuspendLayout method of the form before adding all the controls.call the PerformLayout method of the form after adding all the controls. D. Call the SuspendLayout method of the form before adding all the controls.call the ResumeLayout method of the form after adding all the controls. Answer: D Question: 93 You are creating a Windows Forms application by using the.net Framework 3.5. You create a new form in the application. You add a ContextMenuStrip control named ctxmenu to the form. You have a user-defined class named CustomControl. You write the following code segment in the application. (Line numbers are included for reference only.) 01 CustomControl mycontrol = new CustomControl(); 02 You need to ensure that an instance of CustomControl is displayed on the form as a top-level item of the ctxmenu control. Which code segment should you add at line 02? Page 48 of 62

49 A. ToolStripControlHost host = new ToolStripControlHost(myControl);ctxMenu.Items.Add(host); B. ToolStripPanel panel = new ToolStripPanel();panel.Controls.Add(myControl);ctxMenu.Controls.Add(panel); C. ToolStripContentPanel panel = new ToolStripContentPanel();panel.Controls.Add(myControl);ctxMenu.Controls.Add(panel); D. ToolStripMenuItem menuitem = new ToolStripMenuItem();ToolStripControlHost host = new ToolStripControlHost(myControl);menuItem.DropDownItems.Add(host);ctxMenu.Items.Add(me nuitem); Question: 94 You are creating a Windows application for a financial services provider by using the.net Framework 3.5. You write the following code segment in the form. (Line numbers are included for reference only.) 01 string querystring = 02 "SELECT CategoryID, CategoryName FROM Categories"; 03 The connection string for the financial services database is stored in the variable named connstring. You need to ensure that the form populates a DataGridView control named gridcat. Which code segment should you add at line 03? A. OleDbDataAdapter adapter = new OleDbDataAdapter(queryString, connstring);dataset categories = new DataSet();adapter.Fill(categories, "Categories");gridCAT.DataSource = categories.tables[0]; B. OleDbConnection conn = new OleDbConnection(connString);conn.Open();OleDbCommand cmd = new OleDbCommand(queryString, conn);oledbdatareader reader = cmd.executereader();gridcat.datasource = reader; C. OleDbDataAdapter adapter = new OleDbDataAdapter(queryString, connstring);dataset categories = new DataSet();adapter.Fill(categories, "Categories");gridCAT.DataSource = categories; D. OleDbConnection conn = new OleDbConnection(connString);conn.Open();OleDbCommand cmd = new OleDbCommand(queryString, conn);oledbdatareader reader = cmd.executereader();gridcat.datasource = reader.read(); Question: 95 You are creating a Windows Forms application for inventory management by using the.net Framework 3.5. The application provides a form that allows users to maintain stock balances. The form has the following features: A dataset named dsstockbalance to store the stock information A business component named scinventory The scinventory component provides a method named Save. You need to ensure that only the modified stock balances of dsstockbalance are passed to the scinventory.save method. Which code segment should you use? A. if(dsstockbalance.haschanges()) dsstockbalance.acceptchanges();dsupdates = dsstockbalance.getchanges();scinventory.save(dsstockbalance); Page 49 of 62

50 B. if(dsstockbalance.haschanges()) dsupdates = dsstockbalance.getchanges();dsstockbalance.acceptchanges();scinventory.save(dsstockb al nce); C. if(dsstockbalance.haschanges()){ dsstockbalance.acceptchanges(); dsupdates dsstockbalance.getchanges(); scinventory.save(dsupdates);} D. if(dsstockbalance.haschanges()){ dsupdates = dsstockbalance.getchanges(); dsstockbalance.acceptchanges(); scinventory.save(dsupdates);} Answer: D Question: 96 You are creating a Windows Forms application by using the.net Framework 3.5. You write the following code segment to bind a list of categories to a drop-down list. (Line numbers are included for reference only.) 01 OleDbConnection cnnnorthwind = new OleDbConnection(connectionString); 02 OleDbCommand cmdcategory = new OleDbCommand( "SELECT CategoryID, CategoryName FROM Categories ORDER BY CategoryName", cnnnorthwind); 03 OleDbDataAdapter dacategory = new OleDbDataAdapter(cmdCategory); 04 DataSet dscategory = new DataSet(); 05 dacategory.fill(dscategory); 06 You need to ensure that the drop-down list meets the following requirements: Displays all category names. Uses the category ID as the selected item value. Which code segment should you add at line 06? A. ddlcategory.datasource = dscategory;ddlcategory.displaymember = "CategoryName";ddlCategory.ValueMember = "CategoryID"; B. ddlcategory.datasource = dscategory.tables[0];ddlcategory.displaymember = "CategoryName";ddlCategory.ValueMember = "CategoryID"; C. ddlcategory.databindings.add("displaymember", dscategory, "CategoryName");ddlCategory.DataBindings.Add("ValueMember", dscategory, "CategoryID"); D. ddlcategory.databindings.add("displaymember", dscategory.tables[0], "CategoryName");ddlCategory.DataBindings.Add("ValueMember", dscategory.tables[0], "CategoryID"); Answer: B Question: 97 You are creating a Windows Forms application by using the.net Framework 3.5. You plan to modify a list of orders within a DataGridView control in the application. You need to ensure that a value is required in the first column of the grid control. Which code segment should you use? A. private void datagridorders_cellvalidated( object sender, DataGridViewCellEventArgs e) { if (e.columnindex == 0) { var cellvalue = datagridorders[ e.columnindex, e.rowindex].value; if (cellvalue == null string.isnullorempty(cellvalue.tostring())) { datagridorders.endedit(); } } } Page 50 of 62

51 B. private void datagridorders_validated( object sender, EventArgs e) { if (datagridorders.currentcell.columnindex == 0) { var cellvalue = datagridorders.text; if (cellvalue == null string.isnullorempty(cellvalue.tostring())) { datagridorders.endedit(); } }} C. private void datagridorders_validating( object sender, CancelEventArgs e) { if (datagridorders.currentcell.columnindex == 0) { var cellvalue = datagridorders.text; if (cellvalue == null string.isnullorempty(cellvalue.tostring())) { e.cancel = true; } }} D. private void datagridorders_cellvalidating( object sender, DataGridViewCellValidatingEventArgs e) { if (e.columnindex == 0) { if (e.formattedvalue == null string.isnullorempty(e.formattedvalue.tostring())) { e.cancel = true; } }} Answer: D Question: 98 You are creating a Windows Forms application by using the.net Framework 3.5. You write a code segment to connect to a Microsoft Access database and populate a DataSet. You need to ensure that the application meets the following requirements: It displays all database exceptions. It logs all other exceptions by using the LogExceptionToFile. Which code segment should you use? A. try{ categorydataadapter.fill(dscategory);}catch (SqlException ex){ MessageBox.Show(ex.Message, "Exception"); LogExceptionToFile(ex.Message);} B. try{ categorydataadapter.fill(dscategory);}catch (SqlException ex){ MessageBox.Show(ex.Message, "Exception");}catch (Exception ex){ LogExceptionToFile(ex.Message);} C. try{ categorydataadapter.fill(dscategory);}catch (OleDbException ex){ MessageBox.Show(ex.Message, "Exception");}catch (Exception ex){ LogExceptionToFile(ex.Message);} D. try{ categorydataadapter.fill(dscategory);}catch (OleDbException ex){ MessageBox.Show(ex.Message, "Exception"); LogExceptionToFile(ex.Message);} Answer: C Question: 99 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You add an XmlDataSource control named XmlDataSource1 to the Web page. XmlDataSource1 is bound to an XML document with the following structure. <?xml version="1.0" encoding="utf-8"?> <clients> <client ID="1" Name="John Evans" /> <client ID="2" Name="Mike Miller"/>... </clients> You also write the following code segment in the code-behind file of the Web page. protected void BulletedList1_Click( object sender, BulletedListEventArgs e) { //... } You need to add a BulletedList control named BulletedList1 to the Web page that is bound to XmlDataSource1. Which code fragment should you use? Page 51 of 62

52 A. <asp:bulletedlist ID="BulletedList1" runat="server" DisplayMode="LinkButton" DataSource="XmlDataSource1" DataTextField="Name" DataValueField="ID" onclick="bulletedlist1_click"></asp:bulletedlist> B. <asp:bulletedlist ID="BulletedList1" runat="server" DisplayMode="HyperLink" DataSourceID="XmlDataSource1" DataTextField="Name" DataMember="ID" onclick="bulletedlist1_click"></asp:bulletedlist> C. <asp:bulletedlist ID="BulletedList1" runat="server" DisplayMode="LinkButton" DataSourceID="XmlDataSource1" DataTextField="Name" DataValueField="ID" onclick="bulletedlist1_click"></asp:bulletedlist> D. <asp:bulletedlist ID="BulletedList1" runat="server" DisplayMode="HyperLink" DataSourceID="XmlDataSource1" DataTextField="ID" DataValueField="Name" onclick="bulletedlist1_click"></asp:bulletedlist> Answer: C Question: 100 You are creating a Windows Forms application by using the.net Framework 3.5. You write the following code segment to update multiple databases on a SQL Server 2008 database. (Line numbers are included for reference only.) 01 string connectionstringcustomer Source=CUSTOMER;Integrated Security= SSPI;"; 02 string connectionstringorders Source=ORDER ;Integrated Security= SSPI;"; 03 SqlCommand cmdcustomer = new SqlCommand(); 04 SqlCommand cmdorders = new SqlCommand(); 05 SqlConnection cnncustomer = new SqlConnection(connectionStringCustomer); 06 SqlConnection cnnorders = new SqlConnection(connectionStringOrders); 07 You need to ensure that all database updates are included in a single distributed transaction. Which code fragment should you add on Line 07? A. cnncustomer.open();cnnorders.open();...cmdorders.executenonquery();...cmdcustomer.executenonquery();cnnorders.close();cnncustomer.close(); B. TransactionScope scope = new TransactionScope();cnnCustomer.Open();cnnOrders.Open();...cmdOrders.ExecuteNonQuery();...cmdCustomer.ExecuteNonQuery();cnnOrders.Close();cnnCustomer.Close();scope.Complete (); C. TransactionScope customerscope = new TransactionScope() { using (SqlConnection cnncustomer = new SqlConnection (connectionstringcustomer)) { } customerscope.complete(); }using (TransactionScope ordersscope = new TransactionScope()) { using (SqlConnection cnnorders = new SqlConnection(connectionStringOrders)) { } ordersscope.complete(); } D. try { cmdorders.transaction = cnnorders.begintransaction();... cmdorders.executenonquery();... cmdcustomer.transaction = cnncustomer.begintransaction();... cmdcustomer.executenonquery(); cmdcustomer.transaction.commit(); cmdorders.transaction.commit();}catch { cmdcustomer.transaction.rollback(); cmdorders.transaction.rollback();} Answer: B Question: 101 Page 52 of 62

53 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You create a login Web form by using the following code fragment. <asp:scriptmanager ID="ScriptManager1" runat="server" /> <asp:textbox runat="server" ID="txtUser" Width="200px" /> <asp:textbox runat="server" ID="txtPassword" Width="200px" /> <asp:button runat="server" ID="btnLogin" Text="Login" OnClientClick="login(); return false;" /> When a user clicks the btnlogin Button control, the login() client-side script is called to authenticate the user. The credentials provided in the TextBox controls are used to call the clientside script. You also add the following client-script code fragment in the Web form. (Line numbers are included for reference only.) 01 <script type="text/javascript"> 02 function login() { 03 var username = $get('txtuser').value; 04 var password = $get('txtpassword').value; // authentication logic. 07 } 08 function onlogincompleted(validcredentials, usercontext, 09 methodname) 10 { 11 // notify user on authentication result. 12 } function onloginfailed(error, usercontext, methodname) 15 { 16 // notify user on authentication exception. 17 } 18 </script> The ASP.NET application is configured to use Forms Authentication. The ASP.NET AJAX authentication service is activated in the Web.config file. You need to ensure that the following workflow is maintained: On successful authentication, the onlogincompleted client-script function is called to notify the user. On failure of authentication, the onloginfailed client-script function is called to display an error message. Which code segment should you insert at line 06? A. var auth = Sys.Services.AuthenticationService; auth.login(username, password, false, null, null,onlogincompleted, onloginfailed, null); B. var auth = Sys.Services.AuthenticationService; auth.set_defaultfailedcallback(onloginfailed);var validcredentials = auth.login(username, password, false, null, null, null, null, null);if (validcredentials)onlogincompleted(true, null, null);elseonlogincompleted(false, null, null); C. var auth = Sys.Services.AuthenticationService;auth.set_defaultLoginCompletedCallback(onLoginComplet e );try { auth.login(username, password, false, null, null, null, null, null); }catch (err) { onloginfailed(err, null, null);} D. var auth = Sys.Services.AuthenticationService;try { var validcredentials = auth.login(username, password, false, null, null, null, null, null); if (validcredentials) Page 53 of 62

54 onlogincompleted(true, null, null); else onlogincompleted(false, null, null);}catch (err) { onloginfailed(err, null, null);} Question: 102 You create a Microsoft ASP.NET application by using the Microsoft.NET Framework version 3.5. You write the following code fragment. (Line numbers are included for reference only.) 01 <asp:updatepanel ID="upnData" runat="server" 02 ChildrenAsTriggers="false" UpdateMode="Conditional"> 03 <Triggers> </Triggers> 06 <ContentTemplate> 07 <!-- more content here --> 08 <asp:linkbutton ID="lbkLoad" runat="server" Text="Load" 09 onclick="lbkload_click" /> 10 <asp:button ID="btnSubmit" runat="server" Text="Submit" 11 Width="150px" onclick="btnsubmit_click" /> 12 </ContentTemplate> 13 </asp:updatepanel> 14 <asp:button ID="btnUpdate" runat="server" Text="Update" 15 Width="150px" onclick="btnupdate_click" /> You need to ensure that the requirements shown in the following table are met. What should you do? A. Set the value of the ChildrenAsTriggers property in line 02 to false. Add the following code fragment at line 04. <asp:asyncpostbacktrigger ControlID="btnUpdate" /> <asp:postbacktrigger ControlID="btnSubmit" /> B. Set the value of the ChildrenAsTriggers property in line 02 to false. Add the following code fragment at line 04. <asp:asyncpostbacktrigger ControlID="btnSubmit" /> <asp:postbacktrigger ControlID="btnUpdate" /> C. Set the value of the ChildrenAsTriggers property in line 02 to true. Add the following code fragment at line 04. <asp:asyncpostbacktrigger ControlID="btnSubmit" /> <asp:postbacktrigger ControlID="btnUpdate" /> D. Set the value of the ChildrenAsTriggers property in line 02 to true. Add the following code fragment at line 04. <asp:asyncpostbacktrigger ControlID="btnUpdate" /> <asp:postbacktrigger ControlID="btnSubmit" /> Answer: D Page 54 of 62

Real4Test. Real IT Certification Exam Study materials/braindumps

Real4Test.   Real IT Certification Exam Study materials/braindumps Real4Test http://www.real4test.com Real IT Certification Exam Study materials/braindumps Exam : 70-561-Csharp Title : TS:MS.NET Framework 3.5,ADO.NET Application Development Vendors : Microsoft Version

More information

EXAMGOOD QUESTION & ANSWER. Accurate study guides High passing rate! Exam Good provides update free of charge in one year!

EXAMGOOD QUESTION & ANSWER. Accurate study guides High passing rate! Exam Good provides update free of charge in one year! EXAMGOOD QUESTION & ANSWER Exam Good provides update free of charge in one year! Accurate study guides High passing rate! http://www.examgood.com Exam : 70-561C++ Title : TS: MS.NET Framework 3.5, ADO.NET

More information

ITcertKing. The latest IT certification exam materials. IT Certification Guaranteed, The Easy Way!

ITcertKing.   The latest IT certification exam materials. IT Certification Guaranteed, The Easy Way! ITcertKing The latest IT certification exam materials http://www.itcertking.com IT Certification Guaranteed, The Easy Way! Exam : 70-561-VB Title : TS: MS.NET Framework 3.5, ADO.NET Application Development

More information

JapanCert 専門 IT 認証試験問題集提供者

JapanCert 専門 IT 認証試験問題集提供者 JapanCert 専門 IT 認証試験問題集提供者 http://www.japancert.com 1 年で無料進級することに提供する Exam : 070-561-Cplusplus Title : TS: MS.NET Framework 3.5, ADO.NET Application Development Vendors : Microsoft Version : DEMO Get Latest

More information

PrepKing. PrepKing

PrepKing. PrepKing PrepKing Number: 70-568 Passing Score: 800 Time Limit: 120 min File Version: 9.5 http://www.gratisexam.com/ PrepKing 70-568 Exam A QUESTION 1 You are creating a Windows Forms application by using the.net

More information

ITdumpsFree. Get free valid exam dumps and pass your exam test with confidence

ITdumpsFree.  Get free valid exam dumps and pass your exam test with confidence ITdumpsFree http://www.itdumpsfree.com Get free valid exam dumps and pass your exam test with confidence Exam : 070-568 Title : Upgrade: Transition your MCPD Enterprise Application Developer Skills to

More information

Microsoft MCPD ASP.NET Developer Upgrade. Download Full Version :

Microsoft MCPD ASP.NET Developer Upgrade. Download Full Version : Microsoft 70-356 MCPD ASP.NET Developer Upgrade Download Full Version : https://killexams.com/pass4sure/exam-detail/70-356 QUESTION 112 ADO.NET to develop an application. You have completed the following

More information

70-561CSHARP. TS: MS.NET Framework 3.5, ADO.NET Application Development. Exam.

70-561CSHARP. TS: MS.NET Framework 3.5, ADO.NET Application Development. Exam. Microsoft 70-561CSHARP TS: MS.NET Framework 3.5, ADO.NET Application Development Exam TYPE: DEMO http://www.examskey.com/70-561csharp.html Examskey Microsoft70-561CSHARP exam demo product is here for you

More information

Microsoft VB. Accessing Data with Microsoft.NET Framework. Download Full Version :

Microsoft VB. Accessing Data with Microsoft.NET Framework. Download Full Version : Microsoft 70-516-VB Accessing Data with Microsoft.NET Framework Download Full Version : https://killexams.com/pass4sure/exam-detail/70-516-vb QUESTION: 134 The application populates a DataSet object by

More information

Upgrade: Transition your MCPD.NET Framework 3.5 Web Developer Skills to MCPD.NET Framework 4 Web Developer

Upgrade: Transition your MCPD.NET Framework 3.5 Web Developer Skills to MCPD.NET Framework 4 Web Developer Microsoft 70-523 Upgrade: Transition your MCPD.NET Framework 3.5 Web Developer Skills to MCPD.NET Framework 4 Web Developer Version: 31.0 QUESTION NO: 1 The application connects to a Microsoft SQL Server

More information

Microsoft Exam Pass4Sures 127q by naruto86

Microsoft Exam Pass4Sures 127q by naruto86 Microsoft 70-562 Exam Pass4Sures 127q 03-29-2012 by naruto86 Number: 070-562 Passing Score: 700 Time Limit: 120 min File Version: 1 http://www.gratisexam.com/ Microsoft 70-562 TS: Microsoft.NET Framework

More information

CSharp. Microsoft. TS-MS.NET Framework 3.5 ASP.NET Application Development

CSharp. Microsoft. TS-MS.NET Framework 3.5 ASP.NET Application Development Microsoft 70-562-CSharp TS-MS.NET Framework 3.5 ASP.NET Application Development Download Full Version : http://killexams.com/pass4sure/exam-detail/70-562-csharp QUESTION: 93 a Microsoft ASP.NET Web application.there

More information

Microsoft Exam Pass4Sures v by Omar Sabha

Microsoft Exam Pass4Sures v by Omar Sabha Microsoft 70-562 Exam Pass4Sures v14.25 02-01-2012 by Omar Sabha Number: 070-562 Passing Score: 700 Time Limit: 120 min File Version: 14.25 http://www.gratisexam.com/ Microsoft 70-562 TS: Microsoft.NET

More information

PrepKing. PrepKing

PrepKing. PrepKing PrepKing Number: 70-562 Passing Score: 700 Time Limit: 120 min File Version: 7.0 http://www.gratisexam.com/ PrepKing 70-562 Exam A QUESTION 1 You create a Microsoft ASP.NET application by using the Microsoft.NET

More information

Microsoft.Braindump v by.Guna Sekaran.88q

Microsoft.Braindump v by.Guna Sekaran.88q Microsoft.Braindump.70-562.v2010-02-12.by.Guna Sekaran.88q Number: 000-000 Passing Score: 800 Time Limit: 120 min File Version: 1.0 This dump is updated on 2010-02-18 Version: 2010-02-18 (70-562) By Guna

More information

10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010

10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010 10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010 Course Overview This instructor-led course provides knowledge and skills on developing Web applications by using Microsoft Visual

More information

Final Documentation. Created By: Ahnaf Salam Adam Castillo Sergio Montejano Elliot Galanter

Final Documentation. Created By: Ahnaf Salam Adam Castillo Sergio Montejano Elliot Galanter Final Documentation Created By: Ahnaf Salam Adam Castillo Sergio Montejano Elliot Galanter Table of Contents SITE HIERARCHY: 5 WEB.CONFIG CODE: 6 LOGIN CREDENTIALS 6 HOME PAGE: 7 Purpose: 7 Design: 7 Data

More information

Accessing Databases 7/6/2017 EC512 1

Accessing Databases 7/6/2017 EC512 1 Accessing Databases 7/6/2017 EC512 1 Types Available Visual Studio 2017 does not ship with SQL Server Express. You can download and install the latest version. You can also use an Access database by installing

More information

VB. Microsoft. MS.NET Framework 3.5 ADO.NET Application Development

VB. Microsoft. MS.NET Framework 3.5 ADO.NET Application Development Microsoft 70-561-VB MS.NET Framework 3.5 ADO.NET Application Development Download Full Version : http://killexams.com/pass4sure/exam-detail/70-561-vb B. Catch ex As System.Data.SqlClient.SqlException For

More information

Microsoft TS: Microsoft.NET Framework 3.5, ASP.NET Application Development. Practice Test. Version 10.0

Microsoft TS: Microsoft.NET Framework 3.5, ASP.NET Application Development. Practice Test. Version 10.0 Microsoft 70-562 70-562 TS: Microsoft.NET Framework 3.5, ASP.NET Application Development Practice Test Version 10.0 QUESTION NO: 1 Microsoft 70-562: Practice Exam You work as a Web Developer at CertKiller.com.

More information

10267 Introduction to Web Development with Microsoft Visual Studio 2010

10267 Introduction to Web Development with Microsoft Visual Studio 2010 10267 Introduction to Web Development with Microsoft Visual Studio 2010 Course Number: 10267A Category: Visual Studio 2010 Duration: 5 days Course Description This five-day instructor-led course provides

More information

Testpassport. Банк экзамен

Testpassport. Банк экзамен Testpassport Банк экзамен самое хорошое качество самая хорошая служба Exam : 70-516 Title : TS: Accessing Data with Microsoft.NET Framework 4 Version : Demo 1 / 11 1.You use Microsoft Visual Studio 2010

More information

Advanced Programming C# Lecture 5. dr inż. Małgorzata Janik

Advanced Programming C# Lecture 5. dr inż. Małgorzata Janik Advanced Programming C# Lecture 5 dr inż. malgorzata.janik@pw.edu.pl Today you will need: Classes #6: Project I 10 min presentation / project Presentation must include: Idea, description & specification

More information

COURSE OUTLINE: OD10267A Introduction to Web Development with Microsoft Visual Studio 2010

COURSE OUTLINE: OD10267A Introduction to Web Development with Microsoft Visual Studio 2010 Course Name OD10267A Introduction to Web Development with Microsoft Visual Studio 2010 Course Duration 2 Days Course Structure Online Course Overview This course provides knowledge and skills on developing

More information

Microsoft Official Courseware Course Introduction to Web Development with Microsoft Visual Studio

Microsoft Official Courseware Course Introduction to Web Development with Microsoft Visual Studio Course Overview: This five-day instructor-led course provides knowledge and skills on developing Web applications by using Microsoft Visual Studio 2010. Prerequisites Before attending this course, students

More information

Exception/Error Handling in ASP.Net

Exception/Error Handling in ASP.Net Exception/Error Handling in ASP.Net Introduction Guys, this is not first time when something is written for exceptions and error handling in the web. There are enormous articles written earlier for this

More information

DOT NET Syllabus (6 Months)

DOT NET Syllabus (6 Months) DOT NET Syllabus (6 Months) THE COMMON LANGUAGE RUNTIME (C.L.R.) CLR Architecture and Services The.Net Intermediate Language (IL) Just- In- Time Compilation and CLS Disassembling.Net Application to IL

More information

Audience: Experienced application developers or architects responsible for Web applications in a Microsoft environment.

Audience: Experienced application developers or architects responsible for Web applications in a Microsoft environment. ASP.NET Using C# (VS 2010) This five-day course provides a comprehensive and practical hands-on introduction to developing Web applications using ASP.NET 4.0 and C#. It includes an introduction to ASP.NET

More information

Course ID: 2310C Course Name: Developing Web Applications Using Microsoft Visual Studio 2008

Course ID: 2310C Course Name: Developing Web Applications Using Microsoft Visual Studio 2008 Course ID: 2310C Course Name: Developing Web Applications Using Microsoft Visual Studio 2008 Audience This course is intended for introductory-level Web developers who have knowledge of Hypertext Markup

More information

DE-2310 Developing Web Applications Using Microsoft Visual Studio 2008 SP1

DE-2310 Developing Web Applications Using Microsoft Visual Studio 2008 SP1 DE-2310 Developing Web Applications Using Microsoft Visual Studio 2008 SP1 Summary Duration 5 Days Audience Developers Level 100 Technology Microsoft Visual Studio 2008 Delivery Method Instructor-led (Classroom)

More information

Developing Web Applications Using Microsoft Visual Studio 2008

Developing Web Applications Using Microsoft Visual Studio 2008 Course 2310C: Developing Web Applications Using Microsoft Visual Studio 2008 Length: 5 Day(s) Published: April 24, 2008 Language(s): English Audience(s): Developers Level: 100 Technology: Microsoft Visual

More information

Introduction to Web Development with Microsoft Visual Studio 2010

Introduction to Web Development with Microsoft Visual Studio 2010 Introduction to Web Development with Microsoft Visual Studio 2010 Course 10267; 5 Days, Instructor-led Course Description This five-day instructor-led course provides knowledge and skills on developing

More information

ADO.NET. Two Providers ADO.NET. Namespace. Providers. Behind every great application is a database manager

ADO.NET. Two Providers ADO.NET. Namespace. Providers. Behind every great application is a database manager ADO.NET ADO.NET Behind every great application is a database manager o Amazon o ebay Programming is about managing application data UI code is just goo :) 11/10/05 CS360 Windows Programming 1 11/10/05

More information

ASP.NET Using C# (VS2013)

ASP.NET Using C# (VS2013) ASP.NET Using C# (VS2013) This five-day course provides a comprehensive and practical hands-on introduction to developing Web applications using ASP.NET 4.5.1 and Visual Studio 2013. It includes an introduction

More information

ASP.NET Web Forms Programming Using Visual Basic.NET

ASP.NET Web Forms Programming Using Visual Basic.NET ASP.NET Web Forms Programming Using Visual Basic.NET Duration: 35 hours Price: $750 Delivery Option: Attend training via an on-demand, self-paced platform paired with personal instructor facilitation.

More information

DE Introduction to Web Development with Microsoft Visual Studio 2010

DE Introduction to Web Development with Microsoft Visual Studio 2010 DE-10267 Introduction to Web Development with Microsoft Visual Studio 2010 Summary Duration 5 Days Audience Developers Level 100 Technology Microsoft Visual Studio 2010 Delivery Method Instructor-led (Classroom)

More information

Introduction to Web Development with Microsoft Visual Studio 2010

Introduction to Web Development with Microsoft Visual Studio 2010 10267 - Introduction to Web Development with Microsoft Visual Studio 2010 Duration: 5 days Course Price: $2,975 Software Assurance Eligible Course Description Course Overview This five-day instructor-led

More information

ADO.NET for Beginners

ADO.NET for Beginners Accessing Database ADO.NET for Beginners Accessing database using ADO.NET in C# or VB.NET This tutorial will teach you Database concepts and ADO.NET in a very simple and easy-to-understand manner with

More information

An Introduction to ADO.Net

An Introduction to ADO.Net An Introduction to ADO.Net Mr. Amit Patel Dept. of I.T. .NET Data Providers Client SQL.NET Data Provider OLE DB.NET Data Provider ODBC.NET Data Provider OLE DB Provider ODBC Driver SQL SERVER Other DB

More information

VB. Microsoft. UPGRADE-MCSD MS.NET Skills to MCPD Entpse App Dvlpr Pt1

VB. Microsoft. UPGRADE-MCSD MS.NET Skills to MCPD Entpse App Dvlpr Pt1 Microsoft 70-553-VB UPGRADE-MCSD MS.NET Skills to MCPD Entpse App Dvlpr Pt1 Download Full Version : http://killexams.com/pass4sure/exam-detail/70-553-vb Answer: D QUESTION: 79 A Windows Forms application

More information

Developing Web Applications Using Microsoft Visual Studio 2008 SP1

Developing Web Applications Using Microsoft Visual Studio 2008 SP1 Developing Web s Using Microsoft Visual Studio 2008 SP1 Introduction This five day instructor led course provides knowledge and skills on developing Web applications by using Microsoft Visual Studio 2008

More information

Beginning ASP.NET. 4.5 in C# Matthew MacDonald

Beginning ASP.NET. 4.5 in C# Matthew MacDonald Beginning ASP.NET 4.5 in C# Matthew MacDonald Contents About the Author About the Technical Reviewers Acknowledgments Introduction xxvii xxix xxxi xxxiii UPart 1: Introducing.NET. 1 & Chapter 1: The Big

More information

Datalogging and Monitoring

Datalogging and Monitoring Datalogging and Monitoring with Step by Step Examples Hans-Petter Halvorsen http://www.halvorsen.blog Content Different Apps for Data Logging and Data Monitoring will be presented Here you find lots of

More information

ADO.NET in Visual Basic

ADO.NET in Visual Basic ADO.NET in Visual Basic Source code Download the source code of the tutorial from the Esercitazioni page of the course web page http://www.unife.it/ing/lm.infoauto/sistemiinformativi/esercitazioni Uncompress

More information

M Developing Microsoft ASP.NET Web Applications Using Visual Studio.NET 5 Day Course

M Developing Microsoft ASP.NET Web Applications Using Visual Studio.NET 5 Day Course Module 1: Overview of the Microsoft.NET Framework This module introduces the conceptual framework of the.net Framework and ASP.NET. Introduction to the.net Framework Overview of ASP.NET Overview of the

More information

Final Documentation Solutions Inc TEAM SOLUTION Micheal Scott Trevor Moore Aurian James Wes Bailoni

Final Documentation Solutions Inc TEAM SOLUTION Micheal Scott Trevor Moore Aurian James Wes Bailoni Final Documentation Solutions Inc. 12.5.2017 TEAM SOLUTION Micheal Scott Trevor Moore Aurian James Wes Bailoni 1 P a g e Table of Contents SITE HIERARCHY... 3 Email/Password... 4 Information... 5 Web.config...

More information

ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p.

ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p. Preface p. xix ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p. 6 Personalization p. 6 Master Pages p. 6 Navigation p.

More information

ACCURATE STUDY GUIDES, HIGH PASSING RATE! Question & Answer. Dump Step. provides update free of charge in one year!

ACCURATE STUDY GUIDES, HIGH PASSING RATE! Question & Answer. Dump Step. provides update free of charge in one year! DUMP STEP Question & Answer ACCURATE STUDY GUIDES, HIGH PASSING RATE! Dump Step provides update free of charge in one year! http://www.dumpstep.com Exam : 70-567 Title : Transition your MCPD Web Developer

More information

COOKBOOK Creating an Order Form

COOKBOOK Creating an Order Form 2010 COOKBOOK Creating an Order Form Table of Contents Understanding the Project... 2 Table Relationships... 2 Objective... 4 Sample... 4 Implementation... 4 Generate Northwind Sample... 5 Order Form Page...

More information

Blackbird Books and Supplies

Blackbird Books and Supplies Blackbird Books and Supplies Final Documentation Team Blackbird Mike Pratt Ridha Joudah Jayati Dandriyal Joseph Manga 1 Contents Site Hierarchy... 3 Home (Default Page)... 4 About... 6 Contact... 8 Login...

More information

COPYRIGHTED MATERIAL. Contents. Part I: C# Fundamentals 1. Chapter 1: The.NET Framework 3. Chapter 2: Getting Started with Visual Studio

COPYRIGHTED MATERIAL. Contents. Part I: C# Fundamentals 1. Chapter 1: The.NET Framework 3. Chapter 2: Getting Started with Visual Studio Introduction XXV Part I: C# Fundamentals 1 Chapter 1: The.NET Framework 3 What s the.net Framework? 3 Common Language Runtime 3.NET Framework Class Library 4 Assemblies and the Microsoft Intermediate Language

More information

Exam Name: PRO: Designing and Developing ASP.NET. Applications Using the Microsoft.NET Framework 3.5

Exam Name: PRO: Designing and Developing ASP.NET. Applications Using the Microsoft.NET Framework 3.5 Vendor: Microsoft Exam Code: 70-564 Exam Name: PRO: Designing and Developing ASP.NET Applications Using the Microsoft.NET Framework 3.5 Version: DEMO 1: You are creating an ASP.NET application by using

More information

"Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary

Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary Description Course Summary This course provides knowledge and skills on developing Web applications by using Microsoft Visual. Objectives At the end of this course, students will be Explore ASP.NET Web

More information

.NET FRAMEWORK. Visual C#.Net

.NET FRAMEWORK. Visual C#.Net .NET FRAMEWORK Intro to.net Platform for the.net Drawbacks of Current Trend Advantages/Disadvantages of Before.Net Features of.net.net Framework Net Framework BCL & CLR, CTS, MSIL, & Other Tools Security

More information

ASP.net. Microsoft. Getting Started with. protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable();

ASP.net. Microsoft. Getting Started with. protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable(); Getting Started with protected void Page_Load(object sender, EventArgs e) { productsdatatable = new DataTable(); string connectionstring = System.Configuration.ConfigurationManager.ConnectionStrings ["default"].connectionstring;!

More information

In the previous chapter we created a web site with images programmed into HTML page code using commands such as: <img src="images/train.

In the previous chapter we created a web site with images programmed into HTML page code using commands such as: <img src=images/train. Chapter 6: Mountain Bike Club 113 6 Mountain Bike Club In the previous chapter we created a web site with images programmed into HTML page code using commands such as: In

More information

CSharp. Microsoft. UPGRADE-MCAD Skills to MCPD Wdws Dvlpr by Using MS.NET Frmwk

CSharp. Microsoft. UPGRADE-MCAD Skills to MCPD Wdws Dvlpr by Using MS.NET Frmwk Microsoft 70-552-CSharp UPGRADE-MCAD Skills to MCPD Wdws Dvlpr by Using MS.NET Frmwk Download Full Version : http://killexams.com/pass4sure/exam-detail/70-552-csharp QUESTION: 78 A Windows Forms application

More information

.NET-6Weeks Project Based Training

.NET-6Weeks Project Based Training .NET-6Weeks Project Based Training Core Topics 1. C# 2. MS.Net 3. ASP.NET 4. 1 Project MS.NET MS.NET Framework The.NET Framework - an Overview Architecture of.net Framework Types of Applications which

More information

Working with Data in ASP.NET 2.0 :: Using Existing Stored Procedures for the Typed DataSet s TableAdapters Introduction

Working with Data in ASP.NET 2.0 :: Using Existing Stored Procedures for the Typed DataSet s TableAdapters Introduction 1 of 20 This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx.

More information

Microsoft MTA Certification Exam

Microsoft MTA Certification Exam 98-363 Microsoft MTA Certification Exam Number: EnsurePass Passing Score: 800 Time Limit: 120 min File Version: 13.01 http://www.gratisexam.com/ Vendor: Microsoft Exam Code: 98-363 Exam Name: Web Development

More information

Examcollection.

Examcollection. Examcollection http://www.ipass4sure.com/examcollection.htm http://www.ipass4sure.com 70-528-CSharp Microsoft MS.NET Framework 2.0-Web-based Client Development The 70-528-CSharp practice exam is written

More information

Developing Web Applications Using ASP.NET Duration:56 Hours

Developing Web Applications Using ASP.NET Duration:56 Hours Developing Web Applications Using ASP.NET Duration:56 Hours Chapter 1 Chapter 2 Rationale Introducing Web Development Server-Side Scripting Client-Side Scripting Exploring ASP.NET ASP.NET in the.net Framework

More information

EXAM Web Development Fundamentals. Buy Full Product.

EXAM Web Development Fundamentals. Buy Full Product. Microsoft EXAM - 98-363 Web Development Fundamentals Buy Full Product http://www.examskey.com/98-363.html Examskey Microsoft 98-363 exam demo product is here for you to test the quality of the product.

More information

Activating AspxCodeGen 4.0

Activating AspxCodeGen 4.0 Activating AspxCodeGen 4.0 The first time you open AspxCodeGen 4 Professional Plus edition you will be presented with an activation form as shown in Figure 1. You will not be shown the activation form

More information

INTRODUCTION TO.NET. Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.)

INTRODUCTION TO.NET. Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.) INTRODUCTION TO.NET Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.) CLR Architecture and Services The.Net Intermediate Language (IL) Just- In-

More information

Course Outline: Course 10267A: Introduction to Web Development with Microsoft Visual Studio 2010 Learning Method: Instructor-led Classroom Learning

Course Outline: Course 10267A: Introduction to Web Development with Microsoft Visual Studio 2010 Learning Method: Instructor-led Classroom Learning Course Outline: Course 10267A: Introduction to Web Development with Microsoft Visual Studio 2010 Learning Method: Instructor-led Classroom Learning Duration: 5.00 Day(s)/ 40 hrs Overview: This five-day

More information

Pentatonic Labs Final Documentation

Pentatonic Labs Final Documentation Pentatonic Labs Final Documentation Chelsea Reynolds, Eric Stirling, Tayler Albert, Kyle White, Tam Huynh 1 Table of Contents Site Hierarchy......3 Home.....4 Home Display............4 Default.aspx.cs......4

More information

Disconnected Data Access

Disconnected Data Access Disconnected Data Access string strconnection = ConfigurationManager.ConnectionStrings["MyConn"].ToString(); // Khai báo không tham số SqlConnection objconnection = new SqlConnection(); objconnection.connectionstring

More information

Working with Data in ASP.NET 2.0 :: Wrapping Database Modifications within a Transaction Introduction

Working with Data in ASP.NET 2.0 :: Wrapping Database Modifications within a Transaction Introduction 1 of 19 This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx.

More information

Apex TG India Pvt. Ltd.

Apex TG India Pvt. Ltd. (Core C# Programming Constructs) Introduction of.net Framework 4.5 FEATURES OF DOTNET 4.5 CLR,CLS,CTS, MSIL COMPILER WITH TYPES ASSEMBLY WITH TYPES Basic Concepts DECISION CONSTRUCTS LOOPING SWITCH OPERATOR

More information

CertifyMe. CertifyMe

CertifyMe. CertifyMe CertifyMe Number: 70-567 Passing Score: 700 Time Limit: 90 min File Version: 8.0 http://www.gratisexam.com/ CertifyMe 70-567 Exam A QUESTION 1 You add a Web page named HomePage.aspx in the application.

More information

DOT NET SYLLABUS FOR 6 MONTHS

DOT NET SYLLABUS FOR 6 MONTHS DOT NET SYLLABUS FOR 6 MONTHS INTRODUCTION TO.NET Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.) CLR Architecture and Services The.Net Intermediate

More information

PLATFORM TECHNOLOGY UNIT-4

PLATFORM TECHNOLOGY UNIT-4 VB.NET: Handling Exceptions Delegates and Events - Accessing Data ADO.NET Object Model-.NET Data Providers Direct Access to Data Accessing Data with Datasets. ADO.NET Object Model ADO.NET object model

More information

Insert Data into Table using C# Code

Insert Data into Table using C# Code Insert Data into Table using C# Code CREATE TABLE [registration]( [roll_no] [int] NULL, [name] [varchar](50), [class] [varchar](50), [sex] [varchar](50), [email] [varchar](50))

More information

C# winforms gridview

C# winforms gridview C# winforms gridview using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

More information

ADO.NET.NET Data Access and Manipulation Mechanism. Nikita Gandotra Assistant Professor, Department of Computer Science & IT

ADO.NET.NET Data Access and Manipulation Mechanism. Nikita Gandotra Assistant Professor, Department of Computer Science & IT ADO.NET.NET Data Access and Manipulation Mechanism Nikita Gandotra Assistant Professor, Department of Computer Science & IT Overview What is ADO.NET? ADO VS ADO.NET ADO.NET Architecture ADO.NET Core Objects

More information

ASP.NET Security. 7/26/2017 EC512 Prof. Skinner 1

ASP.NET Security. 7/26/2017 EC512 Prof. Skinner 1 ASP.NET Security 7/26/2017 EC512 Prof. Skinner 1 ASP.NET Security Architecture 7/26/2017 EC512 Prof. Skinner 2 Security Types IIS security Not ASP.NET specific Requires Windows accounts (NTFS file system)

More information

Microsoft Exam Questions & Answers

Microsoft Exam Questions & Answers Microsoft 98-363 Exam Questions & Answers Number: 98-363 Passing Score: 800 Time Limit: 120 min File Version: 20.3 http://www.gratisexam.com/ Microsoft 98-363 Exam Questions & Answers Exam Name: Web Development

More information

2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days

2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days 2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days Certification Exam This course will help you prepare for the following Microsoft Certified

More information

STEP 1: CREATING THE DATABASE

STEP 1: CREATING THE DATABASE Date: 18/02/2013 Procedure: Creating a simple registration form in ASP.NET (Programming) Source: LINK Permalink: LINK Created by: HeelpBook Staff Document Version: 1.0 CREATING A SIMPLE REGISTRATION FORM

More information

Working with Data in ASP.NET 2.0 :: Using Parameterized Queries with the SqlDataSource Introduction

Working with Data in ASP.NET 2.0 :: Using Parameterized Queries with the SqlDataSource Introduction 1 of 17 This tutorial is part of a set. Find out more about data access with ASP.NET in the Working with Data in ASP.NET 2.0 section of the ASP.NET site at http://www.asp.net/learn/dataaccess/default.aspx.

More information

ADO.NET Using Visual Basic 2005 Table of Contents

ADO.NET Using Visual Basic 2005 Table of Contents Table of Contents INTRODUCTION...INTRO-1 Prerequisites...INTRO-2 Installing the Practice Files...INTRO-3 Software Requirements...INTRO-3 The Chapter Files...INTRO-3 About the Authors...INTRO-4 ACCESSING

More information

Online Activity: Debugging and Error Handling

Online Activity: Debugging and Error Handling Online Activity: Debugging and Error Handling In this activity, you are to carry a number of exercises that introduce you to the world of debugging and error handling in ASP.NET using C#. Copy the application

More information

Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

Page Language=C# AutoEventWireup=true CodeFile=Default.aspx.cs Inherits=_Default %> در این مقاله قصد داریم با استفاده از Ajax کاربر یک پیام را بدون الگین شدن و با استفاده از IP بتواند الیک و یا دیس الیک کند را در ASPآموزش دهیم. برای شروع یک بانک اطالعاتی به نام Test که حاوی دو جدول به

More information

Create WebDAV virtual folder in IIS pointing to AxCMSWebDav directory of your CMS installation. Do not create WebDAV virtual

Create WebDAV virtual folder in IIS pointing to AxCMSWebDav directory of your CMS installation. Do not create WebDAV virtual AxCMS.net and WebDAV WebDAV installation Create WebDAV virtual folder in IIS pointing to AxCMSWebDav directory of your CMS installation. Do not create WebDAV virtual folder under existing CMS web sites

More information

3-tier Architecture Step by step Exercises Hans-Petter Halvorsen

3-tier Architecture Step by step Exercises Hans-Petter Halvorsen https://www.halvorsen.blog 3-tier Architecture Step by step Exercises Hans-Petter Halvorsen Software Architecture 3-Tier: A way to structure your code into logical parts. Different devices or software

More information

T his article is downloaded from

T his article is downloaded from Some of the performance tips v ery useful during dev elopment, production and testing 1) Set debug="false" during deployment of your application NEVER deploy your web application to production with debug

More information

Learn Well Technocraft

Learn Well Technocraft Getting Started with ASP.NET This module explains how to build and configure a simple ASP.NET application. Introduction to ASP.NET Web Applications Features of ASP.NET Configuring ASP.NET Applications

More information

CSharp. Microsoft. PRO-Design & Develop Enterprise Appl by Using MS.NET Frmwk

CSharp. Microsoft. PRO-Design & Develop Enterprise Appl by Using MS.NET Frmwk Microsoft 70-549-CSharp PRO-Design & Develop Enterprise Appl by Using MS.NET Frmwk Download Full Version : http://killexams.com/pass4sure/exam-detail/70-549-csharp QUESTION: 170 You are an enterprise application

More information

Microsoft ASP.NET Using Visual Basic 2008: Volume 1 Table of Contents

Microsoft ASP.NET Using Visual Basic 2008: Volume 1 Table of Contents Table of Contents INTRODUCTION...INTRO-1 Prerequisites...INTRO-2 Installing the Practice Files...INTRO-3 Software Requirements...INTRO-3 Installation...INTRO-3 The Chapter Files...INTRO-3 Sample Database...INTRO-3

More information

70-562CSHARP. TS:MS.NET Framework 3.5, ASP.NET Application Development. Exam.

70-562CSHARP. TS:MS.NET Framework 3.5, ASP.NET Application Development. Exam. Microsoft 70-562CSHARP TS:MS.NET Framework 3.5, ASP.NET Application Development Exam TYPE: DEMO http://www.examskey.com/70-562csharp.html Examskey Microsoft70-562CSHARP exam demo product is here for you

More information

Getting Started with the Bullhorn SOAP API and C#/.NET

Getting Started with the Bullhorn SOAP API and C#/.NET Getting Started with the Bullhorn SOAP API and C#/.NET Introduction This tutorial is for developers who develop custom applications that use the Bullhorn SOAP API and C#. You develop a sample application

More information

Microsoft ASP.NET Using Visual C# 2008: Volume 2 Table of Contents

Microsoft ASP.NET Using Visual C# 2008: Volume 2 Table of Contents Table of Contents INTRODUCTION...INTRO-1 Prerequisites...INTRO-2 Installing the Practice Files...INTRO-3 Software Requirements...INTRO-3 Installation...INTRO-3 The Chapter Files...INTRO-4 Sample Database...INTRO-4

More information

BCA MCA VIVA TIPS & Question Answer. Wish you success!! Navneet Vishwas

BCA MCA VIVA TIPS & Question Answer. Wish you success!! Navneet Vishwas National Institute of Professional Studies and Research NiPSAR, A-132, NiPS Building, Katwaria Sarai Opp. Indian Bank, New Delhi-110016 www.nipsedu.co.in, Emai nipsgp@gmail.com, support@nipsedu.co.in M#

More information

Introduction 13. Feedback Downloading the sample files Problem resolution Typographical Conventions Used In This Book...

Introduction 13. Feedback Downloading the sample files Problem resolution Typographical Conventions Used In This Book... Contents Introduction 13 Feedback... 13 Downloading the sample files... 13 Problem resolution... 13 Typographical Conventions Used In This Book... 14 Putting the Smart Method to Work 16 Visual Studio version

More information

Introduction to Web Development with Microsoft Visual Studio 2010 (10267A)

Introduction to Web Development with Microsoft Visual Studio 2010 (10267A) Introduction to Web Development with Microsoft Visual Studio 2010 (10267A) Overview This five-day instructor-led course provides knowledge and skills on developing Web applications by using Microsoft Visual

More information

3 Customer records. Chapter 3: Customer records 57

3 Customer records. Chapter 3: Customer records 57 Chapter 3: Customer records 57 3 Customer records In this program we will investigate how records in a database can be displayed on a web page, and how new records can be entered on a web page and uploaded

More information

Microsoft ASP.NET Whole Course Syllabus upto Developer Module (Including all three module Primary.NET + Advance Course Techniques+ Developer Tricks)

Microsoft ASP.NET Whole Course Syllabus upto Developer Module (Including all three module Primary.NET + Advance Course Techniques+ Developer Tricks) Microsoft ASP.NET Whole Course Syllabus upto Developer Module (Including all three module Primary.NET + Advance Course Techniques+ Developer Tricks) Introduction of.net Framework CLR (Common Language Run

More information

质量更高服务更好 半年免费升级服务.

质量更高服务更好 半年免费升级服务. IT 认证电子书 质量更高服务更好 半年免费升级服务 http://www.itrenzheng.com Exam : 70-515 Title : TS: Web Applications Development with Microsoft.NET Framework 4 Version : Demo 1 / 13 1.You are implementing an ASP.NET application

More information

ALPHAPRIMETECH 112 New South Road, Hicksville, NY 11801

ALPHAPRIMETECH 112 New South Road, Hicksville, NY 11801 ALPHAPRIMETECH 112 New South Road, Hicksville, NY 11801 Course Curriculum COMPUTER SYSTEM ANALYST-.NET C# Introduction to.net Framework.NET Framework OverView CLR,CLS MSIL Assemblies NameSpaces.NET Languages

More information