初学者练练身手的一个面试题:WebFormTest

本文介绍了一项使用C#进行WebForms应用开发的技术测试任务,要求创建一个用于管理名称/值对数据的应用,包括输入验证、排序等功能,并提供了可选的过滤特性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

.NET Development Test

This test consists of writing a simple utility for managing Name/Value pair data in a Web Forms application. It will allow us to better understand your design and programming skills as well as your attention to detail.

Overview

This test must be written by the person who is submitting it. Any standard reference material that is used during a normal programming cycle may be used. No third party class libraries may be used.

Create a Web Forms application using a user interface similar to the one shown below. However feel free to modify the layout to allow for better usability, if desired.

All server-side code should be in C#

Required Features:

  1. Name/Value pairs are to be entered into the upper textbox. This textbox is used for adding and filtering Name/Value pairs.
  2. When the ‘Add’ button is pressed the Name/Value pair in the textbox is validated, and then if it passes validation it is added to the listbox below. The Name/Value pair entry format is shown below:
  3. <name> = <value>
  4. Where <name> is the name portion of the pair, and <value> is the value portion of the pair. Only valid Name/Value pairs can be added. Names and Values can contain only alpha-numeric characters. The equal-sign is used to delimit the pair, spaces before and/or after the equal-sign may be entered as padding at the end-users discretion.
  5. When the ‘Sort by Name’ button is pressed the list will be sorted ascending by Name.
  6. When the ‘Sort by Value’ button is pressed the list will be sorted ascending by Value.
  7. When the ‘Delete’ button is pressed all selected items in the listbox will be deleted.

Optional Features

The following features are a test option and may not be required, please refer to the job description to see if it is a requirement

  1. When the ‘Filter’ button is pressed, only the Name/Value pairs that match the filter criteria will be shown in the listbox. The search criteria will be taken from the textbox.

    Filters have the following format (and are similar to the Name/Value format):

    <type> = <value>

    Where <type> is either Name or Value, and <value> is a string used for matching against the given type. 
  2. When the ‘Clear Filter’ button is pressed all of the Name/Value pairs will be shown in the listbox.

Important Notes

  1. When completing this test, please assume that the work you do is intended for delivery to a client. It should look professional and behave as you feel top quality commercial software would.
  2. Assume that the application is intended for a website under high load.
  3. Make any modifications/additions you feel are necessary to enhance the usability of this application.
  4. Keep the code clean and well commented. 
  5. If you have any questions about the description of the application please feel free to send in an email with your enquiry.
  6. Once the test is complete please zip up the project and its associated files along with a release build of the assembly.
  7. The application should target the .NET 1.1 platform
  8. Again, please note that the intention of this test is to learn about your style, your technical ability, the way you interpret directions, your attention to detail and your standards when it comes to documentation and presentation.

    Good luck!

转载于:https://www.cnblogs.com/yuechiu/archive/2008/04/09/1145425.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值