.Net Framework-II Interview Questions online Test

As part of a sizable .Net team you are responsible for working on state of the art .Net solutions. The current project you are working on makes extensive use of the IO namespace. You have reviewed this application and are considering alternative options and possibilities.

As part of this review you need to know which one of the following classes interacts with the file system?


You are developing a .Net application that reads a list of product details from an XML file into an XMLDocument object. You need to modify some of the nodes in the document during this process and then write the modified XmlDocument object back to disk to save the changes permanently.

Which object should you use to write the edited XmlDocument object back to disk?


You are designing a new .Net application that will be used by clients in a large number of different countries. The application allows company's to store geographical information and then share that information with other company's in different countries.

When storing this information ready to publish, which culture should you use?


You are designing a new .Net application which contains some complex calculations to mix colours much like a popular paint package would do. To achieve some of these features you first need to get access to the system-defined colours.

Which namespace or class would help you achieve this?


As part of a new web application for your IT department you are creating a ‘quick and dirty’ web page that displays data about hardware changes in the last 14 days. This page contains an SqlDataAdaptor object named sqlDataAdaptor1 that you created by dragging and dropping the Hardware table from your SQL database onto the form. Your application also includes a DataSet object called dsHardware.

What line of code should you use to load the data from the database into the DataSet object?


Your friend has created a control that allows developers to add Video upload features to their existing websites. This control must be installed in the ToolBox of Visual Studio so that it can be used in many projects. The control is essentially a single button which allows the user to browse for a Video file.

What type of control have they made?


You have just finished modifying a web application for one of your clients. The modified application gathers data from multiple sources and displays the information in a tabular format. To display the data you have chosen to use the GridView control. As predicted, the client now wants to add additional functionality to the web app. They want to be able to select a row in the GridView and see any related data in a popup window. You want to add the functionality to the GridView with the minium of effort.

Which type of column should you add to the GridView?


As part of a larger project you are designing a new ASP.NET Web form that displays hardware order information for different software vendors in a GridView control. The site is unable to accept Web orders at the moment since there are no controls on the page to post new data back to the server.

Considering these features, what can you do to optimize the delivery of this page?


Your software development team is working on a next generation web application for a gaming company. The website uses several nice AJAX style Javascript libraries to show images using fading and animation. One of your page should start displaying the animation as soon as the page loads. You want to inject the Javascript programmatically.

Which code method should you use?


Your manager has asked you to create another ‘quick and dirty’ web application for him! This application needs to show data for all employees holiday usage. To make the development of this application even faster, you have chosen to use a web control which allows you to assign html directly.


As part of a large image gallery web application, you have created a new web services that you want to call asynchronously using AJAX techniques. However, when you try and call the method it does not appear to be available.

What could be the possible cause of this?


As part of an on-going project for the HR department you have created a web application that allows ex-employees to view their tax returns online. Ex-employees can see how much tax they paid during a certain period and print off copies. The application contains a page called ViewDetails that shows tax payments based on the following query string parameters FromDate, ToDate and EmployeeId. Your manager has reviewed the code and made a serious security recommendation. Which one of the following have they recommended?


new client of yours wants a simple ASP .Net application that reads records from their Sales database and sends SMTP mail to clients with new promotion and special offer. To keep your code tidy and readable you have decided to add a using statement (vb.net imports) at the top of your code file. Your first line of code is shown in the image.


You are in the process of writing a new ASP .NET web application for a high profile client. This application uses a web services to retrieve information about library books that have been captured online. The information includes image scans, ISBN numbers, author, title and description. You are at the point of using the web service in your Visual Studio project but can’t remember how to add a reference to a web service.

What steps should you take?


You have started working on a new ASP .NET project that uses LINQ to retrieve data from your SQL database. The following tables have been added to the DataContent through the Visual Studio design surface – Persons, Addresses. You now want to select a single records from the Persons table where the person id is 5.

Which LINQ command should you use?


Your client’s intranet web application has become out of date and they want you to redevelop it using ASP .Net. Whilst developing the new application you discover that they use several third party libraries for complex accounting and LOB functions. The library is also quite old and was written as a COM component. You have written to the company asking for a .Net version of the component but they do not have one.


You have been given the responsibility of adding this stylesheet to the master page of the intranet site. The styelsheet is named styles.css and is located in the Styles folder under the site root. Which line of html should you include to reference the stylesheet?


n up and coming project for a government department requires the development of a secure ASP .Net web application. This application will display up to the minute data on government spending and budgets. To ensure that this application remains accessible only to company users, you must decide on a authentication mechanism. All users for this application have an account in Active Directory.

Which type of authentication should you use for best performance?


Your development team is working on a large scale .Net project that has multiple assemblies and code files. Before releasing the software as a Beta product, you and the team are testing classes and assemblies for bugs. Most methods have been programmed to just catch the exception without logging any information. You now want to change this so that information about the sequence of calls and the line number of the method where the exception occurred are logged.

Which property of the exception class should you use?

















































Comments

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no:


Area code Number
Subjects you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
12 Followers
Tests: 3

Your Facebook Friends on WizIQ

More Tests By Author

ASP.NET Interview Question
16 Questions | 1275 Attempts

C# Fundamental Interview Question
13 Questions | 353 Attempts

Give live classes, create & sell online courses

Try it free Plans & Pricing

Connect