Jump to content

plz anybody give me the right answer?


radha1

Recommended Posts

Question 30: A Web form has a data structure. There is a method updateData() which updates this data structure. The developer wants to create a user control with some buttons. When one of the buttons is clicked, the data structure must be updated. Which of the following methods can the developer use to achieve this, while ensuring reusability of the control? A. Since the control is part of the page, call the method updateData() on click of button. B. Create a delegate that refers to updateData() method, and pass it to the user controls Delegate type property. When the user control's button is clicked, call the delegate. C. Move the data structure and updateData() method to the user control. D. Get a reference to the parent page and call its method as ref.updateData(). E. Move the updateData() method to the user controlAns1: Ans2:Question 31: Which of the following accurately describe the ViewState feature in ASP.NET? A. The mode attribute of the sessionState section in the Web.config is set to "OutProc" B. The mechanism used by ASP.NET to keep track of server control state values that do not otherwise post back as part of the HTTP form C. The mode attribute of the sessionState section in the Web.config is set to "InProc" D. A hidden form field managed by the ASP.NET page framework E. The hidden form field is part of the page sent to the client. Ans1: Ans2:Question 32: Which of the following methods are not implemented by the String class? A. ToString. B. ToUpper. C. Join. D. Trim. E. Convert. Ans1: Ans2:Question 32: Which of the following methods are not implemented by the String class? A. ToString. B. ToUpper. C. Join. D. Trim. E. Convert. Ans1: Ans2:Question 34: Which of the following Web page properties can be set to explicitly control how the page is rendered in ASP.NET, instead of relying on automatic browser detection? A. AccessKey B. CssClass C. UserAgent D. ClientTarget E. targetSchema Ans1: Question 35: Which of the following classes can be used for displaying an error window to the user, with the window consisting of an error icon, a text message and button to close the window? A. The MessageBox class. B. The Dialog class. C. The ErrorWindow class. D. The AlertBox class. E. The MsgBox class.Ans1: Question 36: There are 19 rows in the Titles table and 9 rows in the Publishers table of the SQL Server 2000 database PUBS. The result of executing the query below returns only 18 rows.SELECT title, pub_nameFROM Titles INNER JOINPublishers ON titles.pub_id = publishers.pub_idWhich of the following statements correctly describe a possible reason why all 19 rows of the Titles table are not returned? A. There is a row in the Titles table with a publisher that has no matching value in the Publishers table. B. There is a row in the Titles table with a NULL value in the pub_id column. C. There is a row in the Publishers table with a publisher that has no matching value in the Titles table. D. There is a row in the Publishers table with a NULL value in the pub_id column. E. There is a row in the Titles table that contains a publisher with no titles. Ans1: Ans2:Question 37: Which of the following outputs accurately describe the result of executing the SQL Server 2000 command below?SELECT STR(5764.12, 3, 2) A. *** B. 764.12 C. 576.12 D. 577 E. @@@ Ans1: Ans2:Question 38: An ecommerce application is being built which relies heavily on session variables. Due to an expected high demand it has been decided to ensure the application can be run on a multiple machine webfarm. Which of the following options for storing session state will meet the application's requirements? A. Store session state with an in-process ASP.NET process. B. Develop the application with stateless COM+ components. C. Store session data to a table in a database. D. Store session data using the Output cache directive. E. Store session state in the out-of process Windows StateServer serAns1: Ans2:Question 39: Which of the following attributes can be used when using the Out-of-process mode for session state in ASP.NET? A. stateNetworkTimeout B. tcpipServer C. sqlConnectionString D. timeout E. stateConnectionString Ans1: Ans2:Question 40: Which of the following statements describe how a dynamic template in a DataGrid control is different from that in a Repeater or DataList control? A. A DataGrid column does not include an alternating item or separator template. B. In a DataGrid control, item templates are not created for the grid itself; instead, they are created for a column in the grid. C. A DataGrid column includes an alternating item or separator template. D. A DataGrid column does not include an EditItem template. E. A DataList control does not incude EditItem template. Ans1: Ans2:Question 41: A high performance application is being created to access data from relational data sources. The application needs to iterate once through a set of rows with read only access. Which of the following actions will help to improve the performance of the application? A. Use of an IDbTransaction. B. Use of the OLE DB .NET Data Provider. C. Use of the SQL DB .NET Data Provider. D. Use of a DataReader. E. Use of a DataSet. Ans1: Ans2:Question 42: A developer wants to add a DataList control to an ASP.NET application Web form. The DataList control must be bound to a DataSet object that contains a single DataTable object. Which of the following DataList templates must be defined before any data can be displayed? A. SelectedItemTemplate B. ItemTemplate C. EditItemTemplate D. AlternatingItemTemplate E. SeparatorTemplateAns1: Ans2:Question 43: In an SQL Server 2000 database, User1 created the survey table to store a client's survey questionnaire and feedback. One of the columns of this table stores a response, which can be Y or N, or 1 or 0. Which of the following data types possess sufficient accuracy to hold this data? A. bit B. smallint C. tinyint D. byte E. nbit Ans1: Ans2:Question 44: Which of the following statements about C# arrays are incorrect? A. The array contents can be initialized by providing a list of comma separated values delimited with curly-brackets. B. All arrays are zero-based. C. An array is an object of type 'System.Array'. D. An array may only have one dimension. E. The elements of an array can be iterated through with a 'foreach' loop. Ans1: Ans2:Question 45: Which of the following classes could be used to provide optimal performance for a loop which concatenates characters to a string in each iteration? A. The StringIterator class. B. The StringBuilder class. C. The String class. D. The Object class. E. The CharacterConcatenator class. Ans1: Ans2:Question 46: Which of the following namespaces contain types that are used for debugging and profiling? A. The System.Runtime.CompilerServices namespace. B. The System.Debug namespace. C. The System.Diagnostics namespace. D. The System.Profile namespace. E. The System.ServiceProcess namespaceAns1: Ans2:Question 47: A programmer creates a trigger, TR1, which references a table called Tblfiction that does not exist. Which of the following terms accurately describe this feature of SQL Server 2000? A. Late binding resolution B. Deferred name resolution C. Early binding resolution D. Advance name resolution E. Early name resolution Ans1: Ans2:Question 48: Which of the following lines of code will a developer use to install a strongly named assembly in the global assembly cache? A. gacutil -u <assemblyname> B. gacutil -i <assemblyname> C. installutil -i <assemblyname> D. xcopy <assemblyname> E. xcopy -l <assemblynameAns1: Ans2:Question 50: Which of the following maintenance tasks cannot be scheduled to run automatically in SQL Server 2000? A. Creating Referential Integrity between the objects in a database B. Backing up the Database and Transaction Log files C. Compressing data files by removing empty database pages D. Reorganizing data on the Data and Index pages by rebuilding indexes E. Setting up Log Shipping Ans1: Ans2:Question 51: Which of the following elements can a user control contain? A. HTML elements and Server controls B. HTML elements, ASP.NET code, and server controls C. Server controls D. Client script, HTML elements, ASP.NET code, and server controls E. Server controls and ASP.NET code Ans1: Ans2:Question 52: Which of the following statements about subqueries in SQL Server 2000 are true? A. A subquery cannot be written using the WHERE clause of the main query. B. A subquery returns multiple values. C. A maximum of 32 levels of nesting of queries is allowed. D. The EXIST and NOT EXIST keywords can be used in a subquery. E. If the same table is referenced in both the inner and outer queries, an alias must be specified for the table to be used. Ans1: Ans2:Question 53: Which of the following statements hold true for C# classes in C# version 1.1? A. They support multiple inheritance. B. They can be instantiated from other .NET languages. C. They cannot implement multiple interfaces. D. They can contain nested classes. E. They can be split into multiple source files. Ans1: Ans2:Question 54: Which of the following statements about creating a Windows Form-based class are true? A. The class must be declared with the WindowsForm attribute. B. The class must implement the IForm interface. C. The class must be declared with public accessibility. D. The class must inherit from the Form class. E. The class must be declared with the STAThread attributeAns1: Ans2:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...